diff options
author | Yurizal Susanto <rizal.sagi@gmail.com> | 2017-07-03 05:59:35 +0300 |
---|---|---|
committer | Yurizal Susanto <rizal.sagi@gmail.com> | 2017-07-03 05:59:35 +0300 |
commit | b30665b216be6798a1e2692f80046748aa39e325 (patch) | |
tree | 7fc1e9514e7d5ef6588e686798c1c8321892e999 /layouts | |
parent | b3e8217a87808b7d153afb44ed63990aedea8c07 (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.html | 10 | ||||
-rw-r--r-- | layouts/index.html | 39 |
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" . }} |