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

〉 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

  1. That is, files with extensions not mentioned in settings.page_file_extensions↩︎

  2. This isn't a built-in feature of soupault, but rather a feature of this blueprint, implemented with a mix of Lua plugins and soupault configuration. See plugins/post-header.lua and the [index] section in soupault.toml↩︎

Last modified: 2024-09-28