Cleanup: Remove URL from category_list_header component.

This commit is contained in:
2019-04-03 15:33:04 +02:00
parent 3be54da5c3
commit b015cc8fa4
3 changed files with 8 additions and 7 deletions

View File

@@ -23,7 +23,7 @@ include mixins/components
| {% block body %} | {% block body %}
.container.py-4 .container.py-4
+category_list_header('{{ page_title }}', '{{ page_description }}', '{{ request.url }}') +category_list_header('{{ page_title }}', '{{ page_description }}')
.row.films-list .row.films-list
| {% for project in projects %} | {% for project in projects %}

View File

@@ -17,7 +17,7 @@ include mixins/components
| {% block body %} | {% block body %}
.container.py-4 .container.py-4
+category_list_header('{{ page_title }}', '{{ page_description }}', '{{ request.url }}') +category_list_header('{{ page_title }}', '{{ page_description }}')
+category_list_item( +category_list_item(
'COURSES', 'COURSES',

View File

@@ -1,10 +1,11 @@
//- Category listing header (Learn, Libraries, etc). //- Category listing (Learn, Libraries, etc).
mixin category_list_header(title, text, url) //- Header
mixin category_list_header(title, text)
.row.pt-2 .row.pt-2
.col-md-9 .col-md-9
a.d-block.py-2.text-secondary(href=url, title=title) h1.py-2.text-uppercase.font-weight-bold
h1.text-uppercase.font-weight-bold =title
=title
.lead .lead
=text =text