2018-11-24 12:34:51 +00:00
|
|
|
<!doctype html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport"
|
|
|
|
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
2020-05-18 19:12:49 +00:00
|
|
|
<link rel="redirect_uri" href="{{ .RedirectURI }}" />
|
2020-06-23 22:19:01 +00:00
|
|
|
<link rel="stylesheet" href="/public/index.css" />
|
2020-06-09 22:40:00 +00:00
|
|
|
<link rel="stylesheet" href="https://unpkg.com/prismjs@1.20.0/themes/prism-tomorrow.css">
|
2020-05-17 13:09:18 +00:00
|
|
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"/>
|
2018-11-24 12:34:51 +00:00
|
|
|
<title>{{ .Title }} - Wiki</title>
|
|
|
|
{{ block "content_head" . }} {{ end }}
|
|
|
|
<style>
|
2020-06-09 22:40:00 +00:00
|
|
|
.content {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
2020-05-17 13:09:18 +00:00
|
|
|
#autocomplete {
|
|
|
|
z-index: 1;
|
2020-07-01 15:36:36 +00:00
|
|
|
right: 0;
|
|
|
|
width: 400px;
|
2020-05-17 13:09:18 +00:00
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
|
|
|
height: 300px;
|
|
|
|
position: absolute;
|
|
|
|
background: white;
|
|
|
|
border: 1px solid #ccc;
|
2020-05-17 21:58:48 +00:00
|
|
|
}
|
|
|
|
#autocomplete li > a {
|
|
|
|
white-space: nowrap;
|
2020-05-17 13:09:18 +00:00
|
|
|
}
|
2020-06-01 19:36:23 +00:00
|
|
|
#autocomplete li {
|
|
|
|
padding: 4px 16px;
|
|
|
|
}
|
|
|
|
#autocomplete li.selected {
|
|
|
|
background: lightblue;
|
|
|
|
}
|
2020-05-31 20:08:36 +00:00
|
|
|
#link-complete {
|
|
|
|
z-index: 1;
|
|
|
|
width: 217px;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
|
|
|
height: 300px;
|
|
|
|
position: absolute;
|
|
|
|
background: white;
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#link-complete li {
|
|
|
|
padding: 4px 16px;
|
|
|
|
}
|
|
|
|
#link-complete li.selected {
|
|
|
|
background: lightblue;
|
|
|
|
}
|
2020-05-17 13:09:18 +00:00
|
|
|
|
2018-11-24 12:34:51 +00:00
|
|
|
.monospace {
|
|
|
|
font-family: "Fira Code Retina", monospace;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
2020-05-17 13:09:18 +00:00
|
|
|
|
2020-06-24 19:37:32 +00:00
|
|
|
.content input[type="checkbox"] {
|
|
|
|
vertical-align: text-top;
|
|
|
|
}
|
|
|
|
|
2018-11-24 12:34:51 +00:00
|
|
|
.lighter {
|
2020-05-17 13:09:18 +00:00
|
|
|
color: #ccc;
|
2018-11-24 12:34:51 +00:00
|
|
|
}
|
2020-05-17 13:09:18 +00:00
|
|
|
|
2018-11-24 12:34:51 +00:00
|
|
|
del {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2020-05-17 13:09:18 +00:00
|
|
|
|
2018-11-24 12:34:51 +00:00
|
|
|
ins {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2020-05-17 13:09:18 +00:00
|
|
|
|
2019-08-25 13:41:19 +00:00
|
|
|
.checklist {
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
2020-05-17 13:09:18 +00:00
|
|
|
|
2019-08-25 13:41:19 +00:00
|
|
|
.checklist--item {
|
|
|
|
display: flex;
|
|
|
|
}
|
2020-05-17 13:09:18 +00:00
|
|
|
|
2019-08-25 13:41:19 +00:00
|
|
|
.checklist--item-text {
|
|
|
|
align-self: center;
|
|
|
|
}
|
2018-11-24 12:34:51 +00:00
|
|
|
</style>
|
2020-05-11 21:34:10 +00:00
|
|
|
<style>
|
|
|
|
@import url('https://rsms.me/inter/inter.css');
|
2020-05-17 13:09:18 +00:00
|
|
|
|
|
|
|
html {
|
|
|
|
font-family: 'Inter', sans-serif;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
font-family: 'Inter', sans-serif;
|
|
|
|
}
|
|
|
|
|
|
|
|
input.input-line {
|
|
|
|
font-family: 'Inter', sans-serif;
|
|
|
|
}
|
|
|
|
|
2020-05-11 21:34:10 +00:00
|
|
|
@supports (font-variation-settings: normal) {
|
2020-05-17 13:09:18 +00:00
|
|
|
html {
|
|
|
|
font-family: 'Inter var', sans-serif;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
font-family: 'Inter var', sans-serif;
|
|
|
|
}
|
|
|
|
|
|
|
|
input.input-line {
|
|
|
|
font-family: 'Inter var', sans-serif;
|
|
|
|
}
|
2020-05-11 21:34:10 +00:00
|
|
|
}
|
2020-05-17 13:09:18 +00:00
|
|
|
|
2020-05-20 21:08:34 +00:00
|
|
|
.root .list-item {
|
2020-05-11 21:34:10 +00:00
|
|
|
padding: 3px;
|
2020-05-20 21:08:34 +00:00
|
|
|
padding-left: 12px;
|
2020-05-11 21:34:10 +00:00
|
|
|
display: flex;
|
|
|
|
cursor: pointer;
|
|
|
|
margin-left: 32px;
|
|
|
|
flex-direction: column;
|
2020-05-20 21:08:34 +00:00
|
|
|
border: 1px solid white;
|
|
|
|
}
|
|
|
|
|
2020-05-11 21:34:10 +00:00
|
|
|
.line {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
textarea {
|
|
|
|
border: none;
|
|
|
|
resize: none;
|
|
|
|
}
|
|
|
|
|
2020-05-31 23:45:57 +00:00
|
|
|
.list-item .content {
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
|
|
|
|
2020-05-20 21:08:34 +00:00
|
|
|
.root .list-item.selection {
|
|
|
|
border-left-color: #ccc;
|
|
|
|
border-right-color: #ccc;
|
|
|
|
border-left-style: dashed;
|
|
|
|
border-right-style: dashed;
|
|
|
|
|
|
|
|
}
|
|
|
|
.root .list-item.selection-first {
|
|
|
|
border-top-style: dashed;
|
|
|
|
border-top-color: #ccc;
|
|
|
|
}
|
|
|
|
.root .list-item.selection-last {
|
|
|
|
border-bottom-style: dashed;
|
|
|
|
border-bottom-color: #ccc;
|
|
|
|
}
|
|
|
|
|
2020-05-31 20:08:36 +00:00
|
|
|
.hide {
|
|
|
|
display: none;
|
|
|
|
}
|
2020-05-20 21:08:34 +00:00
|
|
|
|
2020-05-11 21:34:10 +00:00
|
|
|
.selected {
|
|
|
|
background: lightblue;
|
|
|
|
}
|
2020-05-20 21:08:34 +00:00
|
|
|
.selected .marker {
|
|
|
|
border-color: lightblue;
|
|
|
|
}
|
2020-06-07 18:17:43 +00:00
|
|
|
#editor {
|
|
|
|
width: 750px;
|
|
|
|
}
|
2020-05-20 21:08:34 +00:00
|
|
|
.editor.selected .marker {
|
2020-06-11 20:20:03 +00:00
|
|
|
/*border-color: white;*/
|
2020-05-20 21:08:34 +00:00
|
|
|
}
|
2020-05-17 13:09:18 +00:00
|
|
|
|
2020-05-11 21:34:10 +00:00
|
|
|
.editor.selected {
|
|
|
|
background: none;
|
|
|
|
}
|
|
|
|
|
2020-05-17 12:14:40 +00:00
|
|
|
.line {
|
|
|
|
min-height: 24px;
|
|
|
|
}
|
|
|
|
|
|
|
|
input.input-line, input.input-line:active {
|
2020-05-11 21:34:10 +00:00
|
|
|
border: none;
|
|
|
|
outline: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
width: 100%;
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gu-mirror {
|
|
|
|
position: fixed !important;
|
|
|
|
margin: 0 !important;
|
|
|
|
z-index: 9999 !important;
|
|
|
|
opacity: 0.8;
|
|
|
|
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
|
|
|
|
filter: alpha(opacity=80);
|
|
|
|
}
|
|
|
|
|
|
|
|
.gu-hide {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gu-unselectable {
|
|
|
|
-webkit-user-select: none !important;
|
|
|
|
-moz-user-select: none !important;
|
|
|
|
-ms-user-select: none !important;
|
|
|
|
user-select: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gu-transit {
|
|
|
|
opacity: 0.2;
|
|
|
|
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=20)";
|
|
|
|
filter: alpha(opacity=20);
|
|
|
|
}
|
2020-05-16 19:02:19 +00:00
|
|
|
|
|
|
|
.backrefs {
|
|
|
|
padding: 24px;
|
|
|
|
background: #deeeee;
|
|
|
|
border-top: 3px solid #acc;
|
|
|
|
}
|
2020-05-11 21:34:10 +00:00
|
|
|
</style>
|
2018-11-24 12:34:51 +00:00
|
|
|
</head>
|
2020-08-05 08:03:54 +00:00
|
|
|
<body data-base-url="{{ .BaseURL }}">
|
2020-07-05 18:34:36 +00:00
|
|
|
<div>
|
2018-11-24 12:34:51 +00:00
|
|
|
<nav class="navbar" role="navigation" aria-label="main navigation">
|
|
|
|
<div class="navbar-brand">
|
|
|
|
<a class="navbar-item" href="/">
|
|
|
|
Wiki
|
|
|
|
</a>
|
|
|
|
|
2020-05-17 13:09:18 +00:00
|
|
|
<a role="button" class="navbar-burger burger" aria-label="menu" aria-expanded="false"
|
|
|
|
data-target="navbarBasicExample">
|
2018-11-24 12:34:51 +00:00
|
|
|
<span aria-hidden="true"></span>
|
|
|
|
<span aria-hidden="true"></span>
|
|
|
|
<span aria-hidden="true"></span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="navbarBasicExample" class="navbar-menu">
|
|
|
|
<div class="navbar-start">
|
|
|
|
{{ block "navbar" . }}{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
|
2020-05-17 13:09:18 +00:00
|
|
|
<div class="level">
|
|
|
|
<div class="level-left"></div>
|
|
|
|
<div class="level-right">
|
|
|
|
<div class="level-item">
|
|
|
|
<div class="field">
|
|
|
|
<p class="control">
|
|
|
|
<input class="search input" id="search-input" type="text" placeholder="Find a page">
|
|
|
|
</p>
|
2020-06-01 19:36:23 +00:00
|
|
|
<div id="autocomplete" class="hide keyboard-list" tabindex="0"></div>
|
2020-05-17 13:09:18 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-08-05 08:03:54 +00:00
|
|
|
<div class="grid">
|
2020-08-31 09:50:29 +00:00
|
|
|
{{ block "sidebar" . }}
|
|
|
|
<div class="sidebar"></div>
|
|
|
|
{{end}}
|
2020-08-05 08:03:54 +00:00
|
|
|
|
|
|
|
<section class="section">
|
|
|
|
{{ template "content" . }}
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
|
2019-08-25 10:30:00 +00:00
|
|
|
|
2020-08-05 08:05:34 +00:00
|
|
|
<div class="footer">
|
2020-05-18 19:12:49 +00:00
|
|
|
<div class="h-app">
|
|
|
|
<a href="/" class="u-url p-name">Wiki</a>
|
|
|
|
— created by <a href="https://peterstuifzand.nl/">Peter Stuifzand</a>
|
|
|
|
</div>
|
2020-08-05 08:05:34 +00:00
|
|
|
</div>
|
2020-05-18 19:12:49 +00:00
|
|
|
|
2020-05-31 20:08:36 +00:00
|
|
|
<div id="save-indicator" class="hide"></div>
|
2018-11-24 12:34:51 +00:00
|
|
|
</div>
|
2020-06-24 14:51:51 +00:00
|
|
|
<div id="link-complete" class="hide keyboard-list"></div>
|
2020-05-17 13:09:18 +00:00
|
|
|
{{ block "footer_scripts" . }}
|
|
|
|
{{ end }}
|
2020-05-31 20:08:36 +00:00
|
|
|
<div id="result-template" class="hide">
|
2020-05-17 13:09:18 +00:00
|
|
|
<ul>
|
|
|
|
[[#results]]
|
2020-05-17 21:58:48 +00:00
|
|
|
<li><a href="/[[ref]]">[[title]]</a></li>
|
2020-05-17 13:09:18 +00:00
|
|
|
[[/results]]
|
2020-06-01 19:36:23 +00:00
|
|
|
[[^results]]
|
|
|
|
<li>No results</li>
|
|
|
|
[[/results]]
|
|
|
|
<li><a href="/edit/[[page]]">Create a page</a></li>
|
2020-05-17 13:09:18 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
2020-05-31 20:08:36 +00:00
|
|
|
<div id="link-template" class="hide">
|
|
|
|
<ul>
|
|
|
|
[[#results]]
|
|
|
|
<li>[[item.title]]</li>
|
|
|
|
[[/results]]
|
2020-06-01 19:36:23 +00:00
|
|
|
[[^results]]
|
|
|
|
<li>No results</li>
|
|
|
|
[[/results]]
|
2020-05-31 20:08:36 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
2020-06-23 22:19:01 +00:00
|
|
|
<script async src="/public/index.bundle.js"></script>
|
2018-11-24 12:34:51 +00:00
|
|
|
</body>
|
2019-08-25 10:30:00 +00:00
|
|
|
</html>
|