mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2024-11-18 02:07:05 +01:00
Alan Orth
412cc18cf9
Partials are nice, but blocks are a better base construct. Right now there is basically only layouts/_default/baseof.html that is doing most of the work. See: https://gohugo.io/templates/blocks
7 lines
419 B
HTML
7 lines
419 B
HTML
<article class="blog-post">
|
|
<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="#">{{ .Params.author | default .Site.Params.author }}</a></p>
|
|
{{ .Summary }}
|
|
<a href='{{ .Permalink }}'><nobr>Read more →</nobr></a>
|
|
</article> <!-- /.blog-post -->
|