Skip to content

Make it possible for Sphinx themes, to provide their own templates for ablog to use! #125

@pradyunsg

Description

@pradyunsg

Currently, ablog unconditionally injects its own templates at the end of templates_path:

app.config.templates_path.append(get_html_templates_path())

These templates are injected by Sphinx before the theme-provided templates:

https://github.com/sphinx-doc/sphinx/blob/v4.4.0/sphinx/jinja2glue.py#L168


This means, there is no easy way for theme authors to provide explicit support for ablog in their theme, if they don't follow the assumptions that ablog makes in its own templates (see #108).

/cc @choldgraf, since he contributed the unconditional addition + has his own blog using ablog as well. :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions