From 983b64ca51f5e769f790a5ebc55e3808157b8d94 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 5 Jun 2020 16:57:53 +0200 Subject: updated to newest theme supporting newer hugo versions --- themes/new_theme/layouts/partials/authorbox.html | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'themes/new_theme/layouts/partials/authorbox.html') diff --git a/themes/new_theme/layouts/partials/authorbox.html b/themes/new_theme/layouts/partials/authorbox.html index cfd09c5..29faa5f 100644 --- a/themes/new_theme/layouts/partials/authorbox.html +++ b/themes/new_theme/layouts/partials/authorbox.html @@ -1,13 +1,24 @@ -{{- if .Site.Params.authorbox }} +{{- if .Param "authorbox" }}
+ {{- if and (not .Site.Author.avatar) (not .Site.Author.name) (not .Site.Author.bio) }} +

+ WARNING: Authorbox is activated, but [Author] parameters are not specified. +

+ {{- end }} + {{- with .Site.Author.avatar }}
- {{ .Site.Author.name }} avatar + {{ $.Site.Author.name }} avatar
+ {{- end }} + {{- with .Site.Author.name }}
- About {{ .Site.Author.name }} + {{ T "authorbox_name" . }}
+ {{- end }} + {{- with .Site.Author.bio }}
- {{ .Site.Author.bio }} + {{ . | markdownify }}
+ {{- end }}
-{{- end }} \ No newline at end of file +{{- end }} -- cgit v1.2.3-54-g00ecf