Skip to content

Commit

Permalink
Hide vertical rule in single if no author is set
Browse files Browse the repository at this point in the history
Before, even if no author was set, vertical rule was shown before the
date on the top of a single page.

Signed-off-by: Marek Pikuła <marek@serenitycode.dev>
  • Loading branch information
MarekPikula committed Jun 1, 2024
1 parent 4687d53 commit bfc0f01
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@
<div class="title mb-5">
<h1 class="text-center mb-4">{{ .Title }}</h1>
<div class="text-center">
{{ .Params.author }}
<small>|</small>
{{ if .Params.author }}
{{ .Params.author }}
<small>|</small>
{{ end }}
{{ .Date.Format (.Site.Params.datesFormat.article | default "Jan 2, 2006") }}

{{ if or (.Site.Params.singlePages.readTime.enable | default true) (.Params.enableReadingTime) }}
Expand Down

0 comments on commit bfc0f01

Please sign in to comment.