hackertours-theme/layouts/index.html

18 lines
485 B
HTML

{{ define "title" }}{{ .Site.Title }}{{ end }}
{{ define "meta" }}
{{- partial "section_meta.html" . -}}
{{- partial "single_meta.html" . -}}
{{ end }}
{{ define "main" -}}
<main class="layout__content" role="main">
<article class="{{ with .Section }}section-{{ . | urlize }} {{ end }}single-view">
<div class="content">
{{ .Content }}
</div>
</article>
</main>
{{ partial "menu.html" . -}}
{{ if $.Param "sidebar" | default true }}{{ partial "sidebar.html" . -}}{{ end }}
{{ end }}