diff options
author | tdro <tdro@noreply.example.com> | 2023-04-04 22:46:55 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-04-04 22:46:55 -0400 |
commit | 9b6e25170781266cccdca056135bec2ee7e0678c (patch) | |
tree | a9e1870b03669872b40221e152ff6e5d490f37d3 /themes | |
parent | 6cb4a01d09d77adf085377e0b2b88b4b9d7cce90 (diff) | |
download | canory-9b6e25170781266cccdca056135bec2ee7e0678c.tar.gz canory-9b6e25170781266cccdca056135bec2ee7e0678c.tar.bz2 canory-9b6e25170781266cccdca056135bec2ee7e0678c.zip |
themes/default/layouts/partials/base-head: Open graph use proper ISO 8601 time
Diffstat (limited to 'themes')
-rw-r--r-- | themes/default/layouts/partials/base-head.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/default/layouts/partials/base-head.html b/themes/default/layouts/partials/base-head.html index 2757f29..9decdac 100644 --- a/themes/default/layouts/partials/base-head.html +++ b/themes/default/layouts/partials/base-head.html @@ -33,8 +33,8 @@ <meta property="og:url" content="{{ .Permalink }}" /> <meta property="og:image" content="{{ .Site.BaseURL }}/{{ $author.user -}}/media/profile/picture.png" /> <meta property="og:type" content="website" /> -<meta property="article:published_time" content="{{ .Params.PublishDate }}" /> -<meta property="article:modified_time " content="{{ .Params.LastMod }}" /> +<meta property="article:published_time" content="{{ (or .Params.PublishDate now.UTC) | time.Format "2006-01-02T15:04:05Z" }}" /> +<meta property="article:modified_time " content="{{ (or .Params.LastMod now.UTC) | time.Format "2006-01-02T15:04:05Z" }}" /> <!-- Twitter Meta Tags --> <meta name="twitter:card" content="summary_large_image" /> |