summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--layouts/index.html23
-rw-r--r--layouts/partials/footer.html4
-rw-r--r--layouts/partials/head.html0
-rw-r--r--layouts/partials/header.html16
4 files changed, 23 insertions, 20 deletions
diff --git a/layouts/index.html b/layouts/index.html
index c4ac96a..6d3b85c 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,20 +1,3 @@
-<!doctype html>
-<html class="no-js" lang="">
-
-<head>
- <meta charset="utf-8">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <title></title>
- <meta name="description" content="">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
-
- <link rel="stylesheet" href="css/normalize.css">
- <link rel="stylesheet" href="css/main.css">
-</head>
-
-<body>
- <p>Hello world! This is HTML5 Boilerplate.</p>
-
-</body>
-
-</html>
+{{ partial "header" . }}
+ <p>Hello world! This is HTML5 Boilerplate.</p>
+{{ partial "footer" . }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index e69de29..f5562b7 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -0,0 +1,4 @@
+
+ </main>
+</body>
+</html>
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
deleted file mode 100644
index e69de29..0000000
--- a/layouts/partials/head.html
+++ /dev/null
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index e69de29..45614b8 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -0,0 +1,16 @@
+<!doctype html>
+<html class="no-js" lang="">
+
+<head>
+ <meta charset="utf-8">
+ <meta http-equiv="x-ua-compatible" content="ie=edge">
+ <title>{{ .Title }} {{ if ne .Title .Site.Title }} &middot; {{ .Site.Title }}{{ end }}</title>
+ <meta name="description" content="">
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
+
+ <link rel="stylesheet" href="css/normalize.css">
+ <link rel="stylesheet" href="css/main.css">
+</head>
+
+<body>
+ <main>