diff --git a/config.toml b/config.toml index 44c56777221..42bfbc593df 100644 --- a/config.toml +++ b/config.toml @@ -12,7 +12,7 @@ metadataFormat = "yaml" pluralizeListTitles = false preservetaxonomynames = true enableEmoji = true -enableGitInfo = false +enableGitInfo = true disableKinds = ["RSS"] # page home section taxonomy taxonomyTerm RSS sitemap robotsTXT 404 ignoreErrors = ["error-remote-getjson"] diff --git a/themes/hugo-theme-altinn/i18n/en.toml b/themes/hugo-theme-altinn/i18n/en.toml index 9f077ce6593..f1efb6864f3 100644 --- a/themes/hugo-theme-altinn/i18n/en.toml +++ b/themes/hugo-theme-altinn/i18n/en.toml @@ -39,3 +39,6 @@ other = "Navigation" [on-this-page] other = "On this page:" + +[Last-Modified] +other = "Last modified: " \ No newline at end of file diff --git a/themes/hugo-theme-altinn/i18n/nb.toml b/themes/hugo-theme-altinn/i18n/nb.toml index b46a29518d9..966a0779630 100644 --- a/themes/hugo-theme-altinn/i18n/nb.toml +++ b/themes/hugo-theme-altinn/i18n/nb.toml @@ -39,3 +39,7 @@ other = "Vis innhold" [on-this-page] other = "På denne siden:" + + +[Last-Modified] +other = "Sist endret: " \ No newline at end of file diff --git a/themes/hugo-theme-altinn/layouts/partials/header.html b/themes/hugo-theme-altinn/layouts/partials/header.html index 5f6e0007c90..fee2d8739e6 100644 --- a/themes/hugo-theme-altinn/layouts/partials/header.html +++ b/themes/hugo-theme-altinn/layouts/partials/header.html @@ -44,8 +44,11 @@ {{- partial "jumbotron.html" . -}} {{- end -}} -
+
+
+
{{T "Last-Modified"}}{{ .Page.Lastmod | time.Format ":date_medium" }}
+
{{- partialCached "menu.html" . -}} @@ -58,7 +61,7 @@
- {{- end -}} - + {{- end -}}
{{- if not .IsHome -}} {{- if eq .Kind "taxonomy" -}} diff --git a/themes/hugo-theme-altinn/static/css/theme.css b/themes/hugo-theme-altinn/static/css/theme.css index ea91f0317ee..9fd1b399b44 100644 --- a/themes/hugo-theme-altinn/static/css/theme.css +++ b/themes/hugo-theme-altinn/static/css/theme.css @@ -1042,6 +1042,9 @@ td { #body #breadcrumbs span.adocs-breadcrumb-divider { padding: 0 6px; } +.last-modified { + text-align: right; +} .copy-to-clipboard { background-image: url(../images/clippy.svg); background-position: 50% 50%;