aboutsummaryrefslogtreecommitdiffstats
path: root/site/layouts/_default
diff options
context:
space:
mode:
Diffstat (limited to 'site/layouts/_default')
-rw-r--r--site/layouts/_default/baseof.html9
-rw-r--r--site/layouts/_default/li.html5
-rw-r--r--site/layouts/_default/list.html5
-rw-r--r--site/layouts/_default/single.html9
4 files changed, 17 insertions, 11 deletions
diff --git a/site/layouts/_default/baseof.html b/site/layouts/_default/baseof.html
new file mode 100644
index 0000000..c068832
--- /dev/null
+++ b/site/layouts/_default/baseof.html
@@ -0,0 +1,9 @@
+<!doctype html>
+<html lang="en">
+ {{ partial "head" . }}
+ <body class="sans-serif">
+ {{ partial "nav" . }}
+ {{ block "main" . }}{{ end }}
+ {{ partial "footer" . }}
+ </body>
+</html> \ No newline at end of file
diff --git a/site/layouts/_default/li.html b/site/layouts/_default/li.html
index e5fca8e..e3d57de 100644
--- a/site/layouts/_default/li.html
+++ b/site/layouts/_default/li.html
@@ -1,9 +1,6 @@
<a href="{{ .Permalink }}" class="no-underline pa3 bg-grey-1 br1 mb2 db raise w-100">
-
- <h2 class="f3 b lh-title mb1 primary">{{ .Title }}</h2
- >
+ <h2 class="f3 b lh-title mb1 primary">{{ .Title }}</h2>
<p class="mid-gray lh-title mb2">{{ .Date.Format "Mon, Jan 2, 2006" }}</p>
<p class="mb0">{{ .Description }}</p>
<p class="link b dib black mb0">Read more →</p>
-
</a>
diff --git a/site/layouts/_default/list.html b/site/layouts/_default/list.html
index 33d722a..c23fa0c 100644
--- a/site/layouts/_default/list.html
+++ b/site/layouts/_default/list.html
@@ -1,5 +1,4 @@
-{{ partial "head" . }}
-{{ partial "nav" . }}
+{{ define "main" }}
{{ partial "jumbotron" (dict "imageUrl" "/img/blog-index.jpg" "title" "Latest stories") }}
@@ -13,4 +12,4 @@
</ul>
</div>
-{{ partial "footer" . }}
+{{end}} \ No newline at end of file
diff --git a/site/layouts/_default/single.html b/site/layouts/_default/single.html
index 2126d61..159e454 100644
--- a/site/layouts/_default/single.html
+++ b/site/layouts/_default/single.html
@@ -1,5 +1,6 @@
-{{ partial "head" . }}
-{{ partial "nav" . }}
+{{ define "main" }}
+
{{ partial "jumbotron" (dict "imageUrl" "/img/7.jpg" "title" "This is where the heading goes" "subtitle" "This is where the subtitle goes") }}
- {{ .Content }}
-{{ partial "footer" . }}
+{{ .Content }}
+
+{{ end }}