decent template for our websites #188
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
we need a decent template we can use for all our websites and later for our customers, the output needs to be clean html/js.
requirements
remarks
possible alternative = SvelteKit
possible alternative 2 = Astro
tips Zola
Using Markdown Render Hooks (For Advanced Customization)
Zola supports render hooks for customizing how specific elements (like images or links) are processed.
in config
📂 templates/shortcodes/figure.html
Then in markdown:
Step by step
for the template
1. Create the Shortcode (HTML Template)
2. Define the CSS Styles
To ensure proper formatting, add styles for figure elements in your CSS file (e.g., static/style.css or your main stylesheet):
3. Use the Shortcode in index.md (or Any Markdown File)
{{ figure(src="path/to/image.jpg", caption="An image component") }}
This will automatically generate the styled HTML structure from Step 1.
Summary
1️⃣ Create the HTML shortcode (figure.html).
2️⃣ Style it using CSS and make sure the stylesheet is linked in your theme.
3️⃣ Use the shortcode inside your Markdown files (e.g., index.md).
did quite some more research
why
the eventual goal is, people write some markdown, and the framework populates HTML site which can then be served over myceliym using an flist