Fixed broken avatar img links

This commit is contained in:
Brandon Rozek 2022-12-01 23:31:17 -05:00
parent 8513bece81
commit 71d9811eb8
7 changed files with 9 additions and 9 deletions

View file

@ -15,7 +15,7 @@
xml:base="{{ .Permalink }}">
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} | {{ end }}{{ .Site.Title }}{{ end }}</title>
<id>{{ .Permalink }}</id>
<image>{{ .Site.BaseURL }}/img/{{ .Site.Params.avatar }}</image>
<image>{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}</image>
<description>{{ .Description }}</description>
<generator uri="https://gohugo.io">Hugo</generator>
<author>

View file

@ -12,7 +12,7 @@
<channel>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} | {{ end }}{{ .Site.Title }}{{ end }}</title>
<link>{{ .Permalink }}</link>
<image>{{ .Site.BaseURL }}/img/{{ .Site.Params.avatar }}</image>
<image>{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}</image>
<description>{{ .Description }}</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}

View file

@ -8,7 +8,7 @@
<h1 class='title p-name'>{{ .Title }}</h1>
<a style="display: none" class="u-url" href="{{ .Permalink }}"></a>
<div style="display: none;" rel="author" class="h-card p-author">
<img class="u-photo" src="{{ .Site.BaseURL }}/img/avatar.jpg"/>
<img class="u-photo" src="{{ .Site.BaseURL }}img/avatar.jpg"/>
<span > {{ .Site.Params.Author }}</span>
</div>
{{ .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 }}"
}]
}
</script>

View file

@ -10,7 +10,7 @@
{{ $profile_width := 250 }}
{{ $profile_image := $profile_image.Resize (printf "%dx" $profile_width) }}
<img class="avatarMask u-photo" width="{{ $profile_width }}" src="{{ $profile_image.RelPermalink }}" alt="Photo of {{ .Site.Params.Author }}" />
<img src="{{ .Site.BaseURL }}/img/avatar-border.svg" />
<img src="{{ .Site.BaseURL }}img/avatar-border.svg" />
</div>
<!-- author -->
<h1 class="author title p-name">{{ .Site.Params.Author }}</h1>

View file

@ -8,7 +8,7 @@
<h1 class='title p-name'>{{ .Title }}</h1>
<a style="display: none" class="u-url" href="{{ .Permalink }}"></a>
<div style="display: none;" rel="author" class="h-card p-author">
<img class="u-photo" src="{{ .Site.BaseURL }}/img/avatar.jpg"/>
<img class="u-photo" src="{{ .Site.BaseURL }}img/avatar.jpg"/>
<span > {{ .Site.Params.Author }}</span>
</div>
<!-- content -->

View file

@ -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 }}"
}

View file

@ -8,7 +8,7 @@
<h1 class='title p-name'>{{ .Title }}</h1>
<a style="display: none" class="u-url" href="{{ .Permalink }}"></a>
<div style="display: none;" rel="author" class="h-card p-author">
<img class="u-photo" src="{{ .Site.BaseURL }}/img/avatar.jpg"/>
<img class="u-photo" src="{{ .Site.BaseURL }}img/avatar.jpg"/>
<span > {{ .Site.Params.Author }}</span>
</div>
{{ .Scratch.Set "beforeDateString" "Published on "}}