allow markdown files to specify a redirect

closes #13
This commit is contained in:
2021-06-06 22:24:35 -05:00
parent 27bb139a2b
commit 954f7f4e80
3 changed files with 44 additions and 24 deletions

View File

@@ -112,6 +112,13 @@ def test_page_with_forced_empty_title_just_shows_suffix(client):
assert b'<title>incorporeal.org</title>' in response.data
def test_page_with_redirect_meta_url_redirects(client):
"""Test that if a page specifies a URL to redirect to, that the site serves up a 301."""
response = client.get('/redirect')
assert response.status_code == 301
assert response.location == 'http://www.google.com/'
def test_page_has_modified_timestamp(client):
"""Test that pages have modified timestamps in them."""
response = client.get('/')

View File

@@ -0,0 +1 @@
Redirect: http://www.google.com/