[gimp-web-devel/hugo] layout: remove list of posts from homepage



commit f686bd4f424c9789d374274bde09329c00fc572c
Author: Pat David <patdavid gmail com>
Date:   Mon Aug 8 10:24:19 2022 -0500

    layout: remove list of posts from homepage
    
    I commented out the code that fetches and displays the list of
    new posts on the homepage.  It should just render what is in
    the _index.md file for the homepage now.

 themes/hyde/layouts/index.html | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/themes/hyde/layouts/index.html b/themes/hyde/layouts/index.html
index ec6d2eb..9c2c189 100644
--- a/themes/hyde/layouts/index.html
+++ b/themes/hyde/layouts/index.html
@@ -1,4 +1,9 @@
 {{ define "main" -}}
+  <div class="">
+    {{ .Content }}
+  </div>
+
+{{/* Uncomment this section to get a list of new posts
 <div class="posts">
 {{ range .Site.RegularPages -}}
 <article class="post">
@@ -15,4 +20,6 @@
 </article>
 {{- end }}
 </div>
+*/}}
+
 {{- end }}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]