Browse Source

Add last modification to footer

main
Mark Cornick 2 months ago
parent
commit
cc47756a44
  1. 1
      config-es.toml
  2. 1
      config.toml
  3. 9
      themes/mcornick/i18n/en.toml
  4. 9
      themes/mcornick/i18n/es.toml
  5. 9
      themes/mcornick/i18n/fr.toml
  6. 8
      themes/mcornick/layouts/partials/footer.html

1
config-es.toml

@ -4,6 +4,7 @@ theme = "mcornick"
title = "Mark Cornick"
disableKinds = [ "taxonomy", "term" ]
defaultContentLanguage = "es"
enableGitInfo = true
[languages]
[languages.en]

1
config.toml

@ -3,6 +3,7 @@ languageCode = "en-us"
theme = "mcornick"
title = "Mark Cornick"
disableKinds = [ "taxonomy", "term" ]
enableGitInfo = true
[languages]
[languages.en]

9
themes/mcornick/i18n/en.toml

@ -15,3 +15,12 @@ other = "This page is licensed under a Creative Commons BY-ND 4.0 license."
[translations]
other = "Translations"
[last_modified]
other = "Page modified on"
[modified_by]
other = "by"
[in_commit]
other = "in"

9
themes/mcornick/i18n/es.toml

@ -15,3 +15,12 @@ other = "Esta página tiene una licencia Creative Commons BY-ND 4.0."
[translations]
other = "Traducciones"
[last_modified]
other = "Página modificada el"
[modified_by]
other = "por"
[in_commit]
other = "en"

9
themes/mcornick/i18n/fr.toml

@ -15,3 +15,12 @@ other = "Cette page est sous licence Creative Commons BY-ND 4.0."
[translations]
other = "Traductions"
[last_modified]
other = "Page modifiée le"
[modified_by]
other = "par"
[in_commit]
other = "en"

8
themes/mcornick/layouts/partials/footer.html

@ -3,7 +3,13 @@
<p>{{ i18n "translations" }}:
{{ range .Translations }}
<a href="{{ .Permalink }}">{{ .Lang }}</a>
{{ end }}
{{ end }}<br/>
{{ i18n "last_modified" }}
{{ .Lastmod.Format "2006-01-02" }}
{{ i18n "modified_by" }}
<a href="mail:{{.GitInfo.AuthorEmail }}">{{ .GitInfo.AuthorName }}</a>
{{ i18n "in_commit" }}
<a href="https://git.sr.ht/~mcornick/www/commit/{{ .GitInfo.Hash }}">{{ .GitInfo.AbbreviatedHash }}</a>
</p>
{{ end }}
<p>

Loading…
Cancel
Save