diff options
author | Thibaud Lepretre <thibaud.lepretre@gmail.com> | 2021-10-25 15:14:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-25 15:14:35 +0300 |
commit | 1cbf789bc3dd7d90a664a0c02b669bd7f1b1b2c4 (patch) | |
tree | db541f49b4deab8344293370fe7f9f4dd3ac62b5 | |
parent | d0fb1265fc2f88286c7181c9ad101d94f8637091 (diff) | |
parent | 23d5af0cf735a8136e80a57a1098e3ad3bac8054 (diff) |
Merge pull request #533 from 0rzech/metadata-timezone-info
Do not strip timezone info from metadata
-rw-r--r-- | layouts/partials/meta.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html index c720057..51840b6 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 }} |