mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2024-12-25 11:44:29 +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
11 lines
520 B
HTML
11 lines
520 B
HTML
{{ define "title" }}{{ .Title }} | {{ .Site.Title }}{{ end }}
|
|
{{ define "main" }}
|
|
<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>
|
|
{{ .Content }}
|
|
</article> <!-- /.blog-post -->
|
|
{{ end }}
|