Skip to content

Commit 3dd5403

Browse files
authored
replace excerpt field with new summary field (#130)
1 parent 279756c commit 3dd5403

8 files changed

Lines changed: 23 additions & 23 deletions

File tree

_includes/jsonld.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
Requirements:
1414
- Pages should have appropriate tags in front matter
15-
- Optional fields supported: excerpt, description, dateActiveFirst, organization, venue, videoUrl, social.website, parent_organization, speakers, etc.
15+
- Optional fields supported: summary, description, dateActiveFirst, organization, venue, videoUrl, social.website, parent_organization, speakers, etc.
1616
- Uses Liquid's `jsonify` filter to safely escape string values
1717

1818
Note:
@@ -29,8 +29,8 @@
2929
{% if page_tags contains "type/project" %}
3030
"@type": "CreativeWork",
3131
"name": {{ page.title | jsonify }},
32-
{% if page.excerpt %}
33-
"description": {{ page.excerpt | strip_html | strip_newlines | jsonify }},
32+
{% if page.summary %}
33+
"description": {{ page.summary | strip_html | strip_newlines | jsonify }},
3434
{% endif %}
3535
{% if page.dateActiveFirst %}
3636
"dateCreated": "{{ page.dateActiveFirst }}",

_layouts/page.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
<header>
1414
<hgroup>
1515
<h1>{{ page.display_title | default: page.title }}</h1>
16-
{% if page.excerpt %}
17-
<p>{{ page.excerpt }}</p>
16+
{% if page.summary %}
17+
<p>{{ page.summary }}</p>
1818
{% endif %}
1919
</hgroup>
2020
</header>

_layouts/person.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
<header>
1515
<hgroup>
1616
<h1>{{ page.title }}</h1>
17-
{% if page.excerpt %}
18-
<p>{{ page.excerpt }}</p>
17+
{% if page.summary %}
18+
<p>{{ page.summary }}</p>
1919
{% endif %}
2020
</hgroup>
2121
</header>
@@ -85,8 +85,8 @@ <h2>Projects</h2>
8585
</footer>
8686
</article>
8787

88-
{% include backlinks.html
89-
collections=all_collections
88+
{% include backlinks.html
89+
collections=all_collections
9090
fields="team,speakers"
9191
title="Mentioned In"
9292
%}

_layouts/project.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
<header>
3838
<hgroup>
3939
<h1>{{ page.title }}</h1>
40-
{% if page.excerpt %}
41-
<p>{{ page.excerpt }}</p>
40+
{% if page.summary %}
41+
<p>{{ page.summary }}</p>
4242
{% endif %}
4343
</hgroup>
4444
</header>
@@ -81,7 +81,7 @@ <h2>Project Information</h2>
8181
{% if resolved_people.size > 0 %}
8282
<section>
8383
<h3>Related People</h3>
84-
84+
8585
<article>
8686
<ul>
8787
{% for person in resolved_people %}

_pages/feedback.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Share Your Feedback"
33
layout: page
44
permalink: "/feedback/"
5-
excerpt: "🔓 Help us make Civic Tech Toronto better. Responses are anonymous — we never collect names or emails — and are stored openly in a public GitHub repository."
5+
summary: "🔓 Help us make Civic Tech Toronto better. Responses are anonymous — we never collect names or emails — and are stored openly in a public GitHub repository."
66
---
77

88
<style>

_pages/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ permalink: "/"
178178
<div class="row-content">
179179
<div>
180180
<h3><a href="{{ project.url }}">{{ project.title }}</a></h3>
181-
{% if project.excerpt %}
182-
<p>{{ project.excerpt }}</p>
181+
{% if project.summary %}
182+
<p>{{ project.summary }}</p>
183183
{% endif %}
184184
{% if project.tags %}
185185
{% include topic-tags.html tags=project.tags %}

_pages/list-announcements.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ permalink: "/announcements/"
2727
{% endif %}
2828
</small>
2929
</p>
30-
{% if post.excerpt %}
31-
<p>{{ post.excerpt }}</p>
30+
{% if post.summary %}
31+
<p>{{ post.summary }}</p>
3232
{% else %}
3333
<p>{{ post.content | strip_html | truncatewords: 30 }}</p>
3434
{% endif %}

_pages/list-projects.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ permalink: "/projects/"
4141
{% endif%}
4242
<div class="card-body">
4343
<h3><a href="{{ project.url }}">{{ project.title }}</a></h3>
44-
{% if project.excerpt %}
45-
<p>{{ project.excerpt }}</p>
44+
{% if project.summary %}
45+
<p>{{ project.summary }}</p>
4646
{% endif %}
4747
{% if project.tags %}
4848
{% include topic-tags.html tags=project.tags %}
@@ -88,8 +88,8 @@ permalink: "/projects/"
8888
{% endif%}
8989
<div>
9090
<h3><a href="{{ project.url }}">{{ project.title }}</a></h3>
91-
{% if project.excerpt %}
92-
<p>{{ project.excerpt }}</p>
91+
{% if project.summary %}
92+
<p>{{ project.summary }}</p>
9393
{% endif %}
9494
{% if project.tags %}
9595
{% include topic-tags.html tags=project.tags %}
@@ -137,8 +137,8 @@ permalink: "/projects/"
137137

138138
<div>
139139
<h3><a href="{{ project.url }}">{{ project.title }}</a></h3>
140-
{% if project.excerpt %}
141-
<p>{{ project.excerpt }}</p>
140+
{% if project.summary %}
141+
<p>{{ project.summary }}</p>
142142
{% endif %}
143143
{% if project.tags %}
144144
{% include topic-tags.html tags=project.tags %}

0 commit comments

Comments
 (0)