summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/baseof.html15
-rw-r--r--layouts/_default/home.html7
-rw-r--r--layouts/_default/single.html7
3 files changed, 29 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
new file mode 100644
index 0000000..6d931cb
--- /dev/null
+++ b/layouts/_default/baseof.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8" />
+ <title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
+ </head>
+ <body>
+ {{ block "main" . }}
+ {{ end }}
+ {{ block "footer" . }}
+ {{ end }}
+ </body>
+</html>
+
+
diff --git a/layouts/_default/home.html b/layouts/_default/home.html
new file mode 100644
index 0000000..872513f
--- /dev/null
+++ b/layouts/_default/home.html
@@ -0,0 +1,7 @@
+{{ define "title" }}
+ {{ .Site.Title }}
+{{ end }}
+{{ define "main" }}
+ <h1>{{ .Site.Title }}</h1>
+ {{ .Content }}
+{{ end }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..ba2e421
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,7 @@
+{{ define "title" }}
+ {{ .Title }} &ndash; {{ .Site.Title }}
+{{ end }}
+{{ define "main" }}
+ <h1>{{ .Title }}</h1>
+ {{ .Content }}
+{{ end }}