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

Extend the default _footer.html template #2410

Open
king7532 opened this issue Aug 25, 2024 · 0 comments · May be fixed by #2411
Open

Extend the default _footer.html template #2410

king7532 opened this issue Aug 25, 2024 · 0 comments · May be fixed by #2411

Comments

@king7532
Copy link

To add custom content to the default Datasette _footer.html template:

templates/_footer.html:

{% extends "default:_footer.html" %} 
{% block footer_content %}
<div>
  <a href="/terms-conditions">Terms and Conditions</a>
  <a href="/privacy-policy">Privacy Policy</a>
</div>
{{ super() }} 
{% endblock %}

Start Datasette with: datasette --template-dir templates/

king7532 added a commit to king7532/datasette that referenced this issue Aug 25, 2024
…nded and included in a custom _footer template. Fixes simonw#2410
@king7532 king7532 linked a pull request Aug 25, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant