@@ 44,6 44,9 @@
date_formats = ["%F"]
extract_after_widgets = ['last-modified']
+#
+# What fields do I care about, and where do they come from?
+#
[index.fields]
date = { selector = [ "#post-date", "time" ] }
excerpt = { selector = [ "#post-excerpt", "p" ] }
@@ 67,13 70,26 @@
index_selector = "div#blog-all"
index_item_template = """
<div class="entry">
-<h4><a href="{{url}}">{{title}}</a></h4>
-<p>Posted: <time>{{date}}</time></p>
-<p>{{excerpt}}</p>
-<a href="{{url}}">Read more...</a>
+ <h4>
+ <a href="{{url}}">
+ {{title}}
+ </a>
+ </h4>
+ <p>
+ Posted: <time>{{date}}</time>
+ </p>
+ <p>
+ {{excerpt}}
+ </p>
+ <a href="{{url}}">
+ Read more...
+ </a>
</div>
"""
+#
+# Generate an Atom feed from an index that's been rendered to a page.
+#
[widgets.atom]
widget = "atom"
profile = "live"
@@ 87,6 103,9 @@
feed_subtitle = "The personal website of Hristos N. Triantafillou"
feed_logo = "https://hristos.co/img/slime.png"
+#
+# Generate a sitemap from the main index.
+#
[widgets.sitemap]
widget = "sitemap"
profile = "live"
@@ 108,6 127,9 @@
selector = "nav"
active_link_class = "bold"
+#
+# Provide a link to the source code of a given page.
+#
[widgets.source-link]
widget = "source-link"
selector = "div#source-link"