Improve semantic layout
This commit is contained in:
parent
1665f619df
commit
cdc13f1bf7
5 changed files with 52 additions and 44 deletions
|
@ -1,7 +1,9 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<div class="page404 block center">
|
<main class="main">
|
||||||
|
<div class="page404 block center">
|
||||||
<h1 class="page404__title">{{ T "page404_title" }}</h1>
|
<h1 class="page404__title">{{ T "page404_title" }}</h1>
|
||||||
<p class="page404__lead">{{ T "page404_lead" }}</p>
|
<p class="page404__lead">{{ T "page404_lead" }}</p>
|
||||||
<a class="page404__link" href="">{{ T "page404_link" }}</a>
|
<a class="page404__link" href="">{{ T "page404_link" }}</a>
|
||||||
</div>
|
</div>
|
||||||
|
</main>
|
||||||
{{ end }}
|
{{ end }}
|
|
@ -26,7 +26,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{{ partial "header" . }}
|
{{ partial "header" . }}
|
||||||
<div class="main">
|
<div class="primary">
|
||||||
{{ block "main" . }}
|
{{ block "main" . }}
|
||||||
{{- if or .Title .Content }}
|
{{- if or .Title .Content }}
|
||||||
<div class="page block">
|
<div class="page block">
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
<main class="main">
|
||||||
<div class="cards">
|
<div class="cards">
|
||||||
{{ range .Paginator.Pages }}
|
{{ range .Paginator.Pages }}
|
||||||
<div class="card{{ if $.Param "cardsPerRow" }} card--{{ $.Param "cardsPerRow" }}col{{ else }} card--2col{{ end }}">
|
<div class="card{{ if $.Param "cardsPerRow" }} card--{{ $.Param "cardsPerRow" }}col{{ else }} card--2col{{ end }}">
|
||||||
|
@ -6,5 +7,6 @@
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
</main>
|
||||||
{{ partial "pagination.html" . }}
|
{{ partial "pagination.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
|
@ -1,4 +1,5 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
<main class="main">
|
||||||
<div class="single block">
|
<div class="single block">
|
||||||
<article class="post">
|
<article class="post">
|
||||||
{{- partial "post_thumbnail.html" (dict "page" . ) }}
|
{{- partial "post_thumbnail.html" (dict "page" . ) }}
|
||||||
|
@ -14,6 +15,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</article>
|
</article>
|
||||||
</div>
|
</div>
|
||||||
|
</main>
|
||||||
{{ partial "related.html" . }}
|
{{ partial "related.html" . }}
|
||||||
{{ partial "comments.html" . }}
|
{{ partial "comments.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
|
@ -1,4 +1,5 @@
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
<main class="main">
|
||||||
<div class="cards">
|
<div class="cards">
|
||||||
{{ $mainSections := .Site.Params.mainSections | default (slice "post") }}
|
{{ $mainSections := .Site.Params.mainSections | default (slice "post") }}
|
||||||
{{ $paginator := .Paginate ( where .Data.Pages "Section" "in" $mainSections ) }}
|
{{ $paginator := .Paginate ( where .Data.Pages "Section" "in" $mainSections ) }}
|
||||||
|
@ -16,5 +17,6 @@
|
||||||
<p class="empty__tip">{{ T "empty_tip" | safeHTML }}</p>
|
<p class="empty__tip">{{ T "empty_tip" | safeHTML }}</p>
|
||||||
</div>
|
</div>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
</main>
|
||||||
{{ partial "pagination.html" . }}
|
{{ partial "pagination.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
Loading…
Reference in a new issue