Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cntrump/hugo-notepadium.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvvveiii <cntrump@gmail.com>2020-05-03 14:59:35 +0300
committervvveiii <cntrump@gmail.com>2020-05-03 14:59:35 +0300
commit72aeb50cd1a4008b6f0d0651a2f3814d9e410bbf (patch)
tree82ab7ac7875ae0066e0191114c965bc7f63d88ed /layouts
parent75367d6f3330730f6eb6af4740a144fd3fb4c57a (diff)
fix build exampleSite error.
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/article-author.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/layouts/partials/article-author.html b/layouts/partials/article-author.html
index 03229c0..a3e12e3 100644
--- a/layouts/partials/article-author.html
+++ b/layouts/partials/article-author.html
@@ -1,10 +1,10 @@
-{{- $author := .Params.author -}}
-{{- if not $author -}}
- {{- $author = site.Params.author -}}
+{{- $profile := .Params.profile -}}
+{{- if not $profile -}}
+ {{- $profile = site.Params.profile -}}
{{- end -}}
-{{- with $author -}}
-{{- if .enable -}}
+{{- with $profile -}}
+{{- if eq .enable true -}}
<section class="article author">
{{- with .avatar -}}<img class="avatar" src="{{- . | relURL -}}" alt>{{- end -}}