Skip to content

Commit 3cfa0dd

Browse files
committed
Add preview field to YAML front matter for posts
This is a step toward issue #34. Currently, only issue 1 of volume 2 has the preview text, but eventually all past issues should have it.
1 parent 49972ef commit 3cfa0dd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

_includes/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
{% if page.title %}
4040
<meta property="og:title" content="{{ page.title }}" />
41-
<meta property="og:description" content="{{ page.excerpt | normalize_whitespace | strip_html | truncatewords: 40 }}"/>
41+
<meta property="og:description" content="{% if page.preview %}{{ page.preview }}{% else %}{{ page.excerpt | normalize_whitespace | strip_html | truncatewords: 40 }}{% endif %}"/>
4242
{% else %}
4343
<meta property="og:title" content="{{ site.title }}" />
4444
<meta property="og:description" content="{{ site.description }}" />

_posts/2020-05-01-issue-1.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ image:
88
caption: Chris Smalls and essential workers talking the talk, walking the walk out.
99
source_link: https://twitter.com/Shut_downAmazon/status/1255681771292721158
1010
half_width: false
11+
preview: "The TWC newsletter is back, with a special May Day edition!"
1112
---
1213

1314
Today is May Day, International Workers Day, and [#EssentialWorkersDay](https://twitter.com/search?q=%23EssentialWorkersDay). As the coronavirus pandemic continues, it becomes increasingly clear how much our economy depends on the workers who have been deemed “essential”. Yet these workers are rarely given the protective equipment they need — not to mention decent wages or benefits — proving that “essential” really means “sacrificial”. Chris Smalls, an Amazon warehouse worker and organizer fired last month, shared a [video montage](https://twitter.com/Shut_downAmazon/status/1255681771292721158) with dozens of essential workers protesting for better working conditions at Instacart, Shipt, Amazon warehouses, and your neighborhood Whole Foods. Today, they are on strike with a [list of demands](https://docs.google.com/document/d/1KD8uaVch14xBD1TTZ-TKbAub-IcqERS6O1OVeL2HbtY/edit).

0 commit comments

Comments
 (0)