Skip to content

Commit

Permalink
fix: Site.Author and Site.Social hugo deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
ahal committed Nov 2, 2024
1 parent b8b66ed commit 9604d41
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
{{- if not .Date.IsZero }}
"dateModified": "{{ .Date.Format $ISO8601 }}",
{{- end }}
{{- with .Site.Social.GooglePlus }}
"publisher": "{{ printf "%s" . }}",
{{- end }}
{{- /* all of the site's categories/tags, from Hugo's tpl/template_embedded.go */}}
"keywords": "{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}{{ printf "%s," $term }}{{ end }}{{ end }}"
{{- with .Site.Params.description -}}
Expand Down
3 changes: 0 additions & 3 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@
{{- if not .Lastmod.IsZero }}
"dateModified": "{{ .Lastmod.Format $ISO8601 }}",
{{- end }}
{{- with .Site.Social.GooglePlus }}
"publisher": "{{ printf "%s" . }}",
{{- end }}
"author": {
"@type": "Person",
"name": "{{ .Params.author | default .Site.Params.author }}"
Expand Down

0 comments on commit 9604d41

Please sign in to comment.