mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2024-11-24 21:20:17 +01:00
layouts/post/summary.html: Rework author name display
Use author name from frontmatter if it exists, otherwise use the author from the site config.
This commit is contained in:
parent
8a0716d236
commit
0e54dba17a
@ -1,6 +1,6 @@
|
|||||||
<article class="blog-post">
|
<article class="blog-post">
|
||||||
<h2 class="blog-post-title"><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></h2>
|
<h2 class="blog-post-title"><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></h2>
|
||||||
<p class="blog-post-meta"><time datetime="{{ .Date }}">{{ .Date.Format .Site.Params.date_format }}</time> by <a href="#">{{ .Site.Params.author }}</a></p>
|
<p class="blog-post-meta"><time datetime="{{ .Date }}">{{ .Date.Format .Site.Params.date_format }}</time> by <a href="#">{{ .Params.author | default .Site.Params.author }}</a></p>
|
||||||
{{ .Summary }}
|
{{ .Summary }}
|
||||||
<a href='{{ .Permalink }}'><nobr>Read more →</nobr></a>
|
<a href='{{ .Permalink }}'><nobr>Read more →</nobr></a>
|
||||||
</article> <!-- /.blog-post -->
|
</article> <!-- /.blog-post -->
|
||||||
|
Loading…
Reference in New Issue
Block a user