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: f6e3fe29bf3d832078d7ee590adc451c2830142b (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
39
40
41
42
43
44
45
46
{{ 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" . }}
    </div>
    <hr />

    <ul class="list-unstyled">
      {{ if .Params.location }}
      <li>
        <b>Location</b>:
        <a
          href="http://www.google.com/maps/search/?api=1&query={{ .Params.location }}"
        >
          {{- .Params.location -}}
        </a>
      </li>
      {{ end }}

      {{ if .Params.project }}
      <li>
        <b>Project</b>: <code class="text-dark">{{ .Params.project -}}</code>
      </li>
      {{ end }}

      {{ if .Params.description }}
      <li><b>Description</b>: {{ .Params.description -}}</li>
      {{ end }}
    </ul>
    
    {{ if (gt (len (split .Content `</h`)) 2) }}
    {{ partial "toc.html" . }}
    {{ end }}
    {{ .Content }}
  </article>
</div>
{{ end }}