~captainepoch/blogtheme

ref: 0d3209ac9c7a7f3ae2373f91ef67955b647f3434 blogtheme/layouts/_default/single.html -rw-r--r-- 645 bytes
0d3209ac — Adolfo Santiago Update README 1 year, 23 days ago
                                                                                
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
{{- define "main" -}}
<div class="title margin_16">
  <h1>{{ .Title }}</h1>
</div>
<div class="meta">
  {{- if .Date -}}
  <span>
	<time>
		{{ .Date.Format ( .Site.Params.dateFmt) }}
	</time>
  </span>
  {{- end -}}

  {{- if .Params.showCategories -}}
	{{- if .Params.categories -}}
		<span class="padding_left_7">Categories:</span>
		<span>
		{{ range .Params.categories -}}
			<a href="{{ "/categories/" | relURL }}{{ . | urlize }}">{{ . }}</a>
		{{ end -}}
		</span>
	{{- end -}}
  {{- end -}}
</div>

<div class="content">
  {{- .Content -}}
</div>

{{- if .Params.showComments -}}
{{- partial "comment.html" . -}}
{{- end -}}

{{- end -}}