Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ github_username: civictechto

timezone: America/Toronto
future: true
page_excerpts: true

include:
- _pages
Expand Down
3 changes: 2 additions & 1 deletion _includes/jsonld.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,12 @@
"url": {{ page.url | absolute_url | jsonify }}

{% elsif page_tags contains "type/meetup" %}
{% assign meetup_description = page.description | default: page.content | strip_html | strip_newlines | truncatewords: 50 %}
"@type": "Event",
"name": {{ page.title | jsonify }},
"startDate": "{{ page.date }}",
"endDate": "{{ page.date }}",
"description": {{ page.description | strip_html | strip_newlines | jsonify }},
"description": {{ meetup_description | jsonify }},
{% if page.venue %}
"location": {
"@type": "Place",
Expand Down
3 changes: 0 additions & 3 deletions _layouts/project.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ <h1>{{ page.title }}</h1>
<div class="main-with-sidebar">
<div class="main-content">
<section class="project-description">
{% if page.description %}
<p>{{ page.description }}</p>
{% endif %}
{{ content }}
</section>
</div>
Expand Down
7 changes: 2 additions & 5 deletions _layouts/resource.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,13 @@
<header>
<hgroup>
<h1>{{ page.title }}</h1>
{% if page.excerpt %}
<p>{{ page.excerpt }}</p>
{% if page.description %}
<p>{{ page.description }}</p>
{% endif %}
</hgroup>
</header>

<section class="resource-details">
{% if page.description %}
<p>{{ page.description }}</p>
{% endif %}

{% if page.website %}
<p>
Expand Down