-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloss.html
52 lines (41 loc) · 2.52 KB
/
loss.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{% extends "_project-base.html" %}
{% from './subtemplates/_macros.html' import add_author with context %}
{# THIS MATTERS MOST. IT CHANGES WHICH STUFF GETS PULLED IN #}
{% set part = 'conservation' %}
{# VIDEO BLOCKS #}
{% set show_video_bool = True %}
{% block video_poster %}{{ part }}{% endblock video_poster %}
{% block video_file_name %}{{ part }}{% endblock video_file_name %}
{% block mobile_image_alt_text %}{{ headlines[part ~ "_mobile_alt_text"]['value']|process_text2(False) }}{% endblock mobile_image_alt_text %}
{% block video_credit %}{{ headlines[part ~ "_video_credit"]['value']|process_text2(False) }}{% endblock video_credit %}
{# TEXT BLOCKS #}
{% block headline %}{{ headlines[part ~ "_headline"]['value'] }}{% endblock headline %}
{% block dek %}{{ headlines[part ~ "_dek"]['value'] }}{% endblock dek %}
{% block byline %}
{{ add_author("Patrick M. O'Connell", "poconnell@chicagotribune.com")|trim }},
{{ add_author("Cecilia Reyes", "creyes@chicagotribune.com")|trim }},
{{ add_author("Ted Gregory", "tgregory@chicagotribune.com")|trim }} and
{{ add_author("Angela Caputo", False)|trim }}
{% endblock byline%}
{% block opengraph_story_specific scoped %}
<meta property="og:title" content="{{ headlines[part ~ '_dek']['value'] }}" />
<meta property="og:description" content="{{ headlines[part ~ '_og_description']['value'] }}" />
<meta property="og:image" content="{{ headlines[part ~ '_thumb']['value'] }}" />
<meta property="og:image:alt" content="{{ headlines[part ~ '_thumb_alt_text']['value'] }}" />
<meta name="description" content="{{ headlines[part ~ '_seo_description']['value'] }}" />
<meta name="twitter:title" content="{{ title }} | {{ headlines[part ~ '_dek']['value'] }}" />
<meta name="twitter:description" content="{{ headlines[part ~ '_og_description']['value'] }}" />
<meta name="twitter:image" content="{{ headlines[part ~ '_thumb']['value'] }}" />
<meta name="twitter:image:alt" content="{{ headlines[part ~ '_thumb_alt_text']['value'] }}" />
{% endblock opengraph_story_specific %}
{# SOCIAL MEDIA BUTTONS #}
{% block tweet %}{{ headlines[part ~ '_twitter']['value'] }}{% endblock tweet %}
{% block facebook %}{{ headlines[part ~ '_og_description']['value']|urlencode }}{% endblock facebook %}
{% block story %}
{%- for story in stories[part] %}
{% set s = story %}
{% include 'subtemplates/_story-loop.html' %}
{% endfor -%}
{% endblock %}
{# META KEYWORDS #}
{% block keywords %}{{ headlines[part ~ '_seo_keywords']['value'] }}{% endblock %}