chore: cleanup and refactor
This commit is contained in:
parent
b6fb54ab98
commit
5295a6eacc
37 changed files with 285 additions and 356 deletions
|
@ -132,7 +132,7 @@ We use the [liquid.js render tag](https://liquidjs.com/tags/render.html) and pas
|
|||
---
|
||||
layout: main
|
||||
---
|
||||
{% render "partials/header.liquid", site: site, page: page, nav: nav %}
|
||||
{% render "partials/header.liquid", meta: meta, page: page, nav: nav %}
|
||||
{{ content }}
|
||||
{% render "partials/now/media-grid.liquid", data:artists, icon: "microphone-2", title: "Artists", shape: "square", count: 8, loading: 'eager' %}
|
||||
{% render "partials/now/media-grid.liquid", data:albums, icon: "vinyl", title: "Albums", shape: "square", count: 8, loading: 'lazy' %}
|
||||
|
|
|
@ -3,7 +3,7 @@ date: '2023-02-17'
|
|||
title: 'Workflows: handling inbound email on Fastmail with regular expressions (now featuring ChatGPT)'
|
||||
draft: false
|
||||
tags: ['Email', 'Fastmail', 'regular expressions', 'workflows', 'ChatGPT']
|
||||
image: /assets/img/og/fastmail-workflow.webp
|
||||
image: https://cdn.coryd.dev/blog/fastmail-workflow.jpg
|
||||
---
|
||||
|
||||
I've been using Fastmail for years now and have explored a number of different approaches to handling mail. I've approached it by creating rules targeting lists of top level domains, I've gone with no rules at all and a heavy-handed approach to unsubscribing from messages (operating under the idea that _everything_ warrants being seen and triaged) and I've even used HEY.<!-- excerpt -->[^1]
|
||||
|
|
|
@ -1,32 +0,0 @@
|
|||
const { getPostImage } = require('../../config/filters')
|
||||
const md = require('markdown-it')()
|
||||
const striptags = require('striptags')
|
||||
|
||||
module.exports = {
|
||||
eleventyComputed: {
|
||||
meta: {
|
||||
site: {
|
||||
name: 'Cory Dransfeldt',
|
||||
description:
|
||||
"I'm a software developer in Camarillo, California. I enjoy hanging out with my beautiful family and 4 rescue dogs, technology, automation, music, writing, reading and tv and movies.",
|
||||
url: 'https://coryd.dev',
|
||||
logo: {
|
||||
src: 'https://coryd.dev/assets/img/logo.webp',
|
||||
width: 2000,
|
||||
height: 2000,
|
||||
},
|
||||
},
|
||||
language: 'en-US',
|
||||
title: (data) => data.title,
|
||||
description: (data) => striptags(md.render(data.post_excerpt)),
|
||||
url: (data) => data.url,
|
||||
image: {
|
||||
src: (data) => data.image | getPostImage,
|
||||
},
|
||||
author: {
|
||||
name: 'Cory Dransfeldt',
|
||||
},
|
||||
published: (data) => data.date,
|
||||
},
|
||||
},
|
||||
}
|
Reference in a new issue