mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2024-11-18 10:17:04 +01:00
Alan Orth
f76b5a069a
Use the date format from the config, and print it in a time tag. See: https://golang.org/pkg/time/
7 lines
365 B
HTML
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 -->
|