-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsoupault.toml
executable file
·148 lines (122 loc) · 3.29 KB
/
soupault.toml
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
[settings]
strict = true
verbose = false
debug = false
site_dir = "site"
build_dir = "build"
caching = true
default_template_file = "templates/main.html"
plugin_discovery = true
plugin_dirs = ["plugins"]
page_file_extensions = ["html", "md"]
ignore_extensions = ["draft"]
pretty_print_html = true
clean_urls = true
# Treat files as content to insert in the template,
# unless they have an <html> element in them.
generator_mode = true
complete_page_selector = "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
[preprocessors]
md = 'pandoc -f commonmark+smart -t html --no-highlight --lua-filter=helpers/cmark-code-blocks.lua'
[custom_options]
site_url = "https://beauhilton.com"
[index]
index = true
sort_descending = true
sort_by = "date"
strip_tags = false
dump_json = "index.json"
section = "posts"
date_formats = ["%F"]
[index.fields.title]
selector = ["h1"]
[index.fields.date]
selector = ["time#post-date", "time"]
extract_attribute = "datetime"
fallback_to_content = true
[index.fields.excerpt]
selector = ["p#post-excerpt", "p"]
[index.views.posts]
index_selector = "#posts-index"
sort_by = "date"
sort_type = "calendar"
paginate = true
items_per_page = 5
page_navigation_template = """
<hr>
{% if prev_url %}
<a href="{{prev_url}}">← newer</a>
{% endif %}
{# There may not be a next page #}
{% if next_url %}
<a href="{{next_url}}">older →</a>
{% endif %}
</div>
"""
page_navigation_selector = "#page-navigation"
index_template = """
{% for e in entries %}
<h2><a href="{{e.url}}">{{e.title}}</a></h2>
<p><strong>Last update:</strong> {{e.date}}.</p>
<p>{{e.excerpt}}</p>
<a href="{{e.url}}">Read more</a>
<hr style="opacity:0.2; margin-top: 3em">
<br>
{% endfor %}
"""
[widgets.escape-html-in-pre]
widget = "escape-html"
selector = ".raw-html"
[widgets.highlight]
after = "escape-html-in-pre"
widget = "preprocess_element"
selector = '*[class^="language-"]'
command = 'highlight -O html -f --syntax=$(echo $ATTR_CLASS | sed -e "s/language-//")'
# Add tabindex="0" to code snippets to aid keyboard, screen reader navigation
[widgets.set-tab-index-for-code-snippets]
widget = "set-tab-index"
selectors = ["pre"]
tab_index = 0
[widgets.footnotes]
widget = "footnotes"
selector = "div#footnotes"
footnote_selector = ["fn", ".footnote"]
footnote_link_class = "footnote"
back_links = true
link_id_prepend = "footnote-"
back_link_id_append = "-ref"
[widgets.header]
widget = "include"
file = "templates/header.html"
selector = "head"
[widgets.nav]
widget = "include"
file = "templates/nav.html"
selector = "nav"
[widgets.footer]
widget = "include"
file = "templates/footer.html"
selector = "footer"
[widgets.highlight-active-link]
after = ["footer"]
widget = "section-link-highlight"
selector = "nav"
active_link_class = "nav-active"
[widgets.atom]
widget = "atom"
page = "posts/index.html"
use_section = "posts"
delete_elements = [".footnote", "a"]
feed_file = "atom.xml"
feed_author = "beau hilton"
feed_author_email = "[email protected]"
feed_title = "beauhilton"
feed_subtitle = "beau's website"