From 75124ce7733f8d2f6921d354a8d01dc8b6dadc04 Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Fri, 20 Jan 2023 13:18:47 -0500 Subject: [PATCH] Cleaining up some HTMl validation errors --- layouts/partials/external/twitter_cards.html | 24 +++++++++--------- layouts/partials/head.html | 26 ++++++++++---------- layouts/partials/header.html | 2 +- 3 files changed, 26 insertions(+), 26 deletions(-) diff --git a/layouts/partials/external/twitter_cards.html b/layouts/partials/external/twitter_cards.html index a1159f1..d20b091 100644 --- a/layouts/partials/external/twitter_cards.html +++ b/layouts/partials/external/twitter_cards.html @@ -1,31 +1,31 @@ {{- with $.Params.images -}} - - + + {{ else -}} {{- $images := $.Resources.ByType "image" -}} {{- $featured := $images.GetMatch "*feature*" -}} {{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}} {{- with $featured -}} - - + + {{- else -}} {{- with $.Site.Params.images -}} - - + + {{ else -}} - - + + {{- end -}} {{- end -}} {{- end }} - - + + {{ with .Site.Social.twitter -}} - + {{ end -}} {{ range .Site.Authors }} {{ with .twitter -}} - + {{ end -}} {{ end -}} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 5438c10..4a1df43 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,7 +1,7 @@ - + {{- if eq .Title .Site.Title -}} {{ .Site.Title }} @@ -10,30 +10,30 @@ {{- end -}} - - - - - + + + + + {{- range .Site.Params.identities -}} - + {{ end -}} {{ $siteHost := (urls.Parse .Site.BaseURL).Host -}} - - + + {{- if .IsHome -}} - - - - + + + + {{ else }} {{ range .AlternativeOutputFormats -}} {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 1811c92..dc09a99 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -28,7 +28,7 @@ {{ $profile_image := resources.Get (printf "img/%s" .Site.Params.avatar) }} {{ $profile_width := 75 }} {{ $profile_image := $profile_image.Resize (printf "%dx" $profile_width) }} - Photo of {{ .Site.Params.Author }} + Photo of {{ .Site.Params.Author }}