2017-11-27 03:44:36 +00:00
|
|
|
{{ define "title" }}{{ end }}
|
2017-11-20 05:49:19 +00:00
|
|
|
{{ define "scripts" }}{{ end }}
|
2017-11-15 14:55:15 +00:00
|
|
|
|
2017-10-31 16:42:15 +00:00
|
|
|
{{ define "layout" }}
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
|
2017-11-24 19:56:32 +00:00
|
|
|
<title>{{ template "title" . }} - {{ .Title }}</title>
|
2017-10-31 16:42:15 +00:00
|
|
|
|
|
|
|
<!-- Bootstrap core CSS -->
|
|
|
|
<link rel="stylesheet" href="/css/bootstrap.min.css">
|
|
|
|
<link rel="stylesheet" href="/bluez/theme.css">
|
2017-11-24 19:56:32 +00:00
|
|
|
|
|
|
|
<link rel="stylesheet" href="/css/blog-core.css">
|
|
|
|
<!-- <link rel="stylesheet" href="/css/gfm.css"> -->
|
2017-10-31 16:42:15 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<nav class="navbar navbar-expand-md fixed-top bluez-navbar">
|
2017-11-07 17:01:02 +00:00
|
|
|
<a href="#" class="navbar-brand">{{ .Title }}</a>
|
2017-10-31 16:42:15 +00:00
|
|
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
|
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
|
|
|
<div class="collapse navbar-collapse" id="navbarCollapse">
|
|
|
|
<ul class="navbar-nav mr-auto">
|
|
|
|
<li class="nav-item active">
|
|
|
|
<a href="/" class="nav-link">Home <span class="sr-only">(current)</span></a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a href="/about" class="nav-link">About</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a href="/archive" class="nav-link">Archive</a>
|
|
|
|
</li>
|
2017-12-23 02:34:58 +00:00
|
|
|
<li class="nav-item">
|
|
|
|
<a href="/contact" class="nav-link">Contact Me</a>
|
|
|
|
</li>
|
2017-10-31 16:42:15 +00:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<form class="form-inline mt-2 mt-md-0">
|
|
|
|
<input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search">
|
|
|
|
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
<div class="bluez-header">
|
|
|
|
<div class="container">
|
2017-11-07 17:01:02 +00:00
|
|
|
<h1 class="bluez-title">{{ .Title }}</h1>
|
2017-10-31 16:42:15 +00:00
|
|
|
<p class="lead bluez-description">Just another web blog.</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="container mb-5">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-9">
|
2017-11-08 03:48:22 +00:00
|
|
|
{{ if .SetupNeeded }}
|
|
|
|
<div class="alert alert-success">
|
|
|
|
Your web blog needs to be set up!
|
2017-11-15 14:55:15 +00:00
|
|
|
Please <a href="/initial-setup">click here</a> to
|
2017-11-08 03:48:22 +00:00
|
|
|
configure your blog.
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
2017-11-20 05:49:19 +00:00
|
|
|
{{ range .Flashes }}
|
2017-11-07 17:53:02 +00:00
|
|
|
<div class="alert alert-success">
|
2017-11-20 05:49:19 +00:00
|
|
|
{{ . }}
|
2017-11-07 17:53:02 +00:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
2017-11-08 03:48:22 +00:00
|
|
|
|
2017-11-07 17:01:02 +00:00
|
|
|
{{ if .Error }}
|
|
|
|
<div class="alert alert-danger">
|
|
|
|
<strong>Error:</strong> {{ .Error }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
2017-10-31 16:42:15 +00:00
|
|
|
{{ template "content" . }}
|
2017-12-23 22:48:47 +00:00
|
|
|
|
|
|
|
{{ if and .CurrentUser.Admin .Editable }}
|
|
|
|
<p class="mt-4">
|
2017-12-23 23:29:38 +00:00
|
|
|
<strong>Admin:</strong> [<a href="/admin/editor?file={{ or .Data.MarkdownFile TemplateName }}">edit this page</a>]
|
2017-12-23 22:48:47 +00:00
|
|
|
</p>
|
|
|
|
{{ end }}
|
2017-10-31 16:42:15 +00:00
|
|
|
</div>
|
|
|
|
<div class="col-3">
|
|
|
|
|
|
|
|
<div class="card mb-4">
|
|
|
|
<div class="card-body">
|
|
|
|
<h4 class="card-title">About</h4>
|
|
|
|
|
2017-11-24 20:53:13 +00:00
|
|
|
<p>Hello, world!</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ if .LoggedIn }}
|
|
|
|
<div class="card mb-4">
|
|
|
|
<div class="card-body">
|
|
|
|
<h4 class="cart-title">Control Center</h4>
|
|
|
|
|
|
|
|
<p>
|
2017-12-23 22:48:47 +00:00
|
|
|
Logged in as: {{ .CurrentUser.Username }}
|
2017-11-24 20:53:13 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<ul class="list-unstyled">
|
2017-11-07 17:53:02 +00:00
|
|
|
{{ if .CurrentUser.Admin }}
|
2017-11-24 20:53:13 +00:00
|
|
|
<li class="list-item"><a href="/admin">Admin Center</a></li>
|
2017-11-07 17:53:02 +00:00
|
|
|
{{ end }}
|
2017-11-24 20:53:13 +00:00
|
|
|
<li class="list-item"><a href="/logout">Log out</a></li>
|
|
|
|
</ul>
|
2017-11-07 17:53:02 +00:00
|
|
|
|
2017-11-24 20:53:13 +00:00
|
|
|
<h5>Manage Blog</h5>
|
|
|
|
|
|
|
|
<ul class="list-unstyled">
|
|
|
|
<li class="list-item"><a href="/blog/edit">Post Blog Entry</a></li>
|
|
|
|
<li class="list-item"><a href="/blog/drafts">View Drafts</a></li>
|
|
|
|
<li class="list-item"><a href="/blog/private">View Private</a></li>
|
|
|
|
</ul>
|
2017-10-31 16:42:15 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-11-24 20:53:13 +00:00
|
|
|
{{ end }}
|
2017-10-31 16:42:15 +00:00
|
|
|
|
|
|
|
<div class="card mb-4">
|
|
|
|
<div class="card-body">
|
|
|
|
<h4 class="card-title">Archives</h4>
|
|
|
|
|
|
|
|
<ul class="nav flex-column">
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="#">March 2018</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="#">February 2018</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="#">January 2018</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-body">
|
|
|
|
<h4 class="card-title">Elsewhere</h4>
|
|
|
|
|
|
|
|
<ul class="nav flex-column">
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="#">Facebook</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="#">Twitter</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<footer class="bluez-footer">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-8">
|
|
|
|
<ul class="nav">
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="#">RSS</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="#">Random</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="#">Archive</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="#">Ask me anything</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="#">Back to top</a>
|
|
|
|
</li>
|
2017-11-24 20:53:13 +00:00
|
|
|
{{ if .LoggedIn }}
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="/logout">Log out</a>
|
|
|
|
</li>
|
|
|
|
{{ else }}
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" href="/login">Log in</a>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
2017-10-31 16:42:15 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="col-4">
|
|
|
|
Copyright 2017
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
|
2017-11-15 14:55:15 +00:00
|
|
|
{{ template "scripts" or "" }}
|
|
|
|
|
2017-10-31 16:42:15 +00:00
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
{{ end }}
|