-
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
-
57
-
58
-
59
-
60
-
61
-
62
-
63
-
64
-
65
-
66
-
67
-
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
<!--
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>
<div class="preferences--field">
<label for="tree-layout">File list layout</label>
<select id="tree-layout" aria-describedby="tree-layout-description">
<option value="">Default</option>
<option value="compact">Compact</option>
</select>
<p id="tree-layout-description">
Row layout of a file list in "Files" page.
</p>
</div>
<div class="preferences--field">
<label for="file-mode-format">File permission format</label>
<select id="file-mode-format" aria-describedby="file-mode-format-description">
<option value="">Default (drwx)</option>
<option value="octal">Octal</option>
<option value="hidden">Hidden</option>
</select>
<p id="file-mode-format-description">
How to render file permission?
</p>
</div>
<div class="preferences--field">
<label for="file-size-format">File size format</label>
<select id="file-size-format" aria-describedby="file-size-format-description">
<option value="">Default</option>
<option value="hidden">Hidden</option>
</select>
<p id="file-size-format-description">
Change display of file size in "Files" page.
</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 -}}