Skip to content

Commit

Permalink
Add param profile
Browse files Browse the repository at this point in the history
  • Loading branch information
BernatBC committed Jan 24, 2024
1 parent c74672c commit e42eca4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,26 @@

<!--Content Start-->
<div class="page-content">
{{ if .Params.profile | default true }}
<div class="author-profile ml-auto align-self-lg-center">
<img class="rounded-circle" src='{{ partial "helpers/get-author-image.html" . }}' alt="Author Image">
<h5 class="author-name">{{ partial "helpers/get-author-name.html" . }}</h5>
<p class="text-muted">{{ .Page.Date | time.Format ":date_full" }}{{ if site.Params.features.readingTime }} | {{ .ReadingTime }} {{i18n "minute" .ReadingTime }}{{ end }}</p>
</div>

{{ else }}
<div style="margin-bottom: 80px;"></div>
{{ end }}

<div class="title">
<h1>{{ .Page.Title }}</h1>
</div>

{{ if not .Params.profile | default true }}
<div class="author-profile ml-auto align-self-lg-center">
<p class="text-muted">{{ .Page.Date | time.Format ":date_full" }}{{ if site.Params.features.readingTime }} | {{ .ReadingTime }} {{i18n "minute" .ReadingTime }}{{ end }}</p>
</div>
{{ end }}

{{ if site.Params.features.tags.enable }}
{{partial "misc/tags.html" .Params.tags }}
{{ end }}
Expand Down

0 comments on commit e42eca4

Please sign in to comment.