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

github.com/bul-ikana/hugo-cards.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Aguirre <bul.ikana@gmail.com>2018-09-29 19:34:12 +0300
committerHugo Aguirre <bul.ikana@gmail.com>2018-09-29 19:34:12 +0300
commita5cb35cf794c6edfefd3f7a21351ab86a37eac42 (patch)
tree6cd97bfcbc15b221fe11a7222d253f984c9a9852 /layouts
parentce5671bd17509556ebb94567b4760f994a52fdeb (diff)
Move content to blocks
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/baseof.html (renamed from layouts/index.html)6
-rw-r--r--layouts/_default/list.html3
2 files changed, 5 insertions, 4 deletions
diff --git a/layouts/index.html b/layouts/_default/baseof.html
index 9fa9bda..c1ff15f 100644
--- a/layouts/index.html
+++ b/layouts/_default/baseof.html
@@ -9,13 +9,11 @@
<div class="container">
<div class="wrapper">
- { content }}
- {{ .Site.Title }}
+ {{ block "main" . }} {{ end }}
</div>
</div>
- {{ partial "footer.html" . }}
-
+ {{ partial "footer.html" . }}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
<script src="{{ .Site.BaseURL }}/js/bootstrap.min.js"></script>
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index e69de29..41b8269 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -0,0 +1,3 @@
+{{ define "main" }}
+
+{{ end }} \ No newline at end of file