Skip to content

Commit

Permalink
Merge pull request #173 from MarekPikula/hide-vr-without-author
Browse files Browse the repository at this point in the history
Hide vertical rule in single if no author is set
  • Loading branch information
gurusabarish authored Jun 15, 2024
2 parents c1ff66b + bfc0f01 commit a01acae
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 a01acae

Please sign in to comment.