pages/acl.cool/soupault.toml.patch
2025-06-13 19:43:00 -04:00

34 lines
822 B
Diff

--- soupault.toml 2025-06-13 19:27:38.166061625 -0400
+++ acl.cool/soupault.toml 2025-06-13 19:34:23.112853727 -0400
@@ -134,3 +134,31 @@
# By default this widget deletes all elements matching the selector,
# but you can set this option to false to delete just the first one
delete_all = true
+
+[index]
+index = true
+# sort_descending = true
+# sort_type = "calendar"
+# date_formats = ["%F"]
+# strict_sort = true
+
+[index.fields]
+
+[index.fields.title]
+selector = ["h1"]
+
+# [index.fields.date]
+# selector = ["time"]
+# extract_attribute = "datetime"
+# fallback_to_content = true
+
+[index.fields.abstract]
+selector = ["p"]
+
+[index.views.writings-index]
+index_selector = "#writings"
+section = "writings"
+index_item_template = """
+ <p><a href="{{url}}">{{title}}</a>
+ <br>{{abstract}}</p>
+ """