Make sidebar optional, make it possible to overide all parmas per post.
This commit is contained in:
parent
10d36011ee
commit
0299c650d5
1 changed files with 27 additions and 68 deletions
|
|
@ -2,11 +2,10 @@
|
|||
|
||||
{{ define "meta" }}
|
||||
{{ partial "single_meta.html" . }}
|
||||
{{ partial "single_json_ld.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<main class="layout-3col__left-content" role="main">
|
||||
<main class="{{ if $.Param "sidebar" | default true }}layout-3col__left-content{{ else }}layout-3col__full{{ end }}" role="main">
|
||||
<h1>{{ .Title }}</h1>
|
||||
<article class="{{ with .Section }}section-{{ . | urlize }}{{ end }} single-view">
|
||||
<header>
|
||||
|
|
@ -18,5 +17,5 @@
|
|||
</main>
|
||||
|
||||
{{ partial "menu.html" . }}
|
||||
{{ partial "sidebar.html" . }}
|
||||
{{ if $.Param "sidebar" | default true }}{{ partial "sidebar.html" . }}{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue