about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2021-05-08 22:12:55 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2021-05-08 22:12:55 +0700
commit1e177f34da8089f1c508501d73efc84016f84a55 (patch)
tree2b2bea31ab9f0a7cc6c2f533e1ee0a4b534413ea
parentcfe47619942f4416878ce3680eb09d28fcddadc4 (diff)
downloadblog-1e177f34da8089f1c508501d73efc84016f84a55.tar.gz
Fix some layout issues
-rw-r--r--layouts/_default/list.html3
-rw-r--r--layouts/partials/postInfo.html28
2 files changed, 17 insertions, 14 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index c9f9806..59eb537 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -5,6 +5,8 @@
 
     <div class="articles h-feed">
         <h1 class="post-title">{{ i18n .Title }}</h1>
+        {{ if .Params.no_feed }}
+        {{ else}}
         {{ range .Page.CurrentSection.Pages }}
             <div class="post-short-list h-entry">
                 <header class="post-header"> 
@@ -13,6 +15,7 @@
                 {{ partial "postInfo.html" . }}
             </div>
         {{ end }}
+        {{ end}}
     </div>
 
 {{ end }}
diff --git a/layouts/partials/postInfo.html b/layouts/partials/postInfo.html
index d7146fd..f9052b0 100644
--- a/layouts/partials/postInfo.html
+++ b/layouts/partials/postInfo.html
@@ -14,21 +14,21 @@
 
     <div class="post-taxonomies">
         {{ if .Params.categories }}
-            categories:
-            <ul class="post-categories">
-                {{ range .Params.categories }}
-                    <li><a href="{{ "categories/" | urlize | absLangURL }}">{{ . }}</a></li>
-                {{ end }}
-            </ul>
+        categories:
+        <ul class="post-categories">
+            {{ range .Params.categories }}
+            <li><a href="{{ "categories/" | urlize | absLangURL }}">{{ . }}</a></li>
             {{ end }}
-            <br>
-            tagged:
-            {{ if .Params.tags }}
-                <ul class="post-tags">
-                    {{ range .Params.tags }}
-                        <li><a href="{{ "tags/" | absLangURL }}{{ . | urlize }}">#{{ . }}</a></li>
-                    {{ end }}
-                </ul>
+        </ul>
+        {{ end }}
+        <br>
+        {{ if .Params.tags }}
+        tagged:
+        <ul class="post-tags">
+            {{ range .Params.tags }}
+            <li><a href="{{ "tags/" | absLangURL }}{{ . | urlize }}">#{{ . }}</a></li>
+            {{ end }}
+        </ul>
         {{ end }}
     </div>
 </div>