# -*- toml -*-
# hristoast - soupault.conf
# Copyright (C) 2019 Hristos N. Triantafillou
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
[settings]
clean_urls = true
generator_mode = true
strict = true
site_dir = "site"
build_dir = "build"
page_file_extensions = ["html"]
ignore_extensions = ["draft"]
complete_page_selector = "html"
default_template = "templates/main.html"
content_selector = "div#content"
doctype = "<!DOCTYPE html>"
[index]
index = true
index_selector = "#blog-index"
index_processor = "scripts/index.py"
index_title_selector = "h1#title"
index_date_selector = ["time#post-date", "time"]
index_excerpt_selector = ["p#post-excerpt", "p"]
newest_entries_first = true
[plugins.insert-if]
file = "plugins/insert-if.lua"
[plugins.section-link-highlight]
file = "plugins/section-link-highlight.lua"
[widgets.asciinema-player-css]
widget = "insert-if"
html = "<link rel='stylesheet' type='text/css' href='/asciinema/asciinema-player.css' />"
selector = "head"
check_selector = "asciinema-player"
[widgets.asciinema-player-js]
widget = "insert-if"
html = "<script src='/asciinema/asciinema-player.js' type='text/javascript'></script>"
selector = "body"
check_selector = "asciinema-player"
[widgets.highlight-active-link]
widget = "section-link-highlight"
selector = "nav"
active_link_class = "bold"
[widgets.vidpos-js]
widget = "insert-if"
html = "<script src='/js/vidpos.js' type='text/javascript'></script>"
selector = "body"
check_selector = "video"
[widgets.footnotes]
widget = "footnotes"
selector = "#footnotes"
footnote_selector = ".footnote"
footnote_template = "<p></p>"
ref_template = "<sup></sup>"
footnote_link_class = "footnote"
back_links = true
link_id_prepend = ""
back_link_id_append = ""
[widgets.last-modified]
widget = "exec"
selector = "#git-timestamp"
command = "git log -n 1 --pretty=format:%ad --date=format:%Y-%m-%d -- $PAGE_FILE"
[widgets.page-title]
widget = "title"
selector = "h1#title"
default = "Hristos N. Triantafillou"
append = " | Hristos N. Triantafillou"
[widgets.table-of-contents]
widget = "toc"
selector = "#toc"
heading_links = true
heading_link_text = "→ "
heading_link_class = "here"
min_level = 2
numbered_list = false
toc_list_class = "toc"
toc_class_levels = false
use_heading_slug = true