1
0
mirror of https://github.com/mastodon/documentation synced 2025-04-11 22:56:17 +02:00
aaaaalbert e2a3d5a63d
Fix #1490, Hugo deprecating .Page.File.Lang (#1491)
* Update single.html, index.html, footer.html
2024-08-03 17:59:48 +01:00

29 lines
786 B
HTML

{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ with .Description }}
<p>{{.}}</p>
{{ end }}
<aside>
{{.TableOfContents}}
</aside>
<div class="e-content">
{{ .Content }}
<p style="color: #687590;">
{{ i18n "lastUpdated" }} {{ .Lastmod.Format "January 2, 2006" }}{{ with .File }} · <a href='https://github.com/mastodon/documentation/tree/main/content/{{ page.Language.Lang }}/{{ .Path }}' style="color: #687590;">{{ i18n "improvePage" }}{{ end }}</a>
{{ if .IsTranslated }}
<br />
{{ i18n "otherTranslations" }}
{{ range .Translations }}
<a href="{{ .RelPermalink }}" style="color: #687590;" hreflang="{{ .Lang }}">{{ .Language.LanguageName }}</a>
{{ end }}
{{ end }}
</p>
</div>
{{ end }}