1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-11-24 13:10:18 +01:00

Use HTML5 article tag for blog post summaries

See: https://developer.mozilla.org/en/docs/Web/HTML/Element/article
This commit is contained in:
Alan Orth 2016-08-29 16:24:14 +03:00
parent bfaa9ac247
commit ea1da4a69e
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -1,6 +1,6 @@
<div 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="#">Mark</a></p> <p class="blog-post-meta"><time datetime="{{ .Date }}">{{ .Date.Format .Site.Params.date_format }}</time> by <a href="#">Mark</a></p>
{{ .Summary }} {{ .Summary }}
<a href='{{ .Permalink }}'><nobr>Read more →</nobr></a> <a href='{{ .Permalink }}'><nobr>Read more →</nobr></a>
</div> <!-- /.blog-post --> </article> <!-- /.blog-post -->