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: 64e90bc7618398952ebb52ff2850115063e3a145 (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
{{ define "main" -}}
<div class="title">
  <h1>{{ .Title }}</h1>
  {{ with .Params.Subtitle -}}
  <h2>{{ . }}</h2>
  {{ end -}}
</div>
<div class="meta">
  {{ if .Date -}}
  <div>{{ .Date.Format "2006-01-02 15:04" }}</div>
  {{ end -}}
  {{ $taxo := "tags" -}}
  {{ if .Param $taxo -}}
  <div>
    {{ 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>
<div class="content">
  {{ .Content -}}
</div>
{{ end -}}