Implemented tags partial, wrap dates in time tag with datatime attribute. Added class content to content. Add title classes.

This commit is contained in:
Fredrik Jonsson 2017-05-21 23:39:15 +02:00
commit f1f3cb4dd5

View file

@ -4,12 +4,13 @@
{{ define "main" -}}
<main class="{{ if $.Param "sidebar" | default true }}layout-3col__left-content{{ else }}layout-3col__full{{ end }}" role="main">
<h1>{{ .Title }}</h1>
<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 }}
</header>
<div>
<div class="content">
{{ .Content }}
</div>
</article>