lenymo / glennmccomb-com

Hugo and Netlify CMS for my personal website.
https://glennmccomb.com
12 stars 8 forks source link

Set up Photography RSS feed and include photo #15

Closed lenymo closed 4 years ago

lenymo commented 5 years ago

Hugo has RSS out of the box but it doesn't include images or any post metadata besides date, title and description (the body of a .md file). Hugo's RSS documentation isn't overly helpful, but I found this article to be very helpful. The author appears to be the developer of the popular Hugo Academic theme, which has an example of a customised RSS feed. The article also includes links to various Hugo discourse threads.

lenymo commented 5 years ago

First attempt here: https://github.com/lenymo/glennmccomb-com/commit/103fb9c11e661336a089b3ece460c24a2865c870

This is dedicated to just the photography section. Don't want to customise existing articles RSS (not that it's being used anywhere).

lenymo commented 5 years ago

Here's an IFTTT example of tweeting with an image when an RSS feed udpates: https://ifttt.com/applets/267356p/edit

lenymo commented 4 years ago

It appears my RSS feed got blacklisted for spamming Twitter with all of my photos as tweets at the same time. Eventually, the IFTTT trigger started working and is now functional. Pro tip: when setting up a trigger like this, it's much better if you don't already have a ton of posts.