about summary refs log tree commit diff
path: root/layouts/_default
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 /layouts/_default
parentcfe47619942f4416878ce3680eb09d28fcddadc4 (diff)
downloadblog-1e177f34da8089f1c508501d73efc84016f84a55.tar.gz
Fix some layout issues
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/list.html3
1 files changed, 3 insertions, 0 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 }}