mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-12 20:57:22 +01:00
Fix a URL
This commit is contained in:
parent
af6fef217b
commit
eeb97d3581
2 changed files with 3 additions and 2 deletions
|
@ -6,7 +6,7 @@ category:
|
||||||
- games
|
- games
|
||||||
- emulation
|
- emulation
|
||||||
- web
|
- web
|
||||||
bookmarkOf: https://tenmile.quote.games/
|
bookmarkOf: https://tenmile.quote.games
|
||||||
references:
|
references:
|
||||||
bookmark:
|
bookmark:
|
||||||
url: https://tenmile.quote.games
|
url: https://tenmile.quote.games
|
||||||
|
|
|
@ -11,10 +11,11 @@
|
||||||
|
|
||||||
{{- $page := . -}}
|
{{- $page := . -}}
|
||||||
{{- $url := .Params.bookmarkOf -}}
|
{{- $url := .Params.bookmarkOf -}}
|
||||||
|
{{- $hostname := ($url | urls.Parse).Hostname -}}
|
||||||
{{- $reference := partial "reference.obj" (dict "url" $url "page" $page) -}}
|
{{- $reference := partial "reference.obj" (dict "url" $url "page" $page) -}}
|
||||||
{{ partial "svg.html" (dict "name" "message") }} Thoughts on{{" "}}
|
{{ partial "svg.html" (dict "name" "message") }} Thoughts on{{" "}}
|
||||||
{{- with $reference.name -}}
|
{{- with $reference.name -}}
|
||||||
the {{ partial "partials/article-type.html" (default "article" $reference.type) }} {{ partial "rich-link.html" (dict "Class" "u-bookmark-of" "Destination" $url "Text" . "Page" $page) }}
|
the {{ partial "partials/article-type.html" (default "article" $reference.type) }} {{ partial "rich-link.html" (dict "Class" "u-bookmark-of" "Destination" $url "Text" . "Page" $page) }}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{ partial "rich-link.html" (dict "Class" "u-bookmark-of" "Destination" $url "Text" (printf "an article from %s" (($url | urls.Parse).Hostname)) "Page" $page) }}
|
{{ partial "rich-link.html" (dict "Class" "u-bookmark-of" "Destination" $url "Text" (printf "an article from %s" $hostname) "Page" $page) }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
Loading…
Reference in a new issue