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

Newbie question on adding extra content to footer #349

Closed
HTenkanen opened this issue Dec 16, 2016 · 2 comments
Closed

Newbie question on adding extra content to footer #349

HTenkanen opened this issue Dec 16, 2016 · 2 comments

Comments

@HTenkanen
Copy link

Hi, I'd like to add extra content to the footer of my website but don't quite know how to do it. I know there is the extrafooter block in footer.html (discussed here) but how can I add stuff to that from conf.py?

I would just love to add couple of Licence logos (CC 4.0 BY-SA and GPLv3) to the footer and have been searching for a solution to achieve that. Thanks, in advance!

@christianspecht
Copy link

This page in the Sphinx docs explains how to add stuff to an existing block.

For the extrafooter block, you need to put a new HTML file into your templates_path (usually /_templates), with the following content:

{% extends "!footer.html" %}
{% block extrafooter %}
    <p><a href="http://foo">new example link</a></p>
    {{ super() }}
{% endblock %}

Here's an example from a project of mine.

@Blendify
Copy link
Member

Blendify commented Mar 3, 2017

Please close this @ericholscher

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

4 participants