diff --git a/plugins/filters.py b/plugins/filters.py index 450a135..402954d 100644 --- a/plugins/filters.py +++ b/plugins/filters.py @@ -28,13 +28,13 @@ def limit(line, length): def get_title(instance): return ( get_attribute(instance, 'title') or (hasattr(instance, 'page') and get_attribute(instance.page, 'name')) or get_attribute(instance, 'name') or '' - ).title() + ) def get_html_title(instance): return ( get_attribute(instance, 'html_title') or get_title(instance) - ).title() + ) def get_image(instance): diff --git a/tests/tests_common.py b/tests/tests_common.py index 3d6c70d..b935074 100644 --- a/tests/tests_common.py +++ b/tests/tests_common.py @@ -51,7 +51,7 @@ class CommonPagesTestCase(TestCase): def test_footer_links(self): content = self.client.get('index.html') footer = content.footer - for link in footer.find('p', class_="social").find_all('a'): + for link in footer.find('h2', class_="social").find_all('a'): self.assertIn(link.attrs['alt'], social_settings['footer_accounts']) self.assertIn("fa fa-", str(list(link.children)[0])) diff --git a/theme/static/src/scss/footer.scss b/theme/static/src/scss/footer.scss index 48397d8..abe2c35 100644 --- a/theme/static/src/scss/footer.scss +++ b/theme/static/src/scss/footer.scss @@ -28,8 +28,8 @@ footer { } .social { - margin-bottom: 25px; margin-top: 0; + margin-bottom: 25px; a { margin: 0 5px; diff --git a/theme/static/src/scss/functional.scss b/theme/static/src/scss/functional.scss index 888e88e..58c9665 100644 --- a/theme/static/src/scss/functional.scss +++ b/theme/static/src/scss/functional.scss @@ -12,7 +12,7 @@ } .outer-gutter { - padding: 0 $grid-gutter-width / 2; @extend .no-gutter; + padding: 0 $grid-gutter-width / 2; } diff --git a/theme/templates/extras/footer.html b/theme/templates/extras/footer.html index 0aa81d3..55bd473 100644 --- a/theme/templates/extras/footer.html +++ b/theme/templates/extras/footer.html @@ -4,7 +4,7 @@

{% for link in FOOTER_LINKS %} - + {% endfor %}