Skip to content

Commit

Permalink
fix(seo): remove invalid dateModified from LD+JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
macrat committed Jan 24, 2024
1 parent 68bf083 commit c1d1b92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/blog/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"@type": "BlogPosting",
"headline": "{{.Title}}",
"datePublished": "{{.Published.Format "2006-01-02T15:04:05Z07:00"}}",
"dateModified": "{{.Modified.Format "2006-01-02T15:04:05Z07:00"}}",
{{if not .Modified.IsZero}}"dateModified": "{{.Modified.Format "2006-01-02T15:04:05Z07:00"}}",{{end}}
{{if .Image}}
"image": [
{{range .Image}}
Expand Down
2 changes: 1 addition & 1 deletion templates/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"@type": "Article",
"headline": "{{.Title}}",
"datePublished": "{{.Published.Format "2006-01-02T15:04:05Z07:00"}}",
"dateModified": "{{.Modified.Format "2006-01-02T15:04:05Z07:00"}}",
{{if not .Modified.IsZero}}"dateModified": "{{.Modified.Format "2006-01-02T15:04:05Z07:00"}}",{{end}}
{{if .Image}}
"image": [
{{range .Image}}
Expand Down

0 comments on commit c1d1b92

Please sign in to comment.