From b015cc8fa499378a4da34532c342a28c2ade1b30 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Wed, 3 Apr 2019 15:33:04 +0200 Subject: [PATCH] Cleanup: Remove URL from category_list_header component. --- src/templates/films.pug | 2 +- src/templates/learn.pug | 2 +- src/templates/mixins/components.pug | 11 ++++++----- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/templates/films.pug b/src/templates/films.pug index b5e444f..5b916fb 100644 --- a/src/templates/films.pug +++ b/src/templates/films.pug @@ -23,7 +23,7 @@ include mixins/components | {% block body %} .container.py-4 - +category_list_header('{{ page_title }}', '{{ page_description }}', '{{ request.url }}') + +category_list_header('{{ page_title }}', '{{ page_description }}') .row.films-list | {% for project in projects %} diff --git a/src/templates/learn.pug b/src/templates/learn.pug index 42168c4..717c2c7 100644 --- a/src/templates/learn.pug +++ b/src/templates/learn.pug @@ -17,7 +17,7 @@ include mixins/components | {% block body %} .container.py-4 - +category_list_header('{{ page_title }}', '{{ page_description }}', '{{ request.url }}') + +category_list_header('{{ page_title }}', '{{ page_description }}') +category_list_item( 'COURSES', diff --git a/src/templates/mixins/components.pug b/src/templates/mixins/components.pug index ae4c037..c1b540c 100644 --- a/src/templates/mixins/components.pug +++ b/src/templates/mixins/components.pug @@ -1,10 +1,11 @@ -//- Category listing header (Learn, Libraries, etc). -mixin category_list_header(title, text, url) +//- Category listing (Learn, Libraries, etc). +//- Header +mixin category_list_header(title, text) .row.pt-2 .col-md-9 - a.d-block.py-2.text-secondary(href=url, title=title) - h1.text-uppercase.font-weight-bold - =title + h1.py-2.text-uppercase.font-weight-bold + =title + .lead =text