[gimp-web-devel/hugo] Create section layout template



commit b34ec432e99c9fbc05b904f65483c50c8e2bd562
Author: Pat David <patdavid gmail com>
Date:   Sat Aug 6 13:25:22 2022 -0500

    Create section layout template

 themes/hyde/layouts/_default/section.html | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
---
diff --git a/themes/hyde/layouts/_default/section.html b/themes/hyde/layouts/_default/section.html
new file mode 100644
index 0000000..af30df4
--- /dev/null
+++ b/themes/hyde/layouts/_default/section.html
@@ -0,0 +1,14 @@
+{{ define "main" -}}
+
+{{ .Content }}
+
+{{/* Below will list all pages under this section */}}
+
+<ul class="posts">
+{{ range .Data.Pages -}}
+  <li>
+    <span><a href="{{ .Permalink }}">{{ .Title }}</a> <time class="pull-right post-list" datetime="{{ 
.Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></span>
+  </li>
+{{- end }}
+</ul>
+{{- end }}


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