Skip to content

Commit 97703e6

Browse files
jsilvelasxd
andauthored
chore: update to current Hugo, update layouts (#360)
Hugo version updated to v0.151.0 Signed-off-by: Jaime Silvela <jaime.silvela@mailfence.com> Signed-off-by: Jonathan Gonzalez V. <jonathan.abdiel@gmail.com> Co-authored-by: Jonathan Gonzalez V. <jonathan.abdiel@gmail.com>
1 parent 0a964e9 commit 97703e6

20 files changed

+34
-5
lines changed

.github/workflows/hugo_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Setup Hugo
3737
uses: peaceiris/actions-hugo@v2
3838
with:
39-
hugo-version: "0.140.0"
39+
hugo-version: "0.151.0"
4040
extended: true
4141

4242
- name: Build
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
<div class="flex gap-3">
33
{{ range . }}
44
<div class="my-auto">
5-
<img src="{{ .RelPermalink }}/{{ .Params.avatar }}" class="w-10 h-10 rounded-full"
6-
alt="{{.LinkTitle}}">
5+
{{ $authorPage := . }}
6+
{{ with .Resources.Get .Params.avatar}}
7+
<img src="{{ .RelPermalink }}" class="w-10 h-10 rounded-full"
8+
alt="{{$authorPage.LinkTitle}}">
9+
{{ end }}
710
</div>
811

912
<div>
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
<div class="flex gap-3">
33
{{ range . }}
44
<div class="my-auto">
5-
<img src="{{ .RelPermalink }}/{{ .Params.avatar }}" class="w-10 h-10 rounded-full"
6-
alt="{{.LinkTitle}}">
5+
{{ $authorPage := . }}
6+
{{ with .Resources.Get .Params.avatar}}
7+
<img src="{{ .RelPermalink }}" class="w-10 h-10 rounded-full"
8+
alt="{{$authorPage.LinkTitle}}">
9+
{{ end }}
710
<h1 class="text-lg charcoal font-bold">
811
{{.Title}}
912
</h1>

0 commit comments

Comments
 (0)