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

github.com/tummychow/lanyon-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBhavin Gandhi <bhavin7392@gmail.com>2018-04-14 08:17:50 +0300
committerBhavin Gandhi <bhavin7392@gmail.com>2018-04-14 08:26:40 +0300
commit8a598965a98290a1ac27811e13d2b3a1067813a2 (patch)
tree08d837671c67cc2176efbcc58d307b5a909f9af9
parente3886f52e12b76f37e87d5075b7c1ada925d5423 (diff)
Rename li.html to list.html
This fixes #21 - The taxonomy pages can be generated using list.html in HUGO, so now it will generate pages for all categories and tags etc. - Also the layouts/post/post.html is not needed now Signed-off-by: Bhavin Gandhi <bhavin7392@gmail.com>
-rw-r--r--layouts/_default/li.html1
-rw-r--r--layouts/_default/list.html14
-rw-r--r--layouts/post/post.html12
3 files changed, 14 insertions, 13 deletions
diff --git a/layouts/_default/li.html b/layouts/_default/li.html
deleted file mode 100644
index 2003dea..0000000
--- a/layouts/_default/li.html
+++ /dev/null
@@ -1 +0,0 @@
-<li>{{ .Site.Params.DateForm | default "Jan 2, 2006" | .Date.Format }} - <a href="{{ .Permalink }}">{{ .Title }}</a></li>
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100644
index 0000000..ece5574
--- /dev/null
+++ b/layouts/_default/list.html
@@ -0,0 +1,14 @@
+{{ partial "default_head.html" . }}
+
+<div class="post">
+ <h1 class="post-title">{{ .Title }}</h1>
+ <ul id="list">
+ {{ range .Data.Pages }}
+ <li>{{ .Site.Params.DateForm | default "Jan 2, 2006" | .Date.Format }} -
+ <a href="{{ .Permalink }}">{{ .Title }}</a>
+ </li>
+ {{ end }}
+ </ul>
+</div>
+
+{{ partial "default_foot.html" . }}
diff --git a/layouts/post/post.html b/layouts/post/post.html
deleted file mode 100644
index c663721..0000000
--- a/layouts/post/post.html
+++ /dev/null
@@ -1,12 +0,0 @@
-{{ partial "default_head.html" . }}
-
-<div class="post">
- <h1 class="post-title">{{ .Title }}</h1>
- <ul id="list">
- {{ range .Data.Pages }}
- {{ .Render "li"}}
- {{ end }}
- </ul>
-</div>
-
-{{ partial "default_foot.html" . }}