Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/eliasson/liquorice.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Eliasson <markus.eliasson@gmail.com>2014-09-02 01:10:56 +0400
committerMarkus Eliasson <markus.eliasson@gmail.com>2014-09-02 01:10:56 +0400
commit0a0dbfbcd5cdb440ad2bd50d12aeedf4585f88ea (patch)
treedf6ce5a135ba3664eb747cbf5d839f5e63487e7b
parentf3e5957b727d1a85e8276e83312835351f8908e6 (diff)
Update to Hugo 0.12
- Changed from template to partial - Created a content view for summary
-rw-r--r--layouts/_default/list.html8
-rw-r--r--layouts/_default/single.html8
-rw-r--r--layouts/_default/summary.html12
-rw-r--r--layouts/index.html8
4 files changed, 24 insertions, 12 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 2bf0a20..2a621b4 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,5 +1,5 @@
-{{ template "theme/partials/head.html" . }}
-{{ template "theme/partials/header.html" . }}
+{{ partial "head.html" . }}
+{{ partial "header.html" . }}
<div class="container">
<div class="row">
@@ -17,5 +17,5 @@
</div>
</div>
-{{ template "theme/partials/footer.html" . }}
-{{ template "theme/partials/tail.html" . }}
+{{ partial "footer.html" . }}
+{{ partial "tail.html" . }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 6363805..1928e01 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,5 +1,5 @@
-{{ template "theme/partials/head.html" . }}
-{{ template "theme/partials/header.html" . }}
+{{ partial "head.html" . }}
+{{ partial "header.html" . }}
<div class="container">
<div class="row">
@@ -39,5 +39,5 @@
</div>
</div>
-{{ template "theme/partials/footer.html" . }}
-{{ template "theme/partials/tail.html" . }}
+{{ partial "footer.html" . }}
+{{ partial "tail.html" . }}
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html
new file mode 100644
index 0000000..74b43b5
--- /dev/null
+++ b/layouts/_default/summary.html
@@ -0,0 +1,12 @@
+<article>
+ <header>
+ <h2><a href="{{ .Permalink }}">{{ .Title }} {{ if .Draft }} (draft) {{end}}</a></h2>
+ <time class="li-article-date">{{ .Date.Format "Monday, January 2, 2006" }}</time>
+ </header>
+ <section class="li-article-section">
+ {{ .Summary }}
+ </section>
+ <footer>
+ <a href='{{ .Permalink }}'>More</a>
+ </footer>
+</article>
diff --git a/layouts/index.html b/layouts/index.html
index c20453b..429a671 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,5 +1,5 @@
-{{ template "theme/partials/head.html" . }}
-{{ template "theme/partials/header.html" . }}
+{{ partial "head.html" . }}
+{{ partial "header.html" . }}
<div class="container">
<div class="row">
@@ -15,5 +15,5 @@
</div>
</div>
-{{ template "theme/partials/footer.html" . }}
-{{ template "theme/partials/tail.html" . }}
+{{ partial "footer.html" . }}
+{{ partial "tail.html" . }}