~kmdodrill/hugo-bare-theme-no-analytics

ref: ea6e9be6afe5f02aabeb5bbfc9a75d230b592a2d hugo-bare-theme-no-analytics/layouts/_default/single.html -rw-r--r-- 626 bytes
ea6e9be6Kenneth Dodrill Add all files from Gitea 3 months 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
{{ define "hero-body" }}
<div class="container">
  <h1 class="title">
    {{ .Title }}
  </h1>
  <h2 class="subtitle">
    <time datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'>
      {{ .Date.Format "January 02, 2006" }}
    </time>
    {{ if .Param "tags" }}
    <br>
    {{ range .Param "tags" }}
    {{ $name := . }}
    {{ with $.Site.GetPage (printf "/%s/%s" "tags" ($name | urlize)) }}
    <a class="tag is-link" href="{{ .Permalink }}">{{ .Title }}</a>
    {{ end }}
    {{ end }}
    {{ end }}
  </h2>
</div>
{{ end }}

{{ define "main" }}
<div class="content is-medium">
  {{ .Content }}
</div>

{{ end }}