Better default template.

This commit is contained in:
Tobias Weingartner 2016-04-12 18:53:15 -07:00
parent 42b7d57421
commit 48d294a695
2 changed files with 4 additions and 6 deletions

View File

@ -151,7 +151,7 @@ DocFlags.var_bool true`
<link rel="stylesheet" href="/resources/css/default.css">
<script src="/resources/js/log.js"></script>
<script src="/resources/js/default.js"></script>
</head>
</head>
<body>
<h2>Welcome on the blog</h2>

View File

@ -42,11 +42,9 @@ const (
<html>
<head>
<title>{{.Doc.title}}</title>
<meta charset="utf-8">
{{range .Styles}}<link rel="stylesheet" href="{{.}}">
{{end -}}
{{range .Scripts}}<script src="{{.}}"></script>
{{end -}}
<meta charset="utf-8">{{range .Styles}}
<link rel="stylesheet" href="{{.}}">{{end}}{{range .Scripts}}
<script src="{{.}}"></script>{{end}}
</head>
<body>
{{.Doc.body}}