Skip to content

Commit

Permalink
Fix date duplicated when profile not set
Browse files Browse the repository at this point in the history
  • Loading branch information
BernatBC committed Jan 24, 2024
1 parent e42eca4 commit 1c77537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ <h5 class="author-name">{{ partial "helpers/get-author-name.html" . }}</h5>
<h1>{{ .Page.Title }}</h1>
</div>

{{ if not .Params.profile | default true }}
{{ 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>
Expand Down

0 comments on commit 1c77537

Please sign in to comment.