I have recently discovered Zola and Tera (Rust frameworks for statically-generated websites) and found them amazing.
I'm trying to filter specific category pages to display in a section on the same page. To illustrate, I wrote some code like…
I've found out you can use
{% set posts = get_taxonomy(kind="posts") %}
to retrieve a taxonomy but I'm clueless how to iterate over the terms of the taxonomy in for example single.html of this taxonomy.
I tried things like the following, but I…
I have a static site generated using Zola and I'm using GitHub Actions to do a build of my static site and publish that into a gh-pages branch of my repository. I have also configured my project to serve via GitHub pages using the gh-pages…
I tried the following, which I found in the Zola documentation but it didn't render anything. The Tera docs weren't rewarding either.
{% for post in section.pages %}
I'm thinking of publishing a photography blog.
Normally, a Static Site Generator generates the site pages based on .MD files and the linked images placed in an assets directory.
I'm looking for a Static Site Generator which can generated all the…
I try to add custom data to pages in Zola. My toml header looks something like this:
+++
title = "Some book"
authors = "Mr. A, Mrs. B"
url = "https://www.books.com/blabla"
cover = "isbn.jpg"
+++
I want to access the additional fields in my…
The problem
I'm new to Zola and its templating engine Tera, and I'm struggling with making my own Zola theme easily localizable, even providing some out-of-the-box translations for e.g. English and German. Zolas's fluent integration is not there yet…
I would like to be able to add to the list of published articles only documents that contain the variable publish = true in the file header.
I have added to each article the following lines in the header:
foo.md:
+++
title = "Foo"
date =…
I have a title like this in my Zola (which uses the Tera templating engine) website:
{% block title %}{% endblock %} - Newbyte's blog
This generates something like this:
Birds around the world - Newbyte's…
I have implemented a css only back to top button, but on shorter pages it shows when it is not needed.
.top {
position: sticky;
bottom: 9px;
padding: 9px;
place-self: end;
margin-top: 109vh;
font-weight:700;
border-radius: 9px;
…