add config: define custom wiki_name

This commit is contained in:
Anya Tokugawa committed 2026-05-31 21:18:13 +09:00
1 parent 12decb7862
commit 49a88460b4
12 files changed
+152 -28

No files matched your search

+94 -1
View File
@@ -12,7 +12,7 @@
<header class="topbar">
<div class="brand">
<a href="/">Pages Wiki</a>
<a href="/">{{ .WikiName }}</a>
</div>
@@ -79,6 +79,21 @@ Navigation
value="home"
>
<label>
Wiki name
</label>
<input
name="wiki_name"
type="text"
value="{{ .WikiName }}"
placeholder="Pages Wiki"
>
<br>
<br>
<label>
Home semantic path
</label>
@@ -352,6 +367,84 @@ document.addEventListener(
},
)
function moveNavRow(button, direction) {
const row =
button.closest(
"tr"
)
const tbody =
row.parentElement
if (direction < 0) {
const prev =
row.previousElementSibling
if (prev) {
tbody.insertBefore(
row,
prev
)
}
return
}
const next =
row.nextElementSibling
if (next) {
tbody.insertBefore(
next,
row
)
}
}
function moveNavRow(button, direction) {
const row =
button.closest(
"tr"
)
const tbody =
row.parentElement
if (direction < 0) {
const prev =
row.previousElementSibling
if (prev) {
tbody.insertBefore(
row,
prev
)
}
return
}
const next =
row.nextElementSibling
if (next) {
tbody.insertBefore(
next,
row
)
}
}
function moveNavRow(button, direction) {
const row =
+1 -1
View File
@@ -25,7 +25,7 @@
<header class="topbar">
<div class="brand">
<a href="/">Pages Wiki</a>
<a href="/">{{ .WikiName }}</a>
</div>
<nav>
+2 -2
View File
@@ -3,7 +3,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>Pages Wiki</title>
<title>{{ .WikiName }}</title>
<link rel="stylesheet" href="/o/path:/system/static/css/main.css">
<link rel="stylesheet" href="/o/path:/system/static/css/modes.css">
</head>
@@ -12,7 +12,7 @@
<header class="topbar">
<div class="brand">
<a href="/">Pages Wiki</a>
<a href="/">{{ .WikiName }}</a>
</div>
+1 -1
View File
@@ -25,7 +25,7 @@
<header class="topbar">
<div class="brand">
<a href="/">Pages Wiki</a>
<a href="/">{{ .WikiName }}</a>
</div>
<nav>
+1 -1
View File
@@ -12,7 +12,7 @@
<header class="topbar">
<div class="brand">
<a href="/">Pages Wiki</a>
<a href="/">{{ .WikiName }}</a>
</div>
+1 -1
View File
@@ -12,7 +12,7 @@
<header class="topbar">
<div class="brand">
<a href="/">Pages Wiki</a>
<a href="/">{{ .WikiName }}</a>
</div>
+1 -1
View File
@@ -25,7 +25,7 @@
<header class="topbar">
<div class="brand">
<a href="/">Pages Wiki</a>
<a href="/">{{ .WikiName }}</a>
</div>
+1 -1
View File
@@ -25,7 +25,7 @@
<header class="topbar">
<div class="brand">
<a href="/">Pages Wiki</a>
<a href="/">{{ .WikiName }}</a>
</div>
<nav>
+1 -1
View File
@@ -25,7 +25,7 @@
<header class="topbar">
<div class="brand">
<a href="/">Pages Wiki</a>
<a href="/">{{ .WikiName }}</a>
</div>
<nav>