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

use your own jinja2 template for index.md and other files #7

Open
ctb opened this issue May 18, 2022 · 0 comments
Open

use your own jinja2 template for index.md and other files #7

ctb opened this issue May 18, 2022 · 0 comments
Labels
intermediate intermediate documentation for fine tuning ribbity

Comments

@ctb
Copy link
Collaborator

ctb commented May 18, 2022

ribbity uses jinja2 templating to build Markdown pages from GitHub issues.

It comes with several default templates: index.md, examples.md, and labels.md, as well as _generic_issue.md and _generic_label.md; you can see the default templates here.

You can override any of these templates by creating a directory site-templates/ within the directory where you're running ribbity, and putting an updated version of the template in that directory (with the same name). Templates in the site-templates/ directory will be read before the templates included with ribbity, and so will override them.

This is how projects like ribbity docs customize the main page, by providing their own index.md template.

Example templates

You can see some example templates at the following projects:

The jinja2 templating language

Please see the jinja2 template designer docs for information on jinja2 templates.

@ctb ctb added the intermediate intermediate documentation for fine tuning ribbity label May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
intermediate intermediate documentation for fine tuning ribbity
Projects
None yet
Development

No branches or pull requests

1 participant