File tree Expand file tree Collapse file tree 4 files changed +48
-4
lines changed
tbx/project_styleguide/templates/patterns/pages Expand file tree Collapse file tree 4 files changed +48
-4
lines changed Original file line number Diff line number Diff line change 1
1
{% extends "patterns/base_page.html" %}
2
- {% load wagtailcore_tags wagtailimages_tags %}
2
+ {% load wagtailcore_tags wagtailimages_tags util_tags static %}
3
+
4
+ {% block extra_css %}
5
+ {{ block.super }}
6
+ {% if page.body|has_gist_block %}
7
+ < link rel ="stylesheet " type ="text/css " href ="{% static 'css/gist.css' %} ">
8
+ {% endif %}
9
+
10
+ {% if page.body|has_markdown_block %}
11
+ < link rel ="stylesheet " type ="text/css " href ="{% static 'css/codehilite.css' %} ">
12
+ {% endif %}
13
+ {% endblock %}
3
14
4
15
{% block content %}
5
16
< div class ="grid mt-spacerMedium lg:mt-spacerLarge ">
Original file line number Diff line number Diff line change 1
1
{% extends "patterns/base_page.html" %}
2
- {% load wagtailcore_tags wagtailimages_tags static %}
2
+ {% load wagtailcore_tags wagtailimages_tags util_tags static %}
3
+
4
+ {% block extra_css %}
5
+ {{ block.super }}
6
+ {% if page.body|has_gist_block %}
7
+ < link rel ="stylesheet " type ="text/css " href ="{% static 'css/gist.css' %} ">
8
+ {% endif %}
9
+
10
+ {% if page.body|has_markdown_block %}
11
+ < link rel ="stylesheet " type ="text/css " href ="{% static 'css/codehilite.css' %} ">
12
+ {% endif %}
13
+ {% endblock %}
3
14
4
15
{% block content %}
5
16
< div class ="grid grid--spacer-large streamfield ">
Original file line number Diff line number Diff line change 1
1
{% extends "patterns/base_page.html" %}
2
- {% load wagtailcore_tags wagtailimages_tags static %}
2
+ {% load wagtailcore_tags wagtailimages_tags util_tags static %}
3
+
4
+ {% block extra_css %}
5
+ {{ block.super }}
6
+ {% if page.body|has_gist_block %}
7
+ < link rel ="stylesheet " type ="text/css " href ="{% static 'css/gist.css' %} ">
8
+ {% endif %}
9
+
10
+ {% if page.body|has_markdown_block %}
11
+ < link rel ="stylesheet " type ="text/css " href ="{% static 'css/codehilite.css' %} ">
12
+ {% endif %}
13
+ {% endblock %}
3
14
4
15
{% block content %}
5
16
< div class ="grid grid--spacer-large streamfield ">
Original file line number Diff line number Diff line change 1
1
{% extends "patterns/pages/work/work_page_base.html" %}
2
- {% load wagtailcore_tags wagtailimages_tags static %}
2
+ {% load wagtailcore_tags wagtailimages_tags util_tags static %}
3
+
4
+ {% block extra_css %}
5
+ {{ block.super }}
6
+ {% if page.body|has_gist_block %}
7
+ < link rel ="stylesheet " type ="text/css " href ="{% static 'css/gist.css' %} ">
8
+ {% endif %}
9
+
10
+ {% if page.body|has_markdown_block %}
11
+ < link rel ="stylesheet " type ="text/css " href ="{% static 'css/codehilite.css' %} ">
12
+ {% endif %}
13
+ {% endblock %}
3
14
4
15
{# The historical work pages did not have a separate intro - so we just loop over the body streamfield to find the intro block(s) #}
5
16
{% block intro %}
You can’t perform that action at this time.
0 commit comments