Whitespace fixes. Change layout__content to layout__main.
This commit is contained in:
parent
f450d62703
commit
31bab84fea
8 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>
|
<div class="region header__region">{{ if $.Param "search" }}{{ partialCached "search.html" . }}{{ end }}</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
{{ partial "menu.html" . -}}
|
{{ partial "menu.html" . }}
|
||||||
|
|
||||||
{{ block "main" . }}{{ end -}}
|
{{ block "main" . }}{{ end }}
|
||||||
|
|
||||||
{{ if $.Param "sidebar" | default true }}{{ partial "sidebar.html" . -}}{{ end }}
|
{{ if $.Param "sidebar" | default true }}{{ partial "sidebar.html" . -}}{{ end }}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<article class="{{ with .Section }}section-{{ . | urlize }} {{ end }}full-view">
|
<article class="{{ with .Section }}section-{{ . | urlize }} {{ end }}full-view">
|
||||||
<header>
|
<header>
|
||||||
<h1 class="title {{ if $.Param "submitted" | default false }}title-submitted{{ end }}"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h1>
|
<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>
|
</header>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "main" -}}
|
{{ define "main" -}}
|
||||||
<main class="content layout__content" role="main">
|
<main class="main layout__main" role="main">
|
||||||
<h1 class="title">{{ .Title }}</h1>
|
<h1 class="title">{{ .Title }}</h1>
|
||||||
{{ $paginator := .Paginate (.Data.Pages) -}}
|
{{ $paginator := .Paginate (.Data.Pages) -}}
|
||||||
{{ range $paginator.Pages -}}
|
{{ range $paginator.Pages -}}
|
||||||
|
|
|
||||||
|
|
@ -3,17 +3,17 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "main" -}}
|
{{ 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>
|
<h1 class="title {{ if $.Param "submitted" | default false }}title-submitted{{ end }}">{{ .Title }}</h1>
|
||||||
<article class="{{ with .Section }}section-{{ . | urlize }} {{ end }}single-view">
|
<article class="{{ with .Section }}section-{{ . | urlize }} {{ end }}single-view">
|
||||||
<header>
|
<header>
|
||||||
{{ if $.Param "submitted" | default false }}{{ partial "submitted.html" . -}}{{ end }}
|
{{ if $.Param "submitted" | default false }}{{ partial "submitted.html" . }}{{ end -}}
|
||||||
{{ if .Params.tags }}{{ partial "tags.html" . -}}{{ end }}
|
{{ if .Params.tags }}{{ partial "tags.html" . }}{{ end -}}
|
||||||
</header>
|
</header>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
|
||||||
{{- if not .Lastmod.IsZero }}{{ partial "dates.html" . -}}{{ end -}}
|
{{ if not .Lastmod.IsZero }}{{ partial "dates.html" . }}{{ end -}}
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
</main>
|
</main>
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "main" -}}
|
{{ define "main" -}}
|
||||||
<main class="content layout__content" role="main">
|
<main class="main layout__main" role="main">
|
||||||
<article class="{{ with .Section }}section-{{ . | urlize }} {{ end }}single-view">
|
<article class="{{ with .Section }}section-{{ . | urlize }} {{ end }}single-view">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
<p class="submitted">
|
<p class="submitted">
|
||||||
{{ with $.Param "author" }}<span class="author">{{ . }}</span> – {{ end -}}
|
{{ with $.Param "author" }}<span class="author">{{ . }}</span> – {{ end -}}
|
||||||
{{ if not .Lastmod.IsZero }}
|
{{ if not .Lastmod.IsZero -}}
|
||||||
<time class="modified-date" datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Lastmod.Format ($.Param "dateformat" | default "2 January, 2006") }}</time>
|
<time class="modified-date" datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Lastmod.Format ($.Param "dateformat" | default "2 January, 2006") }}</time>
|
||||||
{{ else }}
|
{{ else -}}
|
||||||
<time class="modified-date" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format ($.Param "dateformat" | default "2 January, 2006") }}</time>
|
<time class="modified-date" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format ($.Param "dateformat" | default "2 January, 2006") }}</time>
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
</p>
|
</p>
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ $with-wireframes: false !default;
|
||||||
.layout {
|
.layout {
|
||||||
&__header,
|
&__header,
|
||||||
&__footer,
|
&__footer,
|
||||||
&__content,
|
&__main,
|
||||||
&__navigation,
|
&__navigation,
|
||||||
&__first-sidebar,
|
&__first-sidebar,
|
||||||
&__second-sidebar,
|
&__second-sidebar,
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
&__header,
|
&__header,
|
||||||
&__footer,
|
&__footer,
|
||||||
&__content,
|
&__main,
|
||||||
&__navigation,
|
&__navigation,
|
||||||
&__first-sidebar,
|
&__first-sidebar,
|
||||||
&__second-sidebar,
|
&__second-sidebar,
|
||||||
|
|
@ -112,7 +112,7 @@
|
||||||
grid-area: top;
|
grid-area: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__content {
|
&__main {
|
||||||
grid-area: main;
|
grid-area: main;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue