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

single.html « _default « layouts - github.com/darshanbaral/ghazal.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5bf7364b07f40fe3cf7081e55eda8de7bc5be842 (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
{{ define "main" }}
<div
  style="display: flex; flex-direction: column; margin-bottom: 0.5em;"
>
  <h1 style="margin: 0 0 0.25em 0; text-decoration: underline; font-size: 2em;">
    {{- .Title -}}
  </h1>
  <div class="sharing-icons">
    {{ partial "share.html" .}}
  </div>
  <div class="metadata">
    {{ partial "metadata" . }}
  </div>
</div>
<div style="margin-bottom: 3.5em; font-style: italic; font-size: 0.9em;">by {{ .Site.Params.author }} &middot;
  <time>{{ dateFormat .Site.Params.theme.dateFormat .Date }}</time></div>
<div class="content">
  {{ .Content }}
</div>
<script>
  document.onkeydown = function(e) {
    switch (e.keyCode) {
      case 37:
        //left key
        document.querySelector(".previous-link").click();
        break;
      case 39:
        //right key
        document.querySelector(".next-link").click();
        break;
    }
  };
</script>
{{ end }}