From d625507f6c8faeec1705afb2879a4c0d6a3e012c Mon Sep 17 00:00:00 2001
From: obsidian <>
Date: Mon, 22 Apr 2024 16:48:19 +0200
Subject: [PATCH] Update seo.html
---
layouts/partials/head/seo/seo.html | 85 ++++++++++++------------------
1 file changed, 34 insertions(+), 51 deletions(-)
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" . }}