[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.page-title] widget = 'title' selector = ['h1', 'h2', '#title'] default = 'Sorre' append = ' | sorre' force = true keep = false [widgets.insert-sakura-css] widget = 'insert_html' selector = 'head' html = """ """ [widgets.insert-custom-css] widget = 'insert_html' selector = 'head' html = """ """ [widgets.highlight] # after = 'escape-html-in-pre' widget = 'preprocess_element' selector = '*[class^="language-"]' command = 'highlight -O html -f --syntax=$(echo $ATTR_CLASS | sed "s/language-//")' [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}}.

"""