Skip to content

Commit 1b55f04

Browse files
committed
Fixed up some simple typography issues.
1 parent ad4957e commit 1b55f04

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

web/app.py

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from flask_babel import Babel
66
import flask_assets as assets
7+
from typogrify.templatetags import jinja_filters as typogrify_filters
78

89
from webassets.filter import get_filter
910

@@ -15,6 +16,8 @@ def create_app(configfile=None):
1516

1617
app.config.from_object('web.config.Config')
1718

19+
app.jinja_env.filters['typogrify'] = typogrify_filters.typogrify
20+
1821
env = assets.Environment(app)
1922

2023
static_path = os.path.join(app.config['APP_PATH'], 'static')

web/templates/pages/about.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{% block page_content_class %}page__content--about{% endblock %}
88

99
{% 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>
1111
{% endblock %}
1212

1313
{% block page_content %}
@@ -50,7 +50,7 @@ <h2>{{ _('Organisers') }}</h2>
5050

5151
<p>
5252
{% for person in team['organisers'] %}
53-
<a href="{{ person.link }}">{{ person.name }}</a> {% if not loop.last %}<span class="separator">&bull;</span>{% endif %}
53+
<a href="{{ person.link }}">{{ person.name|typogrify|safe }}</a> {% if not loop.last %}<span class="separator">&bull;</span>{% endif %}
5454
{% endfor %}
5555
</p>
5656
</div>
@@ -63,7 +63,7 @@ <h2>{{ _('Organisers') }}</h2>
6363

6464
<p>
6565
{% for person in team['organisers'] %}
66-
<a href="{{ person.link }}">{{ person.name }}</a> {% if not loop.last %}<span class="separator">&bull;</span>{% endif %}
66+
<a href="{{ person.link }}">{{ person.name|typogrify|safe }}</a> {% if not loop.last %}<span class="separator">&bull;</span>{% endif %}
6767
{% endfor %}
6868
</p>
6969
</div>
@@ -73,7 +73,7 @@ <h2>{{ _('Volunteers') }}</h2>
7373

7474
<p>
7575
{% for person in team['volunteers'] %}
76-
<a href="{{ person.link }}">{{ person.name }}</a> {% if not loop.last %}<span class="separator">&bull;</span>{% endif %}
76+
<a href="{{ person.link }}">{{ person.name|typogrify|safe }}</a> {% if not loop.last %}<span class="separator">&bull;</span>{% endif %}
7777
{% endfor %}
7878
</p>
7979
</div>

web/templates/pages/code-of-conduct.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
{% 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>
1212
{% endblock %}
1313

1414
{% block page_content %}

web/templates/pages/guide.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{% block page_content_class %}page__content--guide{% endblock %}
88

99
{% block page_header %}
10-
<h1>{{ _('Welcome to Toronto') }}</h1>
10+
<h1>{{ _('Welcome to Toronto')|typogrify|safe }}</h1>
1111
<p>{% trans %}Here are some of our favorite spots around <strong>Ryerson University</strong>.{% endtrans %}</p>
1212
{% endblock %}
1313

web/templates/pages/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<li class="navigation__item"><a class="navigation__link" href="{{ url_for('pages.venue') }}">{{ _('Venue') }}</a></li>
1313
<li class="navigation__item"><a class="navigation__link" href="{{ url_for('pages.volunteer') }}">{{ _('Volunteer') }}</a></li>
1414
<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> #}
1616
</ul>
1717
</div>
1818

0 commit comments

Comments
 (0)