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

github.com/mazgi/hugo-theme-techlog-simple.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHidenori MATSUKI <MATSUKI.Hidenori@gmail.com>2018-03-19 19:00:05 +0300
committerHidenori MATSUKI <MATSUKI.Hidenori@gmail.com>2018-03-19 19:00:05 +0300
commit3fc134d8ed5f50906bf1d984334d8c4f50b2dc4c (patch)
tree325339fb79b92ee8a23addca7db81b117fb207cd
parent34ded75359f796856731a4671d4cc78c48e92821 (diff)
Merge index layout to list layout.
-rw-r--r--layouts/_default/list.html11
-rw-r--r--layouts/index.html6
2 files changed, 9 insertions, 8 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 15c35a1..2db6cc6 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,6 +1,13 @@
{{ partial "header.html" . }}
-<h1>{{ .Title }}</h1>
+<h1>{{ .Site.Title }}</h1>
<div>
-{{ .Content }}
+ {{ .Content }}
+</div>
+<div>
+ <ul>
+ {{ range .Data.Pages }}
+ <li><a href="{{ .RelPermalink }}">{{ .Title }}</a>
+ {{ end }}
+ </ul>
</div>
{{ partial "footer.html" . }}
diff --git a/layouts/index.html b/layouts/index.html
deleted file mode 100644
index b02cab2..0000000
--- a/layouts/index.html
+++ /dev/null
@@ -1,6 +0,0 @@
-<h1>{{ .Site.Title }}</h1>
-<ul>
- {{ range .Data.Pages }}
- <li><a href="{{ .RelPermalink }}">{{ .Title }}</a>
- {{ end }}
-</ul>