Skip to content

Extend the default _footer.html template #2410

@king7532

Description

@king7532

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions