Tarek Ziadé schrieb:
> Hello
>
> I have customized my Sphinx look and feel, by overriding layout.html
> like this:
>
> ====
> {% extends '!layout.html' %}
>
> {% block extrahead %}
> <link rel="stylesheet"
> href="{{ pathto('_static/mine.css', 1) }}"
> type="text/css" />
> {% endblock %}
> ====
>
> The problem is, some pages in Sphinx already override it, like:
> modindex.html
> so the css is not added in them, and I need to create custom templates
> for them too.
>
> Wouldn't it be better to have a dedicated block for customisation in the
> head, that is *never*
> used by any template provided by Sphinx, so the change can be applied to
> all pages ?
>
> Although I have seen that search.html in the trunk does not have this
> block anymore..
You're quite right that this is bad; the bug is in the templates overriding
extrahead, they should call ``super()`` properly to allow for content in
the parent template.
I'll fix this ASAP.
Georg
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en
-~----------~----~----~----~------~----~------~--~---