From d1c3c40a958a98cb632cbca8598b2987fee9d9c2 Mon Sep 17 00:00:00 2001 From: Filefabrik <84433563+Filefabrik@users.noreply.github.com> Date: Sat, 14 Sep 2024 15:28:30 +0200 Subject: [PATCH] optional Title in md Head (#442) Co-authored-by: RT Filefabrik --- layouts/_default/list.html | 4 ++-- layouts/_default/single.html | 4 ++-- layouts/_default/wide.html | 4 ++-- layouts/blog/list.html | 4 ++-- layouts/blog/single.html | 4 ++-- layouts/docs/list.html | 4 ++-- layouts/docs/single.html | 4 ++-- layouts/index.html | 4 ++-- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 222dfb6c..72c48335 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -5,7 +5,7 @@
-

{{ .Title }}

+ {{ if .Title }}

{{ .Title }}

{{ end }} {{ .Content }}
@@ -14,4 +14,4 @@

{{ .Title }}

-{{ end }} +{{ end }} \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 61c49aad..fb8c9906 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -5,7 +5,7 @@

-

{{ .Title }}

+ {{ if .Title }}

{{ .Title }}

{{ end }}
{{ .Content }} @@ -15,4 +15,4 @@


-

{{ .Title }}

+ {{ if .Title }}

{{ .Title }}

{{ end }}
{{ .Content }}
-{{ end }} +{{ end }} \ No newline at end of file diff --git a/layouts/blog/list.html b/layouts/blog/list.html index c67ebe27..5f0cca7d 100644 --- a/layouts/blog/list.html +++ b/layouts/blog/list.html @@ -5,7 +5,7 @@

-

{{ .Title }}

+ {{ if .Title }}

{{ .Title }}

{{ end }}
{{ .Content }}
{{- $pages := partial "utils/sort-pages" (dict "page" . "by" site.Params.blog.list.sortBy "order" site.Params.blog.list.sortOrder) -}} {{- range $pages }} @@ -31,4 +31,4 @@

-{{- end -}} +{{- end -}} \ No newline at end of file diff --git a/layouts/blog/single.html b/layouts/blog/single.html index 2a637a41..75fa392b 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -5,7 +5,7 @@
{{ partial "breadcrumb.html" . }} -

{{ .Title }}

+ {{ if .Title }}

{{ .Title }}

{{ end }}
{{- with $date := .Date }}{{ partial "utils/format-date" $date }}{{ end -}} {{- $lazyLoading := site.Params.enableImageLazyLoading | default true -}} @@ -45,4 +45,4 @@

{{ partial "breadcrumb.html" . }}
-

{{ .Title }}

+ {{ if .Title }}

{{ .Title }}

{{ end }} {{ .Content }}
{{ partial "components/last-updated.html" . }} @@ -15,4 +15,4 @@

{{ .Title }}

-{{ end }} +{{ end }} \ No newline at end of file diff --git a/layouts/docs/single.html b/layouts/docs/single.html index a91882ae..8ed116ca 100644 --- a/layouts/docs/single.html +++ b/layouts/docs/single.html @@ -6,7 +6,7 @@
{{ partial "breadcrumb.html" . }}
-

{{ .Title }}

+ {{ if .Title }}

{{ .Title }}

{{ end }} {{ .Content }}
{{ partial "components/last-updated.html" . }} @@ -15,4 +15,4 @@

{{ .Title }}

-{{ end }} +{{ end }} \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index 58e3bc96..2b992364 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -4,11 +4,11 @@ {{ partial "toc.html" . }}
-

{{ .Title }}

+ {{ if .Title }}

{{ .Title }}

{{ end }}
{{ .Content }}
-{{ end }} +{{ end }} \ No newline at end of file