Welcome to mirror list, hosted at ThFree Co, Russian Federation.

single.html « _default « layouts - github.com/yanlinlin82/simple-style.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 855237b4d89985baeeb459bf3c4a7b5154fca174 (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
{{ define "main" -}}
<div class="title">
  <h1>{{ .Title }}</h1>
  {{ with .Params.Subtitle -}}
  <h2>{{ . }}</h2>
  {{ end -}}
</div>
{{ if .Site.Params.EnableSearch -}}
<div class="search">
{{ partial "search.html" . }}
</div>
{{ end -}}
{{ if .Date -}}
<div class="meta">{{ .Date.Format (.Site.Params.dateFormat | default "2006-01-02 15:04") }}</div>
{{ end -}}
{{ $taxo := "tags" -}}
{{ if .Param $taxo -}}
<div class="meta">
  {{ range .Param $taxo -}}
    {{ $name := . -}}
    {{ with $.Site.GetPage (printf "/%s/%s" $taxo ($name | urlize)) -}}
  <span><a href="{{ .Permalink }}">#{{ $name }}</a></span>
    {{ end -}}
  {{ end -}}
</div>
{{ end -}}
<div class="content">
  {{ .Content -}}
</div>
<div class="toc">
{{ partial "toc.html" . }}
</div>
{{ end -}}