mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2024-11-18 10:17:04 +01:00
Alan Orth
1f0799b9f1
Headers are a semantic element that help computers understand the content. In general, header tags should follow rank order, but the most important is that the first header inside a section will serve as the title in a table of contents, etc, but since article sections stand alone as independent documents, I like the idea of explicitly starting with H1 tags. See: http://diveinto.html5doctor.com/semantics.html
9 lines
446 B
HTML
9 lines
446 B
HTML
<article class="blog-post">
|
|
<header>
|
|
<h1 class="blog-post-title"><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a></h1>
|
|
<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>
|
|
</header>
|
|
{{ .Summary }}
|
|
<a href='{{ .Permalink }}'><nobr>Read more →</nobr></a>
|
|
</article> <!-- /.blog-post -->
|