~hristoast/hristoast

ref: ed4e35da340817fa5769040737545ec80f6d37ba hristoast/soupault.conf -rw-r--r-- 3.1 KiB
ed4e35daHristos N. Triantafillou Create and use the source link plugin 1 year, 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# -*- 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"

[plugins.source-link]
  file = "plugins/source-link.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.source-link]
  widget = "source-link"
  selector = "div#source-link"
  link_text = "Source link for this page"
  repo_base = "https://git.sr.ht/~hristoast/hristoast/tree/master/"

[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