mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-09 01:35:56 +01:00
Fix Gemini
This commit is contained in:
parent
db44af2e52
commit
664dd642ae
4 changed files with 5 additions and 2 deletions
|
@ -4,7 +4,7 @@ version: '3'
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
domain: www.byjp.me
|
domain: www.byjp.me
|
||||||
gmi_domain: byjp.me
|
gmi_domain: gemini.byjp.me
|
||||||
puma_dev_tld: .test
|
puma_dev_tld: .test
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
{{- $url = strings.TrimSuffix "index.gmi" $url -}}
|
{{- $url = strings.TrimSuffix "index.gmi" $url -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if hasPrefix $url "gemini://www.byjp.me" -}}
|
{{- if hasPrefix $url "gemini://www.byjp.me" -}}
|
||||||
{{- $url = strings.Replace $url "gemini://www.byjp.me" "gemini://byjp.me" -}}
|
{{- $url = strings.Replace $url "gemini://www.byjp.me" "gemini://gemini.byjp.me" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- return $url -}}
|
{{- return $url -}}
|
||||||
|
|
1
layouts/shortcodes/film.gmi
Normal file
1
layouts/shortcodes/film.gmi
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{{ .Get 0 }} ({{ .Get 1 }})
|
2
layouts/shortcodes/importnote.gmi
Normal file
2
layouts/shortcodes/importnote.gmi
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
{{ $date := .Get 0 | time -}}
|
||||||
|
(Some context, from {{ sub $date.Year .Page.Date.Year }} years later</date>: {{ .Inner }})
|
Loading…
Reference in a new issue