allow pages to supply extra footer text

This commit is contained in:
2022-09-16 13:31:43 -05:00
parent 21ea24ffa1
commit 0f03ad6f38
5 changed files with 24 additions and 2 deletions

View File

@@ -210,3 +210,11 @@ def test_pages_can_supply_alternate_templates(client):
response = client.get('/custom-template')
assert b'class="site-wrap site-wrap-normal-width"' not in response.data
assert b'class="site-wrap site-wrap-double-width"' in response.data
def test_extra_footer_per_page(client):
"""Test that we don't include the extra-footer if there isn't one (or do if there is)."""
response = client.get('/')
assert b'<div class="extra-footer">' not in response.data
response = client.get('/index-but-with-footer')
assert b'<div class="extra-footer"><i>ooo <a href="a">a</a></i>' in response.data

View File

@@ -0,0 +1,6 @@
Title: Index
Footer: ooo <a href="a">a</a>
# test index
this is some test content