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

single.html « _default « layouts - github.com/darshanbaral/khata.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 503b99829efe9d842092a8ddcf5b1e6009105977 (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
{{ define "main" }}
<div class="standard main rounded mt-4 mb-4" role="main">
  <article class="shadow p-4 border border-secondary rounded position-relative">
    <h1 class="top-h1">
      {{- .Title -}}
    </h1>
    <div class="ml-3 metadata">
      {{ partial "metadata/metadata-date" . }}
      {{ partial "metadata/metadata-readingtime" . }}
      {{ if ne $.Kind "section" }}
      {{ partial "metadata/metadata-section" . }}
      {{ end }}
      {{ partial "metadata/metadata-taxonomy" . }}
      {{ partial "metadata/metadata-description" . }}
    </div>
    <hr />
    
    {{ if (gt (len (split .Content `</h`)) 2) }}
    {{ partial "toc.html" . }}
    {{ end }}
    {{ .Content }}
  </article>
</div>
{{ end }}