1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-07-03 11:33:44 +02:00
hugo-theme-bootstrap4-blog/layouts/_default/summary.html
Alan Orth f76b5a069a
layouts: Improve usage of datetime
Use the date format from the config, and print it in a time tag.

See: https://golang.org/pkg/time/
2016-08-28 22:15:16 +03:00

7 lines
365 B
HTML

<div 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="#">Mark</a></p>
{{ .Summary }}
<a href='{{ .Permalink }}'><nobr>Read more →</nobr></a>
</div> <!-- /.blog-post -->