File tree 5 files changed +10
-7
lines changed
5 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 4
4
5
5
from flask_babel import Babel
6
6
import flask_assets as assets
7
+ from typogrify .templatetags import jinja_filters as typogrify_filters
7
8
8
9
from webassets .filter import get_filter
9
10
@@ -15,6 +16,8 @@ def create_app(configfile=None):
15
16
16
17
app .config .from_object ('web.config.Config' )
17
18
19
+ app .jinja_env .filters ['typogrify' ] = typogrify_filters .typogrify
20
+
18
21
env = assets .Environment (app )
19
22
20
23
static_path = os .path .join (app .config ['APP_PATH' ], 'static' )
Original file line number Diff line number Diff line change 7
7
{% block page_content_class %}page__content--about{% endblock %}
8
8
9
9
{% block page_header %}
10
- < h2 > {{ _("PyCon Canada is an initiative to strengthen the Canadian Python community.") }}</ h2 >
10
+ < h2 > {{ _("PyCon Canada is an initiative to strengthen the Canadian Python community.")|typogrify|safe }}</ h2 >
11
11
{% endblock %}
12
12
13
13
{% block page_content %}
@@ -50,7 +50,7 @@ <h2>{{ _('Organisers') }}</h2>
50
50
51
51
< p >
52
52
{% for person in team['organisers'] %}
53
- < a href ="{{ person.link }} "> {{ person.name }}</ a > {% if not loop.last %}< span class ="separator "> •</ span > {% endif %}
53
+ < a href ="{{ person.link }} "> {{ person.name|typogrify|safe }}</ a > {% if not loop.last %}< span class ="separator "> •</ span > {% endif %}
54
54
{% endfor %}
55
55
</ p >
56
56
</ div >
@@ -63,7 +63,7 @@ <h2>{{ _('Organisers') }}</h2>
63
63
64
64
< p >
65
65
{% for person in team['organisers'] %}
66
- < a href ="{{ person.link }} "> {{ person.name }}</ a > {% if not loop.last %}< span class ="separator "> •</ span > {% endif %}
66
+ < a href ="{{ person.link }} "> {{ person.name|typogrify|safe }}</ a > {% if not loop.last %}< span class ="separator "> •</ span > {% endif %}
67
67
{% endfor %}
68
68
</ p >
69
69
</ div >
@@ -73,7 +73,7 @@ <h2>{{ _('Volunteers') }}</h2>
73
73
74
74
< p >
75
75
{% for person in team['volunteers'] %}
76
- < a href ="{{ person.link }} "> {{ person.name }}</ a > {% if not loop.last %}< span class ="separator "> •</ span > {% endif %}
76
+ < a href ="{{ person.link }} "> {{ person.name|typogrify|safe }}</ a > {% if not loop.last %}< span class ="separator "> •</ span > {% endif %}
77
77
{% endfor %}
78
78
</ p >
79
79
</ div >
Original file line number Diff line number Diff line change 8
8
9
9
10
10
{% block page_header %}
11
- < h1 > {{ _('PyCon Canada is committed to providing a safe and welcoming atmosphere for all attendees.') }}</ h1 >
11
+ < h1 > {{ _('PyCon Canada is committed to providing a safe and welcoming atmosphere for all attendees.')|typogrify|safe }}</ h1 >
12
12
{% endblock %}
13
13
14
14
{% block page_content %}
Original file line number Diff line number Diff line change 7
7
{% block page_content_class %}page__content--guide{% endblock %}
8
8
9
9
{% block page_header %}
10
- < h1 > {{ _('Welcome to Toronto') }}</ h1 >
10
+ < h1 > {{ _('Welcome to Toronto')|typogrify|safe }}</ h1 >
11
11
< p > {% trans %}Here are some of our favorite spots around < strong > Ryerson University</ strong > .{% endtrans %}</ p >
12
12
{% endblock %}
13
13
Original file line number Diff line number Diff line change 12
12
< li class ="navigation__item "> < a class ="navigation__link " href ="{{ url_for('pages.venue') }} "> {{ _('Venue') }}</ a > </ li >
13
13
< li class ="navigation__item "> < a class ="navigation__link " href ="{{ url_for('pages.volunteer') }} "> {{ _('Volunteer') }}</ a > </ li >
14
14
< li class ="navigation__item "> < a class ="navigation__link " href ="{{ url_for('pages.sponsors') }} "> {{ _('Sponsors') }}</ a > </ li >
15
- <!-- <li class="navigation__item"><a class="navigation__link" href="{{ url_for('schedule.index') }}">{{ _('Schedule') }}</a></li> -->
15
+ {# < li class ="navigation__item "> < a class ="navigation__link " href ="{{ url_for('schedule.index') }} "> {{ _('Schedule') }}</ a > </ li > #}
16
16
</ ul >
17
17
</ div >
18
18
You can’t perform that action at this time.
0 commit comments