Extract head to own template
This commit is contained in:
10
templates/head.html
Normal file
10
templates/head.html
Normal file
@ -0,0 +1,10 @@
|
||||
{{define "head"}}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
|
||||
<link href="/static/css/bootstrap.min.css" rel="stylesheet" />
|
||||
<link href="/static/css/bootstrap-theme.min.css" rel="stylesheet" />
|
||||
<link href="/static/css/main.css" rel="stylesheet" />
|
||||
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script>
|
||||
<script src="http://malsup.github.com/jquery.form.js"></script>
|
||||
{{end}}
|
@ -3,14 +3,7 @@
|
||||
<head>
|
||||
<title>Login</title>
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
|
||||
<link href="/static/css/bootstrap.min.css" rel="stylesheet" />
|
||||
<link href="/static/css/bootstrap-theme.min.css" rel="stylesheet" />
|
||||
<link href="/static/css/main.css" rel="stylesheet" />
|
||||
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script>
|
||||
<script src="http://malsup.github.com/jquery.form.js"></script>
|
||||
{{template "head"}}
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
@ -26,7 +19,6 @@
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<head><title>Login</title>
|
||||
<body>
|
||||
<div class="container" id="head">
|
||||
Budgeteer
|
||||
|
Reference in New Issue
Block a user