hackertours-theme/layouts/_default/single.html

21 lines
570 B
HTML

{{ define "title" }}{{ .Title }} - {{ .Site.Title }}{{ end }}
{{ define "meta" }}
{{ partial "single_meta.html" . }}
{{ end }}
{{ define "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>
</header>
<div>
{{ .Content }}
</div>
</article>
</main>
{{ partial "menu.html" . }}
{{ if $.Param "sidebar" | default true }}{{ partial "sidebar.html" . }}{{ end }}
{{ end }}