aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/section.html
diff options
context:
space:
mode:
authorKaran Jayachandra <me@karanj.com>2026-02-01 20:03:13 +0100
committerKaran Jayachandra <me@karanj.com>2026-02-01 20:03:13 +0100
commitfcbf209e3a0c101760873afd83ebd97a2405b7d5 (patch)
tree2707f9d42a6bce50a8ebeec30b61aa1c2dbcb8a6 /layouts/_default/section.html
parentcc21a3df9f1e199db9c01f21ff5820c3f899a4e0 (diff)
parentf510077aaefb1477fad28563e2637c424332ae61 (diff)
Merge branch 'develop' into 'main'
Added the python post See merge request KaranJayachandra/karanjayachandra.gitlab.io!7
Diffstat (limited to 'layouts/_default/section.html')
-rw-r--r--layouts/_default/section.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/layouts/_default/section.html b/layouts/_default/section.html
new file mode 100644
index 0000000..a27e808
--- /dev/null
+++ b/layouts/_default/section.html
@@ -0,0 +1,19 @@
+{{ define "main" }}
+<h1>{{ strings.Title .Section }}</h1>
+<table style="width: 100%">
+ <colgroup>
+ <col span="1" style="width: 10%;">
+ <col span="1" style="width: 30%;">
+ <col span="1" style="width: 60%;">
+ </colgroup>
+ {{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
+ {{ $paginator := .Paginate (where $pages "Params.hidden" "ne" true) }}
+ {{ range $index, $element := $paginator.Pages }}
+ <tr>
+ <td style="border: none; text-align: right;">{{ add $index 1 }}</td>
+ <td style="border: none; text-align: center;">{{ dateFormat "2006-01-02" $element.Date }}</td>
+ <td style="border: none;"><a href="{{ .RelPermalink }}">{{ $element.Title }}</a></td>
+ </tr>
+ {{ end }}
+</table>
+{{ end }} \ No newline at end of file