seperate routes, provide robust handler types, use mux
This commit is contained in:
@@ -1,29 +0,0 @@
|
||||
{{ define "layout" }}
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>gonic</title>
|
||||
{{ template "head" }}
|
||||
</head>
|
||||
<body>
|
||||
<div id="content">
|
||||
<div id="header">
|
||||
<img src="/admin/static/gonic.png">
|
||||
</div>
|
||||
{{ if .Flashes }}
|
||||
{{ $flash := index .Flashes 0 }}
|
||||
<div class="padded mono flash-{{ $flash.Type }}">
|
||||
<i class="mdi mdi-alert-circle"></i> {{ $flash.Message }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ template "content" . }}
|
||||
<div class="side-padded mono text-right">
|
||||
senan kelly, 2019
|
||||
<span class="light">|</span>
|
||||
<a href="https://senan.xyz/g/gonic">github</a>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user