A soft theme with lavender tones and a personal notebook feel. It comes with two collections: journal for longer, more polished articles and essays, and log for shorter, more informal notes, thoughts, and micro-entries. Wistaria is designed to be a cozy digital space for your writing, with a focus on readability and aesthetics.
lith theme pull github:NTBBloodbath/wistariaImportant
Wistaria requires a Norgolith build with this commit in order to work.
After installing, configure your site as described below. If you plan to modify the CSS, see the Tailwind Reloading section.
Add the following fields to your norgolith.toml:
# Categories directory
categoriesDir = 'library'
# Posts collections
# Journal: Longer, more polished articles and essays.
# Log: Shorter, more informal notes, thoughts, and micro-entries.
[[collections]]
name = 'journal'
dir = 'journal'
[[collections]]
name = 'log'
dir = 'log'
[extra]
license = "GPLv2" # Optional
favicon_path = "/assets/norgolith.svg" # Fallback to default favicon
footer_author_link = "https://github.com/NTBBloodbath" # Optional
enable_mermaid = true # Enable Mermaid.js for diagrams
[extra.nav]
Journal = '/journal'
Log = '/log'
Library = '/library'
# About = '/about'
[extra.footer]
# Link_name = "url"
# GitHub = "https://github.com/NTBBloodbath/norgolith"
# Tag colors: accepts either theme color tokens or raw CSS color values.
#
# Theme tokens (adapt automatically to dark mode):
# primary, secondary, green, blue, violet, yellow, red
#
# Raw CSS values (static, no dark mode adaptation):
# #rrggbb, rgb(...), hsl(...), oklch(...)
#
#[extra.tags]
#log = 'red'
#essay = 'primary'
#announcement = '#72ff47'Wistaria provides these templates:
templates
├── partials
│ ├── footer.html <- Footer content
│ └── nav.html <- Header navbar
├── base.html <- Main template (extends others)
├── library.html <- Categories list
├── book.html <- Category posts list
├── default.html <- Default template for all content
├── home.html <- Homepage
├── journal.html <- Journal collection
├── log.html <- Log collection
└── entry.html <- Blog post
To use a template, set the layout metadata in your content files. For example, in a journal/log post:
layout: entry
Tip
- The
librarytemplate is used for the categories listing page, and thebooktemplate is used for the category posts listing page. You can customize these templates to change how your categories and their posts are displayed. - Wistaria expects your journal entries in the
content/journaldirectory and your log entries in thecontent/logdirectory, as specified in thecollectionsconfiguration. Make sure to place your content files accordingly for them to be rendered with the correct templates.
Wistaria comes with opt-in support for MermaidJS flowcharts. You can use mermaid charts through embedded HTML in your norg content if you set the enable_mermaid option to true in the extra table of your configuration file:
@embed html
<pre class="mermaid">
flowchart LR
A[HTML Fragment] --> B[Tera Engine]
C[Validated Metadata] --> B
D[Site Config] --> B
E[Post Collection] --> B
B --> F[Layout Template]
F --> G[Final HTML]
</pre>
@end
Wistaria provides some additional styling options for blockquotes and code blocks that can be used with +html.class tags in your norg content.
tip(green)note(blue)important(violet)warning(yellow)error(red)
line-numbers- Adds line numbers to the code block.diff-highlight- Highlights added lines in green and removed lines in red (useful for diff outputs).
Wistaria provides a tags table in the configuration where you can assign colors to specific tags or categories. You can use either theme color tokens (like primary, secondary, red, etc.) or raw CSS color values (like #rrggbb, rgb(...), etc.). These colors will be applied to the corresponding tags/categories in your content. For example:
[extra.tags]
log = 'red'
essay = 'primary'
announcement = '#72ff47'
By default, Tailwind's configuration in Norgowind watches content files and templates. Each new class added to content using a +html.class tag will be included in the styling file.
For site development, install the TailwindCSS CLI and run:
tailwindcss -i theme/assets/css/tailwind.css -o theme/assets/css/styles.min.css --minify --watchContributions, issues, and feature requests are welcome! Feel free to open an issue or pull request.
Wistaria is licensed under MIT license.