diff options
Diffstat (limited to 'layouts/partials/post-header.html')
-rw-r--r-- | layouts/partials/post-header.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/layouts/partials/post-header.html b/layouts/partials/post-header.html index 7125340..e17b97d 100644 --- a/layouts/partials/post-header.html +++ b/layouts/partials/post-header.html @@ -3,7 +3,7 @@ {{ if .Description }} <p class="post-description" itemprop="description">{{ .Description }}</p> {{ end }} - <p class="post-date"> + <p class="post-date{{ if not .Site.Params.readingTime }} post-line{{ end }}"> <span>Published <time datetime="{{ .Date.Format "2006-01-02" }}" itemprop="datePublished">{{ dateFormat (default "Mon, Jan 2, 2006" .Site.Params.dateFormat) .Date }}</time></span> <span>by</span> <span itemscope="" itemprop="author" itemtype="https://schema.org/Person"> @@ -11,10 +11,10 @@ <a href="{{ .Params.profile | default .Site.Author.profile | default "#" }}" itemprop="url" rel="author">{{ .Params.author | default .Site.Author.name }}</a> </span> </span> - {{ if .Site.Params.readingTime }} - <br /> - <br /> - <span>{{ .Site.Params.readingTimeText }} {{ .Page.ReadingTime }} min</span> - {{ end }} </p> + {{ if .Site.Params.readingTime }} + <p class="post-reading post-line"> + <span>{{ .Site.Params.readingTimeText }} {{ .Page.ReadingTime }} min</span> + </p> + {{ end }} </header>
\ No newline at end of file |