blob: 3ff3f6e4ed6d4748ebee396a6d6785a897b725de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<!-- Layout for individual pages -->
{{ partial "header.html" . }}
<div id="main">
<div id="content">
<div>
<article class="hentry" role="article">
<header>
<h1 class="entry-title">
{{ .Title }} <!-- we don't need page title to be a link on the actual page -->
</h1>
<p class="meta">{{ .Date.Format "Jan 2, 2006" }} - {{ .ReadingTime }} minute read - {{ if .Site.Params.disqusShortname }} <a href="{{ .Permalink }}#disqus_thread">Comments</a>{{ end }}
<!-- if you want anything in the header between Disqus comments and categories add them here -->
{{ if isset .Params "categories" }}
<!-- <br/> this will make the categories go to the second line and mess with the title -->
{{ range .Params.categories }}<a class="label" href="{{ "/categories/" | absURL }}{{ . | urlize | lower }}">{{ . }}</a>{{ end }}
{{ end }}</p>
</header>
<div class="entry-content">
<!-- insert table of contents if it is set either in the config file or in the frontmatter - frontmatter has priority -->
{{ $.Scratch.Set "pagetoc" .TableOfContents }}
{{ if or (and (isset .Params "toc") (eq .Params.toc true)) (and (not (isset .Params "toc")) (eq .Site.Params.tableOfContents true)) }}
{{ $.Scratch.Get "pagetoc" }}
{{ end }}
{{ .Content }}
</div>
{{ partial "post_footer.html" . }}
</article>
</div>
{{ partial "sidebar.html" . }}
</div>
</div>
{{ partial "footer.html" . }}
|