aboutsummaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-09-06 23:20:44 +0200
committerOscar Najera <hi@oscarnajera.com>2023-09-06 23:20:44 +0200
commitcd710363419f5144062707e8cd170278052924fa (patch)
tree3668967825c91c87e4fe153e45802fee1b546f1c /layouts
parent2a6447afb20ae0405ad676a07a6e3bcabc2a29ec (diff)
downloadhugo-minimalist-theme-cd710363419f5144062707e8cd170278052924fa.tar.gz
hugo-minimalist-theme-cd710363419f5144062707e8cd170278052924fa.tar.bz2
hugo-minimalist-theme-cd710363419f5144062707e8cd170278052924fa.zip
Author config
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/author_card.html8
-rw-r--r--layouts/partials/metadata.html2
2 files changed, 5 insertions, 5 deletions
diff --git a/layouts/partials/author_card.html b/layouts/partials/author_card.html
index 25e0701..23d97ae 100644
--- a/layouts/partials/author_card.html
+++ b/layouts/partials/author_card.html
@@ -1,12 +1,12 @@
<div class="mw7 center ph3 flex flex-column flex-row-ns">
<div class="w-10-ns">
- <img src="{{ .Site.Params.Owner_avatar }}" class="br-100">
+ <img src="{{ .Site.Author.avatar }}" class="br-100">
</div>
<div class="w-90-ns ph3-ns">
- <h5 class="f3 mv1 berkshire-swash">{{ .Site.Params.Owner }}</h5>
- <h6 class="f4 fw4 pa0 ma0">{{ .Site.Params.Role }}</h6>
+ <h5 class="f3 mv1 berkshire-swash">{{ .Site.Author.name }}</h5>
+ <h6 class="f4 fw4 pa0 ma0">{{ .Site.Author.role }}</h6>
<p class="f5 lh-copy">
- {{ .Site.Params.bio }}
+ {{ .Site.Author.bio }}
</p>
</div>
</div>
diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html
index 77373f9..f4e48e8 100644
--- a/layouts/partials/metadata.html
+++ b/layouts/partials/metadata.html
@@ -1,7 +1,7 @@
{{ $dateTime := .PublishDate.Format "2006-01-02" }}
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
-<p class="f6 lh-copy mv0 ph4 pv2">By {{ range .Params.authors }} {{ . }} {{ end }}
+<p class="f6 lh-copy mv0 ph4 pv2">By {{ range .Params.author }} {{ . }} {{ end }}
<br/>
<i class="far fa-calendar"></i>
<time class="f6 lh-copy mv0" datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>