summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-05-08 15:04:14 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-05-08 15:04:14 +0200
commit00d7bf246aea5883024765435e19294b017f8059 (patch)
tree3ef59bee770f74cdaf18f432c07d2db6f8364c3e
parent3c0ce354a28cafb5b63658c0581ea49e8882ea79 (diff)
Split aside, WS
-rw-r--r--template/root.tmpl33
1 files changed, 17 insertions, 16 deletions
diff --git a/template/root.tmpl b/template/root.tmpl
index f7bba3d..8233175 100644
--- a/template/root.tmpl
+++ b/template/root.tmpl
@@ -11,21 +11,7 @@
</script>
{{end}}
-{{define "root"}}
-<!DOCTYPE html>
-<html>
-<head>
- <meta charset="UTF-8">
- <title>{{template "title" .}}</title>
- <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Abel|Raleway|Anonymous+Pro">
- <link rel="stylesheet" type="text/css" href="/static/style.css">
- <link rel="alternate" type="application/atom+xml" title="Atom Feed" href="/feed.atom">
- <meta name="google-site-verification" content="3cwuN4OwVfNZEGTw5Q9UotI2AJCTzr8F7QB8uhtfAWo">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- {{template "ga"}}
-</head>
-<body>
-
+{{define "aside"}}
<aside>
<header>
<h1><a href="{{.BasePath}}/">dim-i-tri's blog</a></h1>
@@ -54,9 +40,24 @@
<p><img src="avatar/cube.jpg" alt="avatar"></p>
</aside>
+{{end}}
+{{define "root" -}}
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="UTF-8">
+ <title>{{template "title" .}}</title>
+ <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Abel|Raleway|Anonymous+Pro">
+ <link rel="stylesheet" type="text/css" href="/static/style.css">
+ <link rel="alternate" type="application/atom+xml" title="Atom Feed" href="/feed.atom">
+ <meta name="google-site-verification" content="3cwuN4OwVfNZEGTw5Q9UotI2AJCTzr8F7QB8uhtfAWo">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+{{template "ga"}}
+</head>
+<body>
+{{template "aside" .}}
{{template "content" .}}
-
</body>
</html>
{{end}}