From 71d9811eb84ec456e6df55682878e3c5dd5828ab Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Thu, 1 Dec 2022 23:31:17 -0500 Subject: [PATCH] Fixed broken avatar img links --- layouts/_default/list.atom | 2 +- layouts/_default/rss.xml | 2 +- layouts/blog/single.html | 6 +++--- layouts/index.html | 2 +- layouts/paper/single.html | 2 +- layouts/partials/footer.html | 2 +- layouts/tracks/single.html | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/layouts/_default/list.atom b/layouts/_default/list.atom index 86ee573..1e74a2c 100644 --- a/layouts/_default/list.atom +++ b/layouts/_default/list.atom @@ -15,7 +15,7 @@ xml:base="{{ .Permalink }}"> {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} | {{ end }}{{ .Site.Title }}{{ end }} {{ .Permalink }} - {{ .Site.BaseURL }}/img/{{ .Site.Params.avatar }} + {{ .Site.BaseURL }}img/{{ .Site.Params.avatar }} {{ .Description }} Hugo diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 5203567..6fde91e 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -12,7 +12,7 @@ {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} | {{ end }}{{ .Site.Title }}{{ end }} {{ .Permalink }} - {{ .Site.BaseURL }}/img/{{ .Site.Params.avatar }} + {{ .Site.BaseURL }}img/{{ .Site.Params.avatar }} {{ .Description }} Hugo -- gohugo.io{{ with .Site.LanguageCode }} {{.}}{{end}}{{ with .Site.Author.email }} diff --git a/layouts/blog/single.html b/layouts/blog/single.html index c053fe6..d7cef65 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -8,7 +8,7 @@

{{ .Title }}

{{ .Scratch.Set "beforeDateString" "Published on "}} @@ -31,7 +31,7 @@ "@type": "NewsArticle", "headline": "{{ .Title }}", "image": [ - "{{ .Site.BaseURL }}/img/{{ .Site.Params.avatar }}" + "{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}" ], "datePublished": "{{ .Date.Format "2006-01-02" }}", "author": [{ @@ -39,7 +39,7 @@ "name": "{{ .Site.Params.Author }}", "url": "{{ .Site.BaseURL }}", "email": "mailto://{{ .Site.Params.email }}", - "image": "{{ .Site.BaseURL }}/img/{{ .Site.Params.avatar }}" + "image": "{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}" }] } diff --git a/layouts/index.html b/layouts/index.html index e81578c..2569dc8 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -10,7 +10,7 @@ {{ $profile_width := 250 }} {{ $profile_image := $profile_image.Resize (printf "%dx" $profile_width) }} Photo of {{ .Site.Params.Author }} - +

{{ .Site.Params.Author }}

diff --git a/layouts/paper/single.html b/layouts/paper/single.html index f931da9..f656fe3 100644 --- a/layouts/paper/single.html +++ b/layouts/paper/single.html @@ -8,7 +8,7 @@

{{ .Title }}

diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index eeffae6..5db466b 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -44,7 +44,7 @@ "@context": "http://schema.org", "@type": "Person", "email": "mailto://{{ .Site.Params.email }}", - "image": "{{ .Site.BaseURL }}/img/{{ .Site.Params.avatar }}", + "image": "{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}", "name": "{{ .Site.Params.Author }}", "url": "{{ .Site.BaseURL }}" } diff --git a/layouts/tracks/single.html b/layouts/tracks/single.html index c8618a4..91f987b 100644 --- a/layouts/tracks/single.html +++ b/layouts/tracks/single.html @@ -8,7 +8,7 @@

{{ .Title }}

{{ .Scratch.Set "beforeDateString" "Published on "}}