Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jh-devv opened this issue Sep 1, 2023 · 3 comments
Open

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

jh-devv opened this issue Sep 1, 2023 · 3 comments

Comments

@jh-devv
Copy link

jh-devv commented Sep 1, 2023

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

@jh-devv
Copy link
Author

jh-devv commented Sep 1, 2023

Screenshot_20230901_131435
Basically maybe something like this?

@pawroman
Copy link
Owner

pawroman commented Dec 18, 2023

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
Copy link
Contributor

heitorPB commented Dec 19, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants