mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-11-23 16:46:37 -05:00
Fixed broken avatar img links
This commit is contained in:
parent
8513bece81
commit
71d9811eb8
7 changed files with 9 additions and 9 deletions
|
@ -15,7 +15,7 @@
|
||||||
xml:base="{{ .Permalink }}">
|
xml:base="{{ .Permalink }}">
|
||||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} | {{ end }}{{ .Site.Title }}{{ end }}</title>
|
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} | {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||||
<id>{{ .Permalink }}</id>
|
<id>{{ .Permalink }}</id>
|
||||||
<image>{{ .Site.BaseURL }}/img/{{ .Site.Params.avatar }}</image>
|
<image>{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}</image>
|
||||||
<description>{{ .Description }}</description>
|
<description>{{ .Description }}</description>
|
||||||
<generator uri="https://gohugo.io">Hugo</generator>
|
<generator uri="https://gohugo.io">Hugo</generator>
|
||||||
<author>
|
<author>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<channel>
|
<channel>
|
||||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} | {{ end }}{{ .Site.Title }}{{ end }}</title>
|
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} | {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||||
<link>{{ .Permalink }}</link>
|
<link>{{ .Permalink }}</link>
|
||||||
<image>{{ .Site.BaseURL }}/img/{{ .Site.Params.avatar }}</image>
|
<image>{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}</image>
|
||||||
<description>{{ .Description }}</description>
|
<description>{{ .Description }}</description>
|
||||||
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
|
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
|
||||||
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
|
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<h1 class='title p-name'>{{ .Title }}</h1>
|
<h1 class='title p-name'>{{ .Title }}</h1>
|
||||||
<a style="display: none" class="u-url" href="{{ .Permalink }}"></a>
|
<a style="display: none" class="u-url" href="{{ .Permalink }}"></a>
|
||||||
<div style="display: none;" rel="author" class="h-card p-author">
|
<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>
|
<span > {{ .Site.Params.Author }}</span>
|
||||||
</div>
|
</div>
|
||||||
{{ .Scratch.Set "beforeDateString" "Published on "}}
|
{{ .Scratch.Set "beforeDateString" "Published on "}}
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
"@type": "NewsArticle",
|
"@type": "NewsArticle",
|
||||||
"headline": "{{ .Title }}",
|
"headline": "{{ .Title }}",
|
||||||
"image": [
|
"image": [
|
||||||
"{{ .Site.BaseURL }}/img/{{ .Site.Params.avatar }}"
|
"{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}"
|
||||||
],
|
],
|
||||||
"datePublished": "{{ .Date.Format "2006-01-02" }}",
|
"datePublished": "{{ .Date.Format "2006-01-02" }}",
|
||||||
"author": [{
|
"author": [{
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
"name": "{{ .Site.Params.Author }}",
|
"name": "{{ .Site.Params.Author }}",
|
||||||
"url": "{{ .Site.BaseURL }}",
|
"url": "{{ .Site.BaseURL }}",
|
||||||
"email": "mailto://{{ .Site.Params.email }}",
|
"email": "mailto://{{ .Site.Params.email }}",
|
||||||
"image": "{{ .Site.BaseURL }}/img/{{ .Site.Params.avatar }}"
|
"image": "{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}"
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
{{ $profile_width := 250 }}
|
{{ $profile_width := 250 }}
|
||||||
{{ $profile_image := $profile_image.Resize (printf "%dx" $profile_width) }}
|
{{ $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 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>
|
</div>
|
||||||
<!-- author -->
|
<!-- author -->
|
||||||
<h1 class="author title p-name">{{ .Site.Params.Author }}</h1>
|
<h1 class="author title p-name">{{ .Site.Params.Author }}</h1>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<h1 class='title p-name'>{{ .Title }}</h1>
|
<h1 class='title p-name'>{{ .Title }}</h1>
|
||||||
<a style="display: none" class="u-url" href="{{ .Permalink }}"></a>
|
<a style="display: none" class="u-url" href="{{ .Permalink }}"></a>
|
||||||
<div style="display: none;" rel="author" class="h-card p-author">
|
<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>
|
<span > {{ .Site.Params.Author }}</span>
|
||||||
</div>
|
</div>
|
||||||
<!-- content -->
|
<!-- content -->
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
"@context": "http://schema.org",
|
"@context": "http://schema.org",
|
||||||
"@type": "Person",
|
"@type": "Person",
|
||||||
"email": "mailto://{{ .Site.Params.email }}",
|
"email": "mailto://{{ .Site.Params.email }}",
|
||||||
"image": "{{ .Site.BaseURL }}/img/{{ .Site.Params.avatar }}",
|
"image": "{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}",
|
||||||
"name": "{{ .Site.Params.Author }}",
|
"name": "{{ .Site.Params.Author }}",
|
||||||
"url": "{{ .Site.BaseURL }}"
|
"url": "{{ .Site.BaseURL }}"
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<h1 class='title p-name'>{{ .Title }}</h1>
|
<h1 class='title p-name'>{{ .Title }}</h1>
|
||||||
<a style="display: none" class="u-url" href="{{ .Permalink }}"></a>
|
<a style="display: none" class="u-url" href="{{ .Permalink }}"></a>
|
||||||
<div style="display: none;" rel="author" class="h-card p-author">
|
<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>
|
<span > {{ .Site.Params.Author }}</span>
|
||||||
</div>
|
</div>
|
||||||
{{ .Scratch.Set "beforeDateString" "Published on "}}
|
{{ .Scratch.Set "beforeDateString" "Published on "}}
|
||||||
|
|
Loading…
Reference in a new issue