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

github.com/yursan9/manis-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYurizal Susanto <rizal.sagi@gmail.com>2017-07-03 05:59:35 +0300
committerYurizal Susanto <rizal.sagi@gmail.com>2017-07-03 05:59:35 +0300
commitb30665b216be6798a1e2692f80046748aa39e325 (patch)
tree7fc1e9514e7d5ef6588e686798c1c8321892e999 /layouts
parentb3e8217a87808b7d153afb44ed63990aedea8c07 (diff)
Rework tag to be more semantic
Warp all in article tag. Add call to .Content variable in homepage, and wrap header in appropriate tag.
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/list.html10
-rw-r--r--layouts/index.html39
2 files changed, 28 insertions, 21 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 8d04ea2..c7ab964 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,12 +1,14 @@
{{ partial "header" . }}
-<section>
- {{ partial "title" . }}
- {{ with .Content }}{{.}}{{ end }}
+<article>
+ <header>
+ {{ partial "title" . }}
+ {{ with .Content }}{{.}}{{ end }}
+ </header>
<ul class="no-bullet">
{{ range .Paginator.Pages }}
{{ partial "li" . }}
{{ end }}
</ul>
{{ partial "paginator" . }}
-</section>
+</article>
{{ partial "footer" . }}
diff --git a/layouts/index.html b/layouts/index.html
index 1ef103a..d475de2 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,20 +1,25 @@
{{ partial "header" . }}
-{{ partial "title" . }}
+<article>
+ <header>
+ {{ partial "title" . }}
+ {{ with .Content }}{{.}}{{ end }}
+ </header>
{{ $latestcount := .Site.Params.LatestCount | default 3 }}
-<section>
- <h4>{{ T "latestPost" }}</h4>
- <ul class="no-bullet">
- {{- range (first $latestcount (where .Pages "Section" "blog")) -}}
- {{ partial "li" . }}
- {{- end -}}
- </ul>
-</section>
-<section>
- <h4>{{ T "latestWork" }}</h4>
- <ul class="no-bullet">
- {{- range (first $latestcount (where .Pages "Section" "work")) -}}
- {{ partial "li" . }}
- {{- end -}}
- </ul>
-</section>
+ <section>
+ <h4>{{ T "latestPost" }}</h4>
+ <ul class="no-bullet">
+ {{- range (first $latestcount (where .Pages "Section" "blog")) -}}
+ {{ partial "li" . }}
+ {{- end -}}
+ </ul>
+ </section>
+ <section>
+ <h4>{{ T "latestWork" }}</h4>
+ <ul class="no-bullet">
+ {{- range (first $latestcount (where .Pages "Section" "work")) -}}
+ {{ partial "li" . }}
+ {{- end -}}
+ </ul>
+ </section>
+</article>
{{ partial "footer" . }}