add config: define custom wiki_name
This commit is contained in:
1 parent
12decb7862
commit
49a88460b4
12 files changed
+152
-28
No files matched your search
@@ -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 =
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<header class="topbar">
|
||||
|
||||
<div class="brand">
|
||||
<a href="/">Pages Wiki</a>
|
||||
<a href="/">{{ .WikiName }}</a>
|
||||
</div>
|
||||
|
||||
<nav>
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<header class="topbar">
|
||||
|
||||
<div class="brand">
|
||||
<a href="/">Pages Wiki</a>
|
||||
<a href="/">{{ .WikiName }}</a>
|
||||
</div>
|
||||
|
||||
<nav>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
<header class="topbar">
|
||||
<div class="brand">
|
||||
<a href="/">Pages Wiki</a>
|
||||
<a href="/">{{ .WikiName }}</a>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
<header class="topbar">
|
||||
<div class="brand">
|
||||
<a href="/">Pages Wiki</a>
|
||||
<a href="/">{{ .WikiName }}</a>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<header class="topbar">
|
||||
|
||||
<div class="brand">
|
||||
<a href="/">Pages Wiki</a>
|
||||
<a href="/">{{ .WikiName }}</a>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<header class="topbar">
|
||||
|
||||
<div class="brand">
|
||||
<a href="/">Pages Wiki</a>
|
||||
<a href="/">{{ .WikiName }}</a>
|
||||
</div>
|
||||
|
||||
<nav>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<header class="topbar">
|
||||
|
||||
<div class="brand">
|
||||
<a href="/">Pages Wiki</a>
|
||||
<a href="/">{{ .WikiName }}</a>
|
||||
</div>
|
||||
|
||||
<nav>
|
||||
|
||||
Reference in new issue
Block a user