~adnano/kiln-docs

ref: 652770110af5d65c698c34ccee2a31d74acd0f33 kiln-docs/templates/page.html -rw-r--r-- 1.3 KiB
65277011Adnan Maolood Add publishing instructions 1 year, 2 days 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <link rel="stylesheet" href="/style.css">
  <title>{{ .Title }}{{ site.Title }}</title>
</head>
<body>
  {{ partial "menu-control.html" . | safeHTML }}

  <aside>
    <section>
      <nav aria-label="Table of contents">
        <ol>
          {{- $current := . }}
          {{- range (dir "/").Pages }}
          {{- if eq $current . }}
          <li><a class="current" href="{{ .Permalink }}">{{ .Title }}</a></li>
          {{- else }}
          <li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
          {{- end }}
		  {{- end }}
        </ol>
      </nav>
      <footer>
        <p>Built with <a href="https://sr.ht/~adnano/kiln">kiln</a>. <a href="https://git.sr.ht/~adnano/kiln-docs#contributing">Patches welcome</a>.</p>
	  </footer>
    </section>
  </aside>

  <main>
    <h1>{{ site.Title }}</h1>
    <article>
      <h1>{{ .Title }}</h1>
      {{ .Content | safeHTML }}

	  <nav>
        {{- with .Prev }}
		<a class="prev" href="{{ .Permalink }}">{{ .Title }}</a>
        {{- end }}

        {{- with .Next }}
		<a class="next" href="{{ .Permalink }}">{{ .Title }}</a>
        {{- end }}
	  </nav>
    </article>
  </main>
</body>
</html>