-
Notifications
You must be signed in to change notification settings - Fork 23
/
layout.html
235 lines (230 loc) · 13 KB
/
layout.html
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<!DOCTYPE html>
<html lang="en">
<head>
<script type="module" th:src="@{./assets/js/color-modes.js}"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" th:href="@{./assets/scss/styles.scss}">
<script type="module" th:src="@{./assets/js/main.js}"></script>
<meta name="robots" content="noindex" th:if="${!currentComponent.latest}">
<title layout:title-pattern="$LAYOUT_TITLE - $CONTENT_TITLE">Refined Mods</title>
</head>
<body>
<div class="d-flex flex-column vh-100">
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<div class="container-fluid">
<a class="navbar-brand" th:href="@{./index.html}">
<img th:src="@{./assets/images/logo.png}" width="109" height="40" alt="Refined Mods logo">
Refined Mods
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" th:classappend="${currentComponent.name == 'root' ? 'active' : ''}"
aria-current="page" th:href="@{./index.html}">
Home
</a>
</li>
<li class="nav-item">
<a class="nav-link"
th:classappend="${currentComponent.name == 'Refined Storage' ? 'active' : ''}"
th:href="@{./refined-storage/index.html}">
Refined Storage
</a>
</li>
<li class="nav-item">
<a class="nav-link"
th:classappend="${currentComponent.name == 'Ranged Pumps' ? 'active' : ''}"
th:href="@{./ranged-pumps/index.html}">
Ranged Pumps
</a>
</li>
</ul>
<div id="search-container"></div>
</div>
</div>
</nav>
<div class="row g-0 h-100 overflow-auto">
<div class="col-xl-3 shadow bg-light-subtle p-3 scrollbar-col" th:if="${!currentComponent.root}">
<div class="d-flex border-bottom pb-2 mb-2 justify-content-between">
<a th:href="@{'./' + ${currentComponent.slug} + '/' + ${currentComponent.latest ? '' : currentComponent.version.friendlyName() + '/'} + 'index.html'}"
class="link-body-emphasis d-flex d-flex gap-2 align-items-center text-decoration-none">
<img th:src="@{./assets/images/refined-storage-logo.png}"
th:if="${currentComponent.name == 'Refined Storage'}"
width="40"
height="13"
alt="Refined Storage logo">
<span class="fs-5 fw-semibold" th:text="${currentComponent.name}"></span>
</a>
<div class="d-flex">
<button class="btn btn-outline btn-sm dropdown-toggle" type="button" data-bs-toggle="dropdown"
aria-expanded="false">
<span th:text="${currentComponent.version.friendlyName()}"
th:if="${!currentComponent.latest}"></span>
<span class="badge rounded-pill text-bg-primary"
th:if="${currentComponent.latest}">Latest</span>
</button>
<ul class="dropdown-menu">
<li th:each="component : ${otherComponents}">
<a class="dropdown-item"
th:classappend="${component.version == currentComponent.version ? 'active' : ''}"
th:href="@{'./' + ${component.slug} + '/' + ${component.latest ? '' : component.version.friendlyName() + '/'} + 'index.html'}">
<span th:text="${component.version.friendlyName()}"></span>
<span class="badge rounded-pill text-bg-primary"
th:if="${component.latest}">Latest</span>
</a>
</li>
</ul>
<button class="btn btn-outline btn-sm" id="nav-expand-button" role="button" aria-label="Expand all">
<i class="bi bi-arrows-expand"></i>
</button>
</div>
</div>
<ul class="list-unstyled ps-0">
<li class="mb-1" th:each="item : ${navigationItems}">
<a class="btn btn-toggle-no-children d-inline-flex align-items-center rounded border-0 gap-2"
th:if="${item.children == null}"
th:classappend="${item.active ? 'active' : ''}"
th:href="@{'./' + ${currentComponent.slug} + '/' + ${currentComponent.latest ? '' : currentComponent.version.friendlyName() + '/'} + ${item.url}}">
<i class="bi"
th:if="${item.icon != null && #strings.contains(item.icon, 'bi-')}"
th:classappend="${item.icon}"></i>
<img th:src="@{'./assets/' + ${currentComponent.slug} + '.' + ${currentComponent.version.friendlyName()} + '/' + ${item.icon}}"
th:if="${item.icon != null && !#strings.contains(item.icon, 'bi-')}"
width="32"
height="32">
<span th:utext="${item.name}"></span>
</a>
<button class="btn btn-toggle d-inline-flex align-items-center rounded border-0"
th:if="${item.children != null}"
th:classappend="${item.active ? 'collapsed' : ''}"
data-bs-toggle="collapse"
th:attr="data-bs-target='#collapse-' + ${item.key}, aria-expanded=${item.active} ? 'true' : 'false'"
th:utext="${item.name}">
</button>
<div class="nav-collapse collapse"
th:if="${item.children != null}"
th:classappend="${item.active ? 'show' : ''}"
th:id="'collapse-' + ${item.key}">
<ul class="btn-toggle-nav list-unstyled fw-normal pb-1 small">
<li th:each="subItem : ${item.children}">
<a th:href="@{'./' + ${currentComponent.slug} + '/' + ${currentComponent.latest ? '' : currentComponent.version.friendlyName() + '/'} + ${subItem.url} + '#nav-' + ${subItem.nameSlug}}"
th:classappend="${subItem.active ? 'active' : ''}"
th:id="'nav-' + ${subItem.nameSlug}"
class="link-body-emphasis d-inline-flex text-decoration-none rounded align-items-center gap-2">
<img th:if="${subItem.icon != null}"
th:src="@{'./assets/' + ${currentComponent.slug} + '.' + ${currentComponent.version.friendlyName()} + '/' + ${subItem.icon}}"
width="32"
height="32">
<span th:utext="${subItem.name}"></span>
</a>
</li>
</ul>
</div>
</li>
</ul>
</div>
<div class="col scrollbar-col">
<div class="container mt-3">
<h1 class="mb-2">
<img th:if="${icon != null}"
th:src="@{'./assets/' + ${currentComponent.slug} + '.' + ${currentComponent.version.friendlyName()} + '/' + ${icon}}"
width="32"
height="32">
<span th:utext="${title}" th:remove="tag"></span>
</h1>
<nav aria-label="breadcrumb" th:if="${#lists.size(breadcrumbs) > 0}">
<ol class="breadcrumb breadcrumb-chevron p-3 bg-body-tertiary rounded-3">
<li class="breadcrumb-item" th:each="breadcrumb : ${breadcrumbs}"
th:classappend="${breadcrumb.active ? 'active' : ''}">
<a class="link-body-emphasis fw-semibold text-decoration-none"
th:if="${!breadcrumb.active}"
th:href="@{'./' + ${currentComponent.slug} + '/' + ${currentComponent.latest ? '' : currentComponent.version.friendlyName() + '/'} + ${breadcrumb.url}}">
<i th:if="${breadcrumb.icon != null}" class="bi"
th:classappend="${breadcrumb.icon}"></i>
<span th:utext="${breadcrumb.name}"></span>
</a>
<div th:if="${breadcrumb.active}" th:remove="tag">
<i th:if="${breadcrumb.icon != null}" class="bi"
th:classappend="${breadcrumb.icon}"></i>
<span th:utext="${breadcrumb.name}"></span>
</div>
</li>
</ol>
</nav>
<div layout:fragment="content"></div>
</div>
<div class="container">
<footer class="py-3 my-4">
<ul class="nav justify-content-center border-bottom pb-3 mb-3">
<li class="nav-item"><a href="https://x.com/refinedmods"
class="nav-link px-2 text-body-secondary"><i class="bi bi-twitter-x"></i>
X (Twitter)</a></li>
<li class="nav-item"><a href="https://discordapp.com/invite/VYzsydb"
class="nav-link px-2 text-body-secondary"><i class="bi bi-discord"></i>
Discord</a></li>
<li class="nav-item"><a href="https://github.com/refinedmods"
class="nav-link px-2 text-body-secondary"><i class="bi bi-github"></i>
GitHub</a></li>
</ul>
<p class="text-center text-body-secondary">© <span
th:text="${#dates.year(#dates.createNow())}"></span> Refined Mods</p>
</footer>
</div>
</div>
</div>
</div>
<div class="dropdown position-fixed bottom-0 end-0 mb-3 me-3 bd-mode-toggle">
<button class="btn btn-bd-primary py-2 dropdown-toggle d-flex align-items-center"
id="bd-theme"
type="button"
aria-expanded="false"
data-bs-toggle="dropdown"
aria-label="Toggle theme (auto)">
<i class="bi bi-circle-half theme-icon-active"></i>
<span class="visually-hidden" id="bd-theme-text">Toggle theme</span>
</button>
<ul class="dropdown-menu dropdown-menu-end shadow" aria-labelledby="bd-theme-text">
<li>
<button type="button" class="dropdown-item d-flex align-items-center" data-bs-theme-value="light"
aria-pressed="false">
<i class="bi bi-sun-fill me-2 theme-icon"></i>
Light
<i class="bi bi-check2 ms-auto theme-check"></i>
</button>
</li>
<li>
<button type="button" class="dropdown-item d-flex align-items-center" data-bs-theme-value="dark"
aria-pressed="false">
<i class="bi bi-moon-stars-fill me-2 theme-icon"></i>
Dark
<i class="bi bi-check2 ms-auto theme-check"></i>
</button>
</li>
<li>
<button type="button" class="dropdown-item d-flex align-items-center active" data-bs-theme-value="auto"
aria-pressed="true">
<i class="bi bi-circle-half me-2 theme-icon"></i>
Auto
<i class="bi bi-check2 ms-auto theme-check"></i>
</button>
</li>
</ul>
</div>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-440597B2Z2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-440597B2Z2');
</script>
</body>
</html>