pawroman / zola-theme-terminimal

A simple, minimal retro theme for Zola
https://pawroman.github.io/zola-theme-terminimal/
Other
346 stars 76 forks source link

Is it possible to add like more text to the index page? #55

Closed jh-devv closed 3 weeks ago

jh-devv commented 10 months ago

Maybe like someway to tag a blog to always show as the latest?

jh-devv commented 10 months ago

Screenshot_20230901_131435 Basically maybe something like this?

pawroman commented 6 months ago

Hmm, I'm not sure if having a "pinned" post would be the best solution here.

A simple solution that doesn't need any extra development for the theme itself: you could inherit the theme's index.html template and override the content block, to add some extra content before all the posts, followed by {{ super() }} to render the "base" content block.

See Zola's docs for some hints on this https://www.getzola.org/documentation/themes/extending-a-theme/

And also see Tera docs (the template engine that Zola uses) https://keats.github.io/tera/docs/#child-template

heitorPB commented 6 months ago

I created a new template for my landing page: heitorpb.github.io. Then I created a content/_index.md that uses that template.

pawroman commented 3 weeks ago

@jh-devv Does the above solve it for you?

jh-devv commented 3 weeks ago

@jh-devv Does the above solve it for you?

Yea, thanks very much!