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

single.html « _default « layouts - github.com/vaga/hugo-theme-m10c.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9c36f6155c871c75a1a2a4f577e419062695798d (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
{{ define "main" }}
  <article class="post">
    <header class="post-header">
      <h1 class ="post-title">{{ .Title }}</h1>
      <div class="post-meta">
        <div>
          {{ partial "icon.html" "calendar" }}
          {{ .PublishDate.Format "Jan 2, 2006" }}
        </div>
        <div>
          {{ partial "icon.html" "clock" }}
          {{ .ReadingTime }} min read
        </div>
        <div>
          {{ partial "icon.html" "tag" }}
          {{ range .Param "tags" -}}
            {{- $name := . -}}
            {{- with $.Site.GetPage (printf "/%s/%s" "tags" $name) -}}
              <a class="tag" href="{{ .Permalink }}">{{ $name }}</a>
            {{- end -}}
          {{- end -}}
        </div>
      </div>
    </header>
    <div class="post-content">
      {{ .Content }}
    </div>
  </article>
{{ end }}