deltas
This commit is contained in:
parent
1e88f77d79
commit
9ff0f33180
5 changed files with 42 additions and 35 deletions
27
acl.cool/soupault.toml.frag
Normal file
27
acl.cool/soupault.toml.frag
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
[index]
|
||||||
|
index = true
|
||||||
|
# sort_descending = true
|
||||||
|
# sort_type = "calendar"
|
||||||
|
# date_formats = ["%F"]
|
||||||
|
# strict_sort = true
|
||||||
|
|
||||||
|
[index.fields]
|
||||||
|
|
||||||
|
[index.fields.title]
|
||||||
|
selector = ["h1"]
|
||||||
|
|
||||||
|
# [index.fields.date]
|
||||||
|
# selector = ["time"]
|
||||||
|
# extract_attribute = "datetime"
|
||||||
|
# fallback_to_content = true
|
||||||
|
|
||||||
|
[index.fields.abstract]
|
||||||
|
selector = ["p"]
|
||||||
|
|
||||||
|
[index.views.writings-index]
|
||||||
|
index_selector = "#writings"
|
||||||
|
section = "writings"
|
||||||
|
index_item_template = """
|
||||||
|
<p><a href="{{url}}">{{title}}</a>
|
||||||
|
<br>{{abstract}}</p>
|
||||||
|
"""
|
|
@ -1,34 +0,0 @@
|
||||||
--- soupault.toml 2025-06-13 19:27:38.166061625 -0400
|
|
||||||
+++ acl.cool/soupault.toml 2025-06-13 19:34:23.112853727 -0400
|
|
||||||
@@ -134,3 +134,31 @@
|
|
||||||
# By default this widget deletes all elements matching the selector,
|
|
||||||
# but you can set this option to false to delete just the first one
|
|
||||||
delete_all = true
|
|
||||||
+
|
|
||||||
+[index]
|
|
||||||
+index = true
|
|
||||||
+# sort_descending = true
|
|
||||||
+# sort_type = "calendar"
|
|
||||||
+# date_formats = ["%F"]
|
|
||||||
+# strict_sort = true
|
|
||||||
+
|
|
||||||
+[index.fields]
|
|
||||||
+
|
|
||||||
+[index.fields.title]
|
|
||||||
+selector = ["h1"]
|
|
||||||
+
|
|
||||||
+# [index.fields.date]
|
|
||||||
+# selector = ["time"]
|
|
||||||
+# extract_attribute = "datetime"
|
|
||||||
+# fallback_to_content = true
|
|
||||||
+
|
|
||||||
+[index.fields.abstract]
|
|
||||||
+selector = ["p"]
|
|
||||||
+
|
|
||||||
+[index.views.writings-index]
|
|
||||||
+index_selector = "#writings"
|
|
||||||
+section = "writings"
|
|
||||||
+index_item_template = """
|
|
||||||
+ <p><a href="{{url}}">{{title}}</a>
|
|
||||||
+ <br>{{abstract}}</p>
|
|
||||||
+ """
|
|
7
build.sh
7
build.sh
|
@ -1,10 +1,17 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
function soup_config {
|
||||||
|
cat ../soupault.toml > soupault.toml
|
||||||
|
cat soupault.toml.frag* >> soupault.toml
|
||||||
|
}
|
||||||
|
|
||||||
builtin pushd acl.cool
|
builtin pushd acl.cool
|
||||||
rm -rf serve/
|
rm -rf serve/
|
||||||
|
soup_config
|
||||||
soupault
|
soupault
|
||||||
popd
|
popd
|
||||||
builtin pushd ytheleus.org
|
builtin pushd ytheleus.org
|
||||||
rm -rf serve/
|
rm -rf serve/
|
||||||
|
soup_config
|
||||||
soupault
|
soupault
|
||||||
popd
|
popd
|
||||||
|
|
|
@ -104,7 +104,8 @@ page_character_encoding = "utf-8"
|
||||||
# that converts it to HTML and writes it to standard output.
|
# that converts it to HTML and writes it to standard output.
|
||||||
# Example:
|
# Example:
|
||||||
[preprocessors]
|
[preprocessors]
|
||||||
dj = "pandoc -r djot -w html"
|
# dj = "pandoc -r djot -w html"
|
||||||
|
dj = "jotdown"
|
||||||
|
|
||||||
# Pages can be further processed with "widgets"
|
# Pages can be further processed with "widgets"
|
||||||
|
|
||||||
|
@ -134,3 +135,9 @@ selector = "blink"
|
||||||
# By default this widget deletes all elements matching the selector,
|
# By default this widget deletes all elements matching the selector,
|
||||||
# but you can set this option to false to delete just the first one
|
# but you can set this option to false to delete just the first one
|
||||||
delete_all = true
|
delete_all = true
|
||||||
|
|
||||||
|
[widgets.syntax]
|
||||||
|
widget = "preprocess_element"
|
||||||
|
selector = 'pre code'
|
||||||
|
# command = "echo \"<code>$(awk -F \\- '{print $NF}' <<< $ATTR_CLASS)</code>\""
|
||||||
|
command = 'highlight -O html -f --inline-css --syntax=ocaml --style=zellner'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue