blob: 835933d7ed39f529a521b3a4137a74765a87f1d5 (
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
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
{{ define "title" }}Sources — {{ end }}
{{ define "description" }}This page contains a list of all source files — {{ end }}
{{ define "styles" }}
<style>
{{ partial "styles-navigator.html" (dict "Link" "/sources/") | safeCSS }}
</style>
{{ end }}
{{ define "middle" }}
{{ $_default := readDir (print "/themes/default/layouts/_default") }}
{{ $_markup := readDir (print "/themes/default/layouts/_default/_markup") }}
{{ $partials := readDir (print "/themes/default/layouts/partials") }}
{{ $shortcodes := readDir (print "/themes/default/layouts/shortcodes") }}
{{ $fileCount := add (len $shortcodes) (len $partials) }}
{{ partial "navigator-middle.html"
(dict
"Title" "Sources"
"Subtitle" (print $fileCount " " "Files")
"Icon" "arrow-left"
"IconLabel" "Back"
"Href" "/"
"Id" "back"
"Context" .
)
}}
<source-array>
<item-list>
<h1>Defaults</h1>
<ul>
{{ range sort $_default ".ModTime" "desc" }}
{{ if not .IsDir }}
<li>
<a download title="{{ .Name }}" href="{{ $.Site.BaseURL }}/sources/files/_default/{{ .Name }}">
<code>
<span>{{- .ModTime | time.Format "2006-01-02 15:04 MST" }}</span>
<span>{{ .Name }}</span>
<span>{{ .Size -}}</span>
</code>
</a>
</li>
{{ end }}
{{ end }}
</ul>
<h1>Markup</h1>
<ul>
{{ range sort $_markup ".ModTime" "desc" }}
{{ if not .IsDir }}
<li>
<a download title="{{ .Name }}" href="{{ $.Site.BaseURL }}/sources/files/_default/_markup/{{ .Name }}">
<code>
<span>{{- .ModTime | time.Format "2006-01-02 15:04 MST" }}</span>
<span>{{ .Name }}</span>
<span>{{ .Size -}}</span>
</code>
</a>
</li>
{{ end }}
{{ end }}
</ul>
<h1>Partials</h1>
<ul>
{{ range sort $partials ".ModTime" "desc" }}
{{ if not .IsDir }}
<li>
<a download title="{{ .Name }}" href="{{ $.Site.BaseURL }}/sources/files/partials/{{ .Name }}">
<code>
<span>{{- .ModTime | time.Format "2006-01-02 15:04 MST" }}</span>
<span>{{ .Name }}</span>
<span>{{ .Size -}}</span>
</code>
</a>
</li>
{{ end }}
{{ end }}
</ul>
<h1>Shortcodes</h1>
<ul>
{{ range sort $shortcodes ".ModTime" "desc" }}
{{ if not .IsDir }}
<li>
<a download title="{{ .Name }}" href="{{ $.Site.BaseURL }}/sources/files/shortcodes/{{ .Name }}">
<code>
<span>{{- .ModTime | time.Format "2006-01-02 15:04 MST" }}</span>
<span>{{ .Name }}</span>
<span>{{ .Size -}}</span>
</code>
</a>
</li>
{{ end }}
{{ end }}
</ul>
</item-list>
<footer>
<p>
Canory Version: 0.3.31
· Dictionary Access by Paul Lutus: <a href="https://arachnoid.com/javascript/dictionary_access.js">GPLv2+ License</a>
· Feather Icons by Cole Bemis: <a href="https://github.com/feathericons/feather/blob/8b5d6802fa8fd1eb3924b465ff718d2fa8d61efe/LICENSE">MIT License</a>
· Tabler Icons by Paweł Kuna: <a href="https://github.com/tabler/tabler-icons/blob/60f39297d0f785f2e8635faca6857b2260b2d164/LICENSE">MIT License</a>
· Instant Page by Alexandre Dieulot: <a href="https://github.com/instantpage/instant.page/blob/729e97d5b3245552e41d8f92ed03d08f1d62ea46/LICENSE">MIT License</a>
· Fixed Search by Heracles Papatheodorou: <a href="https://gist.github.com/Arty2/8b0c43581013753438a3d35c15091a9f#file-license-md">License</a>
· Fuzzy Sort by Stephen Kamenar: <a href="https://github.com/farzher/fuzzysort/blob/e7f484a124f09bf3cb9a4db366a95457d962dbed/LICENSE">MIT License</a>
</p>
</footer>
</source-array>
{{ end }}
{{ define "right" }}
{{- partial "navigator-right-default.html" . -}}
{{ end }}
|