diff --git a/config.yml b/config.yml index 72776be7d..a534430ee 100644 --- a/config.yml +++ b/config.yml @@ -2,6 +2,7 @@ languageCode: "en" title: "Bootstrap" baseURL: "https://v5.getbootstrap.com" enableInlineShortcodes: true +enableGitInfo: true markup: goldmark: diff --git a/site/layouts/partials/social.html b/site/layouts/partials/social.html index a63f6caee..5d3bc7524 100644 --- a/site/layouts/partials/social.html +++ b/site/layouts/partials/social.html @@ -15,3 +15,13 @@ +{{- $iso8601 := "2006-01-02T15:04:05-07:00" -}} +{{- if .IsPage }} +{{ if not .PublishDate.IsZero }} +{{ else if not .Date.IsZero }} +{{ end }} +{{- if not .Lastmod.IsZero }}{{ end }} +{{- else }} + {{- if not .Date.IsZero }} +{{- end }} +{{- end }}{{/* .IsPage */}}