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>
|
||||
</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>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
{{ end }}
|
||||
|
||||
{{ 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">
|
||||
<div class="content">
|
||||
{{ .Content }}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
<p class="submitted">
|
||||
{{ 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>
|
||||
{{ else }}
|
||||
{{ else -}}
|
||||
<time class="modified-date" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format ($.Param "dateformat" | default "2 January, 2006") }}</time>
|
||||
{{ end -}}
|
||||
</p>
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ $with-wireframes: false !default;
|
|||
.layout {
|
||||
&__header,
|
||||
&__footer,
|
||||
&__content,
|
||||
&__main,
|
||||
&__navigation,
|
||||
&__first-sidebar,
|
||||
&__second-sidebar,
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
&__header,
|
||||
&__footer,
|
||||
&__content,
|
||||
&__main,
|
||||
&__navigation,
|
||||
&__first-sidebar,
|
||||
&__second-sidebar,
|
||||
|
|
@ -112,7 +112,7 @@
|
|||
grid-area: top;
|
||||
}
|
||||
|
||||
&__content {
|
||||
&__main {
|
||||
grid-area: main;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue