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
@despiegk me and ehab did some research and took a look at astro
and i think astro is complicated for marketingpeople to use.
it would be easier for non tech people to edit website content if we just use the old way :
zola + tailwind css + markdown shortcodes
1️⃣ Create the HTML shortcodes
2️⃣ Style it using CSS and make sure the stylesheet is linked in our theme/templates.
3️⃣ Use the shortcode inside our Markdown files (e.g., index.md).
As I understand, we want to create a hero astro feature so it is easy to create website and docs with astro, using the hero astro feature and basic markdown.
For e.g., see this basic cfg for docusaurus: https://git.ourworld.tf/tfgrid/docs_tfgrid4/src/branch/main/aibox/cfg
So we could go with astro starlight for docs, and astro wind for website. Wdyt? @sashaastiadi