-
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
-
51
-
52
-
53
-
54
-
55
-
56
<!--
Copyright 2026 Shota FUJI <pockawoooh@gmail.com>
SPDX-License-Identifier: MIT
-->
{{ define "site-footer" -}}
<footer class="footer">
{{- if gt (len .Config.UI.Footer.Links) 0 }}
<ul class="footer--links">
{{- range .Config.UI.Footer.Links }}
<li>
<a href="{{ .Href }}">{{ .Text }}</a>
</li>
{{- end }}
</ul>
{{- end }}
<button id="preferences-dialog-trigger" class="footer--preferences script-only" type="button">Preferences</button>
<dialog id="preferences-dialog" class="preferences" popover="auto" closedby="any">
<script type="module" src="/static/preferences.js"></script>
<div class="preferences--field">
<label for="global-tab-width">Tab width</label>
<select id="global-tab-width" aria-describedby="global-tab-width-description">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4" selected>4</option>
<option value="6">6</option>
<option value="8">8</option>
<option value="12">12</option>
</select>
<p id="global-tab-width-description">
Changes the size of a tab character in code blocks and code previews.
</p>
</div>
<div class="preferences--field">
<label for="theme-color">Theme color</label>
<select id="theme-color" aria-describedby="theme-color-description">
<option value="">Blue (default)</option>
<option value="purple">Purple</option>
<option value="pink">Pink</option>
<option value="red">Red</option>
<option value="orange">Orange</option>
<option value="yellow">Yellow</option>
<option value="green">Green</option>
<option value="gray">Gray</option>
</select>
<p id="theme-color-description">
Changes the primary color to use for links, buttons, and icons.
</p>
</div>
<button id="preferences-dialog-closer">Close</button>
</dialog>
{{- if .Config.UI.Footer.PoweredBy }}
<p class="footer--poweredby">Powered by <a href="https://git.pocka.jp/legit.git">legit</a></p>
{{- end }}
</footer>
{{- end -}}