diff options
| author | Isabella Bastaja <isabella@sorre.xyz> | 2026-02-21 13:39:30 +0100 |
|---|---|---|
| committer | Isabella Bastaja <isabella@sorre.xyz> | 2026-02-21 13:47:00 +0100 |
| commit | ee7b2ba718c47fa7f4ef67af08e5906f3d5333b5 (patch) | |
| tree | 98262ffeed7f1676d9bbea285048a65bc8fbfc49 /soupault.toml | |
| parent | 34154a73b321c5a9b8f35fb2d3682b93333242ca (diff) | |
replace zola with soupault
Diffstat (limited to 'soupault.toml')
| -rw-r--r-- | soupault.toml | 83 |
1 files changed, 83 insertions, 0 deletions
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 <html> 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 <main> 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 = "<!DOCTYPE html>" + 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 = """ <link rel="stylesheet" href="/sakura.css" type="text/css"> """ + + +[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 = """ + <h2><a href="{{url}}">{{title}}</a></h2> + <p><strong>Uploaded:</strong> {{uploaddate}}</p> + <p><strong>Last update:</strong> {{updatedate}}.</p> + """ + |
