From ccfdccda082cbc60f6d0bc57d5eb0952db34335e Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Sat, 26 Nov 2022 02:26:23 -0500 Subject: [PATCH] Added feedjson, as2, and atom support --- config.toml | 48 +++++++++++++++++++++++++++++++++++++++++++++++- themes/pulp | 2 +- 2 files changed, 48 insertions(+), 2 deletions(-) diff --git a/config.toml b/config.toml index a016edf..a28423b 100644 --- a/config.toml +++ b/config.toml @@ -8,6 +8,9 @@ enableGitInfo = true series = "series" tags = "tags" +[author] + name = "Brandon Rozek" + [params] author = "Brandon Rozek" avatar = "avatar.jpg" @@ -20,8 +23,51 @@ enableGitInfo = true "https://fosstodon.org/@brozek" ] +[services.rss] + limit = 50 + +[mediaTypes."application/atom+xml"] + suffixes = ["atom"] + +[mediaTypes."application/activity+json"] + suffixes = ["ajson"] + +[mediaTypes."application/feed+json"] + suffixes = ["json"] + +[outputFormats.Atom] + name = "Atom" + mediaType = "application/atom+xml" + baseName = "index" + isPlainText = false + rel = "alternate" + isHTML = false + noUgly = true + permalinkable = false + +[outputFormats.AS2] + name = "AS2" + mediaType = "application/activity+json" + baseName = "index" + isPlainText = false + rel = "alternate" + isHTML = false + noUgly = true + permalinkable = false + +[outputFormats.feedjson] + name = "feedjson" + mediaType = "application/feed+json" + baseName = "feed" + isPlainText = false + rel = "alternate" + isHTML = false + noUgly = true + permalinkable = false + + [outputs] - section = ["JSON", "HTML", "RSS"] + section = ["JSON", "HTML", "RSS", "Atom", "AS2", "feedjson"] page = ["HTML", "AMP"] [[menu.main]] diff --git a/themes/pulp b/themes/pulp index a574a12..8513bec 160000 --- a/themes/pulp +++ b/themes/pulp @@ -1 +1 @@ -Subproject commit a574a122a48cca0c5bd3cfdb31a238077538e245 +Subproject commit 8513bece813f972dae03fc7ca6344b1f20744839