From ee7b2ba718c47fa7f4ef67af08e5906f3d5333b5 Mon Sep 17 00:00:00 2001 From: Isabella Bastaja Date: Sat, 21 Feb 2026 13:39:30 +0100 Subject: replace zola with soupault --- soupault.toml | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 soupault.toml (limited to 'soupault.toml') diff --git a/soupault.toml b/soupault.toml new file mode 100644 index 0000000..415470d --- /dev/null +++ b/soupault.toml @@ -0,0 +1,83 @@ +[settings] + verbose = true + debug = false + + # Where input files (pages and assets) are stored. + site_dir = "site" + build_dir = "build" + + # Files with other extensions are considered static assets + # and copied to build/ unchanged. + page_file_extensions = ["htm", "html", "md", "rst", "adoc"] + + # Files with these extensions are ignored. + ignore_extensions = ["draft", "priv"] + + # Treat files as content to insert in the template, + # unless they have an element in them. + generator_mode = true + complete_page_selector = "html" + + # Use templates/main.html file for the page template. + default_template_file = "templates/main.html" + + # The content will be inserted into its
element, + # after its last already existing child. + default_content_selector = "main" + default_content_action = "append_child" + + # Set the document type to HTML5, unless the page already has + # a doctype declaration. + doctype = "" + keep_doctype = true + + # Indent HTML tags for readability + pretty_print_html = true + + # Translate site/about.html to build/about/index.html + # If set to false, then site/about.html will become build/about.html + clean_urls = true + + # Look for plugin files in plugins/ + plugin_discovery = true + plugin_dirs = ["plugins"] + + +[preprocessors] + md = 'pandoc -f commonmark+smart -t html' + + +[widgets.insert-sakura-css] + widget = 'insert_html' + selector = 'head' + html = """ """ + + +[index] + sort_descending = true + sort_type = 'calendar' + sort_by = 'upload-date' + + date_formats = ['%F'] + +[index.fields.title] + selector = ['h1'] + +[index.fields.uploaddate] + selector = ['time#post-upload-date'] + extract_attribute = 'datetime' + fallback_to_content = true + +[index.fields.updatedate] + selector = ['time#post-update-date'] + extract_attribute = 'datetime' + fallback_to_content = true + +[index.views.blog] + index_selector = "#blog-index" + index_item_template = """ +

{{title}}

+

Uploaded: {{uploaddate}}

+

Last update: {{updatedate}}.

+ """ + -- cgit v1.3.1