diff --git a/layouts/partials/head/seo/seo.html b/layouts/partials/head/seo/seo.html index 86491cf..f503fd6 100644 --- a/layouts/partials/head/seo/seo.html +++ b/layouts/partials/head/seo/seo.html @@ -1,65 +1,48 @@ {{ if eq .Kind "404" -}} - + +{{ else -}} {{ with .Params.robots -}} + {{ else -}} - {{ with .Params.robots -}} - - {{ else -}} - - - - {{ end -}} -{{ end -}} - - - - - {{- $paginator := .Paginate .RegularPagesRecursive }} - {{- with .Params.seo_title -}} - {{- . -}} - {{- else -}} - {{- .Title -}} - {{- end -}} - {{- with $paginator -}} - {{ if and (gt $paginator.TotalPages 1) (gt $paginator.PageNumber 1) }} - | Page {{ $paginator.PageNumber }} - {{- end -}} - {{- end -}} - {{ if (or (and (ne .Type "posts") (ne .Type "projets") (not .IsHome)) (and (not .IsPage) (not .IsHome))) }} | {{ .Site.Title -}}{{ end -}} - + + + +{{ end -}} {{ end -}} {{ with .Params.author -}} - + {{ else -}} - + {{ end -}} {{ with .Description -}} - + {{ else -}} - -{{ end -}} - -{{ if $.Scratch.Get "paginator" }} - - {{ if .Paginator.HasPrev -}} - - {{ end -}} - {{ if .Paginator.HasNext -}} - - {{ end -}} -{{ else -}} - -{{ end -}} - -{{ partial "head/seo/opengraph.html" . }} -{{ partial "head/seo/twitter-cards.html" . }} + +{{ end -}} {{ if $.Scratch.Get "paginator" }} + +{{ if .Paginator.HasPrev -}} + +{{ end -}} {{ if .Paginator.HasNext -}} + +{{ end -}} {{ else -}} + +{{ end -}} {{ partial "head/seo/opengraph.html" . }} {{ partial +"head/seo/twitter-cards.html" . }} -{{- with .OutputFormats.Get "rss" -}} -{{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} -{{- end -}} - -{{ partial "head/seo/structured-data.html" . }} \ No newline at end of file +{{- with .OutputFormats.Get "rss" -}} {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{- end -}} {{ +partial "head/seo/structured-data.html" . }}