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: 70185d6e59da7dec9c5d470b155b0dc924f10fa7 (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
{{ define "main" }}
<div class="standard main rounded mt-4 mb-4" role="main">
  <article class="shadow p-4 border border-secondary rounded position-relative" style="min-height: calc(100vh - 250px)">
    <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) }}
    <div class="TableOfContents rounded p-2 ml-2 mb-2">
      {{ partial "toc.html" . }}
    </div>
    {{ end }}
    {{ .Content }}
  </article>
</div>
{{ end }}