summaryrefslogtreecommitdiffstats
path: root/site/posts/meta/Soupault.org
blob: 913c8ae59c3a6cf3ce4cf6be54ccd0bd49a43692 (plain)
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
#+BEGIN_EXPORT html
<h1><code>soupault</code> Configuration</h1>

<div id="history">site/posts/meta/Soupault.org</div>
#+END_EXPORT

#+BEGIN_SRC toml :tangle (concat (getenv "ROOT") "/soupault.conf")
[settings]
  strict = true
  verbose = false
  debug = false
  site_dir = "site"
  build_dir = "build"

  page_file_extensions = ["html"]
  ignore_extensions = [
    "draft", "vo", "vok", "vos", "glob",
    "html~", "org", "aux", "sass",
  ]

  generator_mode = true
  complete_page_selector = "html"
  default_template = "templates/main.html"
  content_selector = "main"
  doctype = "<!DOCTYPE html>"
  clean_urls = true

[widgets.page-title]
  widget = "title"
  selector = "h1"
  default = "~lthms"
  prepend = "~lthms: "

[widgets.generator-meta]
  widget = "insert_html"
  html = '<meta name="generator" content="soupault 1.5">'
  selector = "head"

[widgets.table-of-contents]
  widget = "toc"
  selector = "div#generate-toc"
  action = "replace_element"
  min_level = 2
  numbered_list = true

[plugins.fix_urls]
  file = "plugins/fix_urls.lua"

[plugins.external_links]
  file = "plugins/external_links.lua"

[widgets.fix-urls]
  widget = "fix_urls"
  prefix_url = "/~lthms"

[widgets.mark-external-urls]
  after = "generate-history"
  widget = "external_links"

[widgets.generate-history]
  widget = "preprocess_element"
  selector = "#history"
  command = "./scripts/generate_history.sh \"templates/history.html\""
  action = "replace_content"

[widgets.math]
  widget = "preprocess_element"
  selector = ".imath"
  command = "node scripts/katex.js"
  action = "replace_content"
#+END_SRC