Whitespace fixes. Change layout__content to layout__main.
This commit is contained in:
parent
f450d62703
commit
31bab84fea
4 changed files with 14 additions and 14 deletions
|
|
@ -19,9 +19,9 @@
|
|||
<div class="region header__region">{{ if $.Param "search" }}{{ partialCached "search.html" . }}{{ end }}</div>
|
||||
</header>
|
||||
|
||||
{{ partial "menu.html" . -}}
|
||||
{{ partial "menu.html" . }}
|
||||
|
||||
{{ block "main" . }}{{ end -}}
|
||||
{{ block "main" . }}{{ end }}
|
||||
|
||||
{{ if $.Param "sidebar" | default true }}{{ partial "sidebar.html" . -}}{{ end }}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<article class="{{ with .Section }}section-{{ . | urlize }} {{ end }}full-view">
|
||||
<header>
|
||||
<h1 class="title {{ if $.Param "submitted" | default false }}title-submitted{{ end }}"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h1>
|
||||
{{ if $.Param "submitted" | default false }}{{ partial "submitted.html" . -}}{{ end }}
|
||||
{{ if $.Param "submitted" | default false }}{{ partial "submitted.html" . }}{{ end -}}
|
||||
</header>
|
||||
<div class="content">
|
||||
{{ .Content }}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
{{ end }}
|
||||
|
||||
{{ define "main" -}}
|
||||
<main class="content layout__content" role="main">
|
||||
<main class="main layout__main" role="main">
|
||||
<h1 class="title">{{ .Title }}</h1>
|
||||
{{ $paginator := .Paginate (.Data.Pages) -}}
|
||||
{{ range $paginator.Pages -}}
|
||||
|
|
|
|||
|
|
@ -3,17 +3,17 @@
|
|||
{{ end }}
|
||||
|
||||
{{ define "main" -}}
|
||||
<main class="content layout__content" role="main">
|
||||
<main class="main layout__main" role="main">
|
||||
<h1 class="title {{ if $.Param "submitted" | default false }}title-submitted{{ end }}">{{ .Title }}</h1>
|
||||
<article class="{{ with .Section }}section-{{ . | urlize }} {{ end }}single-view">
|
||||
<header>
|
||||
{{ if $.Param "submitted" | default false }}{{ partial "submitted.html" . -}}{{ end }}
|
||||
{{ if .Params.tags }}{{ partial "tags.html" . -}}{{ end }}
|
||||
{{ if $.Param "submitted" | default false }}{{ partial "submitted.html" . }}{{ end -}}
|
||||
{{ if .Params.tags }}{{ partial "tags.html" . }}{{ end -}}
|
||||
</header>
|
||||
<div class="content">
|
||||
{{ .Content }}
|
||||
|
||||
{{- if not .Lastmod.IsZero }}{{ partial "dates.html" . -}}{{ end -}}
|
||||
{{ if not .Lastmod.IsZero }}{{ partial "dates.html" . }}{{ end -}}
|
||||
</div>
|
||||
</article>
|
||||
</main>
|
||||
|
|
|
|||
Loading…
Reference in a new issue