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

single.html « _default « layouts - github.com/eshlox/simplicity.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6fec0b9e399524342315569b88d48604d72cad93 (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
38
{{ define "main" }}
  <article>
    <header>
      <small>
        <time datetime="{{ .Date.Format "2006-01-02 15:04:05-0700" }}">
          {{- .Date.Format "2006-01-02" -}}
        </time>
        &bull;
        {{- if .Params.categories }}
          {{ range $index, $category := .Params.categories }}
            {{ if gt $index 0 }}, {{ end }}
            <a href="{{ $.LanguagePrefix }}{{ "/categories/" | relURL }}{{ . | urlize }}">{{- upper . -}}</a>
          {{ end }}
        {{- end -}}
      </small>
      <h1>{{- .Title -}}</h1>
    </header>
    <section>
      {{- .Content -}}
    </section>
    <footer>
      <hr>
      <div class="meta">
        <p class="tags">
          {{ if .Params.tags }}
            {{ range $index, $tag := .Params.tags }}
              <a href="{{ $.LanguagePrefix }}{{ "tags/" | relURL }}{{ . | urlize }}">
                <span>#</span>{{- . -}}
              </a>
            {{ end }}
          {{ end }}
        </p>
      </div>
      <hr>
      {{ template "_internal/disqus.html" . }}
    </footer>
  </article>
{{ end }}