diff --git a/config/filters.js b/config/filters.js
index c7f15719..2b5c17f7 100644
--- a/config/filters.js
+++ b/config/filters.js
@@ -15,9 +15,9 @@ module.exports = {
mdToHtml: (content) => {
return marked.parse(content)
},
- getFirstAttachment: (post) => {
- if (post && post['attachments'] && post['attachments'].length > 0) {
- return post['attachments'][0].url ? post['attachments'][0].url : post['attachments'][0]
+ getPostImage: (post) => {
+ if (post && post['image'] && post['image'] !== '') {
+ return post['image']
}
return '/assets/img/social-card.png'
diff --git a/src/_includes/base.liquid b/src/_includes/base.liquid
index 3a08a857..7f163229 100644
--- a/src/_includes/base.liquid
+++ b/src/_includes/base.liquid
@@ -15,7 +15,7 @@
-
+
+
+I block analytics, metrics, reporting and diagnostic logging.
+
+I block programmatic pleas to disable ad-blocking.
+
+I block the ping attribute on URLs.
+
+I block tracking beacons.
+
+I strip UTM campaign tags.
+
+I unshorten URLs.
+
+I block the page visibility API.
+
+I stop videos from autoplaying.
+
+I block prompts to install your app.
+
+I block all cookies that aren't strictly required for your site to function.
+
+I block email pixel trackers.
+
+I provide a masked email address.
+
+I unsubscribe from your mailing list (and block your address if I can't).
+
+I don't answer the phone unless you're in my contacts.
+
+I block and report SMS messages.
+
+I pay a company to wrangle data brokers.
+
+I throw your physical mail in the recycling without opening it and unsubscribe from it when I can.
+
+I block ads, and you should too.
+
+> "Let the products sell themselves
+> Fuck advertising, commercial psychology
+> Psychological methods to sell should be destroyed"
+> Minutemen, *Shit from an Old Notebook*, 1984
diff --git a/src/posts/posts.11tydata.js b/src/posts/posts.11tydata.js
index d927ee19..f26c63fc 100644
--- a/src/posts/posts.11tydata.js
+++ b/src/posts/posts.11tydata.js
@@ -1,4 +1,3 @@
-const { getFirstAttachment } = require('../../config/filters')
const md = require('markdown-it')()
const striptags = require('striptags')
@@ -21,7 +20,7 @@ module.exports = {
description: (data) => striptags(md.render(data.post_excerpt)),
url: (data) => data.url,
image: {
- src: (data) => data.post | getFirstAttachment,
+ src: '/assets/img/social-card.png',
},
author: {
name: 'Cory Dransfeldt',