diff options
author | Oscar Najera <hi@oscarnajera.com> | 2024-12-19 01:10:07 +0100 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2024-12-19 01:10:07 +0100 |
commit | c043b199eb247638a08945b88d76601c99e737b6 (patch) | |
tree | 66bcc40aab1093af7a1eabfb5664bca56ce9bee4 /layouts | |
parent | 94df2b0216f75a09b95c2938ae6d5b56f39fbebf (diff) | |
download | hugo-minimalist-theme-c043b199eb247638a08945b88d76601c99e737b6.tar.gz hugo-minimalist-theme-c043b199eb247638a08945b88d76601c99e737b6.tar.bz2 hugo-minimalist-theme-c043b199eb247638a08945b88d76601c99e737b6.zip |
author params
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/single.html | 2 | ||||
-rw-r--r-- | layouts/partials/footer.html | 8 | ||||
-rw-r--r-- | layouts/partials/hero.html | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 24bcffb..57010cc 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -25,7 +25,7 @@ {{ end }} <div class="f5 f4-ns lh-copy pv2"> {{ if in (slice "post" "talk") .Section }} - {{ partial "author_card" .Site.Author }} + {{ partial "author_card" .Site.Params.Author }} {{ end }} {{ partial "post_pager" . }} </div> diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index a0e4472..d9e6ccc 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -35,17 +35,17 @@ > <span property="dct:title">The content in this website</span> by - {{ with .Site.Author.homepage }} + {{ with .Site.Params.Author.homepage }} <a rel="cc:attributionURL dct:creator" property="cc:attributionName" href="{{ . }}" class="link dim" > - {{ $.Site.Author.name }} + {{ $.Site.Params.Author.name }} </a> {{ else }} - {{ $.Site.Author.name }} + {{ $.Site.Params.Author.name }} {{ end }} is licensed under a @@ -84,7 +84,7 @@ {{ else }} Copyright © {{ now.Format "2006" }} - {{ .Site.Author.name }} + {{ .Site.Params.Author.name }} {{ end }} </div> diff --git a/layouts/partials/hero.html b/layouts/partials/hero.html index 7823a62..3008ef2 100644 --- a/layouts/partials/hero.html +++ b/layouts/partials/hero.html @@ -22,7 +22,7 @@ {{ if .Params.personal }} <h2 class="f3 tc fw3 mv1"> - {{ .Site.Author.role | markdownify }} + {{ .Site.Params.Author.role | markdownify }} </h2> {{ end }} @@ -35,7 +35,7 @@ <div class="f2 mt3 tc"> {{ if .Params.personal }} - {{ partial "social_links" .Site.Author }} + {{ partial "social_links" .Site.Params.Author }} {{ else }} {{ partial "social_links" .Site.Params }} {{ end }} |