From e8bd3221bf1646b850af67983f452ed45decea87 Mon Sep 17 00:00:00 2001 From: John Mazzitelli Date: Wed, 6 Dec 2023 14:29:13 -0500 Subject: [PATCH] medium rss changed --- layouts/shortcodes/blog.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/layouts/shortcodes/blog.html b/layouts/shortcodes/blog.html index 817cf498a..43aca561a 100644 --- a/layouts/shortcodes/blog.html +++ b/layouts/shortcodes/blog.html @@ -1,7 +1,5 @@ {{- $maxBlogPosts := 3 }} -{{/*expTimestamp: expire content every 1hour (6000s)*/}} -{{- $expTimestamp := div now.Unix 6000 }} -{{- $mediumURL := printf "https://api.rss2json.com/v1/api.json?timestamp=%d&rss_url=https://medium.com/feed/kialiproject" $expTimestamp }} +{{- $mediumURL := "https://www.toptal.com/developers/feed2json/convert?url=https://medium.com/feed/kialiproject" }} {{- $json := getJSON $mediumURL }} {{- $posts := first $maxBlogPosts $json.items }} {{- $latestPost := index $json.items 1 }} @@ -18,7 +16,7 @@

{{ $img := .thumbnail }} {{ $title := .title }} {{ $author := .author }} - {{ $dateRaw := .pubDate }} + {{ $dateRaw := .date_published }} {{ $date := dateFormat "January 2, 2006" $dateRaw }} {{ $summary := .content | plainify | truncate 200 }}