This is a sample soupault blog setup that you can make your own.
You can edit this page content in site/index.rst
. For
example, greet your readers and introduce yourself and your blog.
Basics
-
The configuration is in the
soupault.toml
file. Make sure to read it and tweak it if you want. -
Page source files are in
site/
. -
The page template is in
templates/main.html
. -
The header and the footer are in
templates/header.html
andtemplates/footer.html
, respectively. -
Navigation menu link highlighting is done by the
section-link-highlight
plugin. -
Lua plugins are stored in
plugins/
. You can find more plugins at soupault.app/plugins.
〉 Styling
The CSS file is in site/style.css
. Soupault copies all
non-page files1 to the build/
directory
unchanged, so it doesn't need a dedicated assets directory.
〉 Dependencies
This setup uses pandoc for Markdown to HTML conversion. To build it locally, please make sure that pandoc is installed on your system.
You can switch to a different Markdown convertor or add convertors
for more formats in the [preprocessors]
section of
soupault.toml
. See the page
preprocessors section of the reference manual for details.
〉 Creating new posts
Create a new page under site/blog
, e.g.
site/blog/my-post.md
. Instead of "front matter", you will
use a custom HTML "microformat" for the metadata.2
In the simplest case it will look like this:
<post-metadata>
<post-title>My post</post-title>
<post-date>1970-01-01</post-date>
<post-tags>test, post</post-tags>
</post-metadata>
This is a post...
However, you can also embed those tags in the post content and still
have a generated header. See site/blog/second-post.md
for
an example.
〉 Latest posts
- 2023-03-14
- Logging data from arbitrary binary using Cheat Engine
- 2022-10-12
- OPNSense traffic shaping
- 2022-07-19
- My PlantUML example
- 1970-01-02
- My second post
- 1970-01-01
- My first post
- 1970-01-01
- My RST cheatsheet
- 1970-01-01