Make sidebar optional, make it possible to overide all parmas per post.

This commit is contained in:
Fredrik Jonsson 2017-05-16 15:37:22 +02:00
commit 0299c650d5

View file

@ -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 }}