add head.tpl

This commit is contained in:
Henrique Dias 2015-09-12 21:20:40 +01:00
parent eef006d629
commit 6966cb7392
2 changed files with 16 additions and 0 deletions

View File

@ -1 +1,7 @@
{{ define "Head" }}
{{ template "head" }}
{{ end }}
{{define "Body"}}
{{ .Content }} {{ .Content }}
{{ end }}

10
templates/head.tpl Normal file
View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html class="no-js" lang="en_UK">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ .Title }}</title>
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="">
</head>