Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dataCobra/hugo-vitae.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordataCobra <datacobra@thinkbot.de>2021-04-12 19:41:59 +0300
committerdataCobra <datacobra@thinkbot.de>2021-04-12 19:41:59 +0300
commitee4f689aa106950e6422131fff92df72e1c05d20 (patch)
tree8311bb08116f9ca32001f237b502469fb3f24016
parentd0f89d1dbfd0f010363d299353af68609d40c95a (diff)
Add article tag for SEO
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/index.html2
3 files changed, 6 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 7f93a56..437dfb6 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -18,6 +18,7 @@
</div>
</div>
<div class="matter">
+<article>
<h3 class="title small"><a href="{{ .RelPermalink }}">{{.Title}}{{ if .Draft }}<sup class="draft-label">DRAFT</sup>{{ end }}</a></h3>
{{- if eq .Site.Params.listAuthor true }}
<div class="author">
@@ -31,6 +32,7 @@
</div>
{{- end }}
<span class="description">{{ if isset .Params "description" }}{{ .Description }}{{ else }}{{ .Plain | htmlUnescape | safeHTML | truncate 140 }}{{ end }}</span>
+</article>
</div>
</div>
</li>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 39e0095..b46f398 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -23,6 +23,7 @@
{{- end }}
</div>
{{- end }}
+<article>
<div class="matter">
<h1 class="title">{{ .Title }}</h1>
</div>
@@ -30,6 +31,7 @@
<div class="markdown">
{{ .Content }}
</div>
+</article>
{{- if ne (in .Site.Params.disableTaxoTypes .Type) true }}
{{- $pagename := .Page.Title }}
{{- $notaxo := .Params.notaxonomy }}
diff --git a/layouts/index.html b/layouts/index.html
index a8f66a0..49886e1 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -13,6 +13,7 @@
</div>
</div>
<div class="matter">
+<article>
<h3 class="title small"><a href="{{ .RelPermalink }}">{{.Title}}{{ if .Draft }}<sup class="draft-label">DRAFT</sup>{{ end }}</a></h3>
{{- if eq .Site.Params.listAuthor true }}
<div class="author">
@@ -26,6 +27,7 @@
</div>
{{- end }}
<span class="description">{{ if isset .Params "description" }}{{ .Description }}{{ else }}{{ .Plain | htmlUnescape | safeHTML | truncate 140 }}{{ end }}</span>
+</article>
</div>
</div>
</div>