Skip to content

Commit

Permalink
update examplesite
Browse files Browse the repository at this point in the history
  • Loading branch information
mansoorbarri committed Jan 4, 2025
1 parent 08071d6 commit 9f52897
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Empty file added exampleSite/.hugo_build.lock
Empty file.
10 changes: 5 additions & 5 deletions layouts/partials/authorbox.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{{- if .Param "authorbox" }}
<div class="authorbox clearfix">
{{- if and (not .Site.Author.avatar) (not .Site.Author.name) (not .Site.Author.bio) }}
{{- if and (not .Site.Params.Author.avatar) (not .Site.Params.Author.name) (not .Site.Params.Author.bio) }}
<p class="authorbox__warning">
<strong>WARNING:</strong> Authorbox is activated, but [Author] parameters are not specified.
</p>
{{- end }}
{{- with .Site.Author.avatar }}
{{- with .Site.Params.Author.avatar }}
<figure class="authorbox__avatar">
<img alt="{{ $.Site.Author.name }} avatar" src="{{ $.Site.Author.avatar | relURL }}" class="avatar" height="90" width="90">
<img alt="{{ $.Site.Params.Author.name }} avatar" src="{{ $.Site.Params.Author.avatar | relURL }}" class="avatar" height="90" width="90">
</figure>
{{- end }}
{{- with .Site.Author.name }}
{{- with .Site.Params.Author.name }}
<div class="authorbox__header">
<span class="authorbox__name">{{ T "authorbox_name" (dict "Name" .) }}</span>
</div>
{{- end }}
{{- with .Site.Author.bio }}
{{- with .Site.Params.Author.bio }}
<div class="authorbox__description">
{{ . | markdownify }}
</div>
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/post_meta/author.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- if .Site.Author.name -}}
{{- if .Site.Params.Author.name -}}
<div class="meta__item-author meta__item">
{{ partial "svg/author.svg" (dict "class" "meta__icon") -}}
<span class="meta__text">{{ .Site.Author.name }}</span>
<span class="meta__text">{{ .Site.Params.Author.name }}</span>
</div>
{{- end -}}

0 comments on commit 9f52897

Please sign in to comment.