Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kakawait/hugo-tranquilpeak-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOrzech <piotr@orzechowski.tech>2021-10-25 15:04:19 +0300
committerGitHub <noreply@github.com>2021-10-25 15:04:19 +0300
commit23d5af0cf735a8136e80a57a1098e3ad3bac8054 (patch)
tree12939d480eabeeaa6734e43547703959c889c3de
parent295d0fb3dd3d48f01902424cf90e6eed58768275 (diff)
Do not strip timezone info from metadata
-rw-r--r--layouts/partials/meta.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html
index 0662392..1808c39 100644
--- a/layouts/partials/meta.html
+++ b/layouts/partials/meta.html
@@ -19,13 +19,13 @@
<meta property="og:locale" content="{{ .Lang }}">
{{ if .IsPage }}
{{ if not .PublishDate.IsZero }}
- <meta property="article:published_time" content="{{ .PublishDate.Format "2006-01-02T15:04:05" }}">
+ <meta property="article:published_time" content="{{ .PublishDate.Format "2006-01-02T15:04:05Z07:00" }}">
{{ end }}
{{ if not .Lastmod.IsZero }}
- <meta property="article:modified_time" content="{{ .Lastmod.Format "2006-01-02T15:04:05" }}">
+ <meta property="article:modified_time" content="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}">
{{ end }}
{{ if not .ExpiryDate.IsZero }}
- <meta property="article:expiration_time" content="{{ .ExpiryDate.Format "2006-01-02T15:04:05" }}">
+ <meta property="article:expiration_time" content="{{ .ExpiryDate.Format "2006-01-02T15:04:05Z07:00" }}">
{{ end }}
{{ with .Params.categories }}
{{ range $v := . }}
@@ -54,7 +54,7 @@
{{ end }}
{{ with .Site.Params.fbAdminIds }}
{{ range . }}
- <meta property="fb:admins" content="{{ . }}">
+ <meta property="fb:admins" content="{{ . }}">
{{ end }}
{{ end }}