blob: 3868f4fcd2b4ef78c324e0d197f9368cf4f1a0b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<!-- This file contains the header/title for each post -->
<header>
<h1 class="entry-title">
{{ if .IsHome }} <a href="{{ .Permalink }}">{{ .Title }}</a> {{ else }} {{ .Title }} {{ end }}
</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 isset .Params "categories" }}
<!-- <br/> this will make the categories go to the second line and mess with the title -->
<!-- in order to make category URLs work, we need to urlize them and then convert them to lowercase
e.g. .NET Remoting -urlize-> .NET-Remoting -lowercase-> .net-remoting -->
- {{ range .Params.categories }}<a class="label" href="{{ "/categories/" | absURL }}{{ . | urlize | lower }}/">{{ . }}</a>{{ end }}
{{ end }}
</p>
</header>
|