wiki/templates/layout.html

94 lines
2.9 KiB
HTML
Raw Normal View History

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 }}" />
<link rel="stylesheet" href="/public/main.css" />
<link rel="stylesheet" href="/public/styles.css" />
2021-08-15 19:36:56 +00:00
<!-- <link rel="stylesheet" href="https://unpkg.com/prismjs@1.20.0/themes/prism-tomorrow.css"> -->
<!-- <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>
</style>
2020-05-11 21:34:10 +00:00
<style>
</style>
2018-11-24 12:34:51 +00:00
</head>
2020-08-05 08:03:54 +00:00
<body data-base-url="{{ .BaseURL }}">
<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-11-01 17:44:50 +00:00
<div class="searchbar">
<div class="field">
<p class="control">
<input class="search input" id="search-input" type="text" placeholder="Find a page">
</p>
<div id="autocomplete" class="hide keyboard-list" tabindex="0"></div>
2020-05-17 13:09:18 +00:00
</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>
2021-02-11 20:20:38 +00:00
{{ block "sidebar-right" . }}
<div class="sidebar-right"></div>
{{end}}
2020-08-05 08:03:54 +00:00
</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>
&mdash; 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>
<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-10-21 18:49:23 +00:00
<li><a href="/edit/[[ref]]">[[title]] <div>[[&amp; text]]</div></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>
<script async src="/public/vendors.js"></script>
<script async src="/public/main.js"></script>
2018-11-24 12:34:51 +00:00
</body>
2019-08-25 10:30:00 +00:00
</html>