Files
pages/templates/layouts/base.gohtml
T

61 lines
816 B
Go Template

{{ define "base" }}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{{ .Title }}</title>
<link rel="stylesheet" href="/static/css/main.css">
<link rel="stylesheet" href="/static/css/modes.css">
</head>
<body class="{{ template "body-class" . }}">
<header class="topbar">
<div class="brand">
<a href="/">Pages Wiki</a>
</div>
<nav>
<a href="/new">New</a>
<a href="/l">Links</a>
{{ if .Path }}
<a href="{{ .Path }}">
View
</a>
<a href="/e/-{{ .Path }}">
Edit
</a>
<a href="/raw{{ .Path }}">
Raw
</a>
{{ end }}
</nav>
</header>
<main class="container">
{{ template "content" . }}
</main>
{{ template "scripts" . }}
</body>
</html>
{{ end }}
{{ define "body-class" }}
mode-view
{{ end }}