Skip to content

Commit

Permalink
seo/article: Fix dateModified and add timezone (#496)
Browse files Browse the repository at this point in the history
* seo/article: Fix dateModified and add timezone

* Remove new line at the end of the file
  • Loading branch information
jaller94 authored May 7, 2024
1 parent 6b650c3 commit 5bb2aa1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/partials/seo/structured/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"description" : "{{ if .Description }}{{ .Description | plainify }}{{ else }}{{if .IsPage}}{{ .Summary | plainify }}{{ end }}{{ end }}",
"inLanguage" : "{{ .Lang }}",
"wordCount": {{ .WordCount }},
"datePublished" : "{{ .PublishDate.Format "2006-01-02T15:04:05" }}",
"dateModified" : "{{ .Date.Format "2006-01-02T15:04:05" }}",
"datePublished" : "{{ .PublishDate.Format "2006-01-02T15:04:05-07:00" }}",
"dateModified" : "{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" }}",
"image" : "{{ .Site.Params.logo | absURL }}",
"keywords" : [ "{{ range $i, $e := .Params.tags }}{{ if $i }}, {{ end }}{{ $e }}{{ end }}" ],
"mainEntityOfPage" : "{{ .Permalink }}",
Expand All @@ -25,4 +25,4 @@
}
}
}
</script>
</script>

0 comments on commit 5bb2aa1

Please sign in to comment.