From 4e67efab845911eb6fce37268e31365f2582cb7d Mon Sep 17 00:00:00 2001 From: Ben Goldsworthy Date: Fri, 6 Jun 2025 15:38:03 +0200 Subject: [PATCH] remove unnecessary `title` blocks --- layouts/blog/section.html | 4 ---- layouts/cv/organisations/section.html | 4 ---- layouts/cv/section.html | 4 ---- layouts/portfolio/section.html | 4 ---- 4 files changed, 16 deletions(-) diff --git a/layouts/blog/section.html b/layouts/blog/section.html index 7dc2a32..6ffd524 100644 --- a/layouts/blog/section.html +++ b/layouts/blog/section.html @@ -1,7 +1,3 @@ -{{ define "title" }} - {{- partialCached "head/title.html" ( slice ( .Page.Title | plainify ) .Site.Title ) .Site.Title .Page.Title -}} -{{ end }} - {{ define "main-class" }}--section layouts-blog-section{{ end }} {{ define "main-type" }}{{ .Params.mainType }}{{ end }} diff --git a/layouts/cv/organisations/section.html b/layouts/cv/organisations/section.html index 186019a..8f89962 100644 --- a/layouts/cv/organisations/section.html +++ b/layouts/cv/organisations/section.html @@ -1,7 +1,3 @@ -{{ define "title" }} - {{- partialCached "head/title.html" ( slice ( .Page.Title | plainify ) .Site.Title ) .Site.Title .Page.Title -}} -{{ end }} - {{ define "main-class" }} {{- if .IsDescendant ( .GetPage "/cv/organisations" ) -}} --single diff --git a/layouts/cv/section.html b/layouts/cv/section.html index c20bd28..aa9a39d 100644 --- a/layouts/cv/section.html +++ b/layouts/cv/section.html @@ -1,7 +1,3 @@ -{{ define "title" }} - {{- partialCached "head/title.html" ( slice ( .Page.Title | plainify ) .Site.Title ) .Site.Title .Page.Title -}} -{{ end }} - {{ define "main-class" }} {{- if .IsDescendant ( .GetPage "/cv/organisations" ) -}}--single{{- else -}}--section{{- end }} layouts-cv-section {{ end }} diff --git a/layouts/portfolio/section.html b/layouts/portfolio/section.html index e8436e3..d6f211f 100644 --- a/layouts/portfolio/section.html +++ b/layouts/portfolio/section.html @@ -1,7 +1,3 @@ -{{ define "title" }} - {{- partialCached "head/title.html" ( slice ( .Page.Title | plainify ) .Site.Title ) .Site.Title .Page.Title -}} -{{ end }} - {{ define "main-class" }}--section layouts-portfolio-section{{ end }} {{ define "footer-scripts" }}