mirror of
https://github.com/jlelse/GoBlog
synced 2024-06-18 06:15:01 +00:00
20 lines
1.1 KiB
Plaintext
20 lines
1.1 KiB
Plaintext
{{ define "postmeta" }}
|
|
<div class="p">
|
|
{{ include "summaryandpostmeta" . }}
|
|
{{ $bloglang := .Blog.Lang }}
|
|
{{ $geo := .Data.GeoURI }}
|
|
{{ if $geo }}
|
|
<div>📍 <a class="p-location h-geo" href="{{ geolink $geo }}" target="_blank" rel="nofollow noopener noreferrer">
|
|
<span class="p-name">{{ geotitle $geo .Blog.Lang }}</span>
|
|
<data class="p-longitude" value="{{ $geo.Longitude }}" />
|
|
<data class="p-latitude" value="{{ $geo.Latitude }}" />
|
|
</a></div>
|
|
{{ end }}
|
|
{{ $translations := (translations .Data) }}
|
|
{{ if gt (len $translations) 0 }}
|
|
<div>{{ string .Blog.Lang "translations" }}: {{ $delimiter := "" }}{{ range $i, $t := $translations }}{{ $delimiter }}<a href="{{ $t.Path }}" translate="no">{{ $t.Title }}</a>{{ $delimiter = ", " }}{{ end }}</div>
|
|
{{ end }}
|
|
{{ $short := shorturl .Data }}
|
|
{{ if $short }}<div>{{ string .Blog.Lang "shorturl" }} <a href="{{ $short }}" rel="shortlink">{{ $short }}</a></div>{{ end }}
|
|
</div>
|
|
{{ end }} |