blob: b5190332ec9f03600e292e28dfc0aea6c5e8b058 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{{ if or (.Date) (ne .Params.Kind "page") }}
<div class="date">
<time pubdate="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 2, 2006" }}</time>
<span class="author">by {{ .Site.Params.author }}</span>
</div>
{{ end }}
<article>
{{ if eq (.Scratch.Get "isMainPage") "true" -}}
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
{{ else -}}
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
{{- end -}}
<div class="tags">
{{ range .Params.tags }}
{{ $name := . }}
<a href="/tags/{{ $name | urlize }}" class="pure-button">{{ $name }}</a>
{{ end }}
</div>
{{ replace .Content "<table>" "<table class='pure-table pure-table-striped'>" | safeHTML }}
</article>
|