From 2a956690de3a5d2d25183ee88142499bae72e955 Mon Sep 17 00:00:00 2001 From: foo-dogsquared Date: Tue, 3 Sep 2019 15:42:40 +0800 Subject: [PATCH] Add the feeds for my blog --- config.toml | 31 +++++++++++++++++++++++++++---- content/feeds.adoc | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+), 4 deletions(-) create mode 100644 content/feeds.adoc diff --git a/config.toml b/config.toml index 615614b..0f47ff5 100644 --- a/config.toml +++ b/config.toml @@ -1,4 +1,4 @@ -baseURL = "https://foo-dogsquared.github.io/blog" +baseURL = "https://foo-dogsquared.github.io/blog/" languageCode = "en-us" title = "A Hack's Code" description = "A blog of a hack." @@ -15,6 +15,28 @@ canonifyURLs = true alias = "foo-dogsquared" email = "foo.dogsquared@gmail.com" +[mediaTypes] + [mediaTypes."application/atom+xml"] + suffixes = ["atom"] + + [mediaTypes."application/rss+xml"] + suffixes = ["rss"] + +[outputFormats] + [outputFormats.RSS] + mediaType = "application/rss+xml" + baseName = "index" + isPlainText = false + + [outputFormats.Atom] + mediaType = "application/atom+xml" + baseName = "index" + isPlainText = false + +[outputs] + home = ["HTML", "ATOM", "RSS", "JSON"] + section = ["HTML", "ATOM", "RSS", "JSON"] + [menu] [[menu.main]] identifier = "articles" @@ -32,9 +54,10 @@ canonifyURLs = true url = "archives/" [[menu.main]] - identifier = "rss" - name = "RSS" - url = "index.xml/" + identifier = "feeds" + name = "Feeds" + url = "feeds/" + [params] subtitle = "Computer Engineering Student" diff --git a/content/feeds.adoc b/content/feeds.adoc new file mode 100644 index 0000000..ee38740 --- /dev/null +++ b/content/feeds.adoc @@ -0,0 +1,36 @@ +--- +title: "Feeds" +date: 2019-09-03T15:05:29+08:00 +type: "feed" +--- + += Feeds +Gabriel Arazas +2019-09-03 + +Here's some of my feeds you can subscribe from: + +* **RSS**: https://foo-dogsquared.github.io/blog/index.rss +* **Atom**: https://foo-dogsquared.github.io/blog/index.atom +* **JSON**: https://foo-dogsquared.github.io/blog/index.json + +You can also be subscribed for specific sections with the +following URL: + +---- +https://foo-dogsquared.github.io/blog/$SECTION/index.$FEED +---- + +For example, this is the feed URL for my posts (pretty much this +is the only section available in my blog, for now): + +* **RSS**: https://foo-dogsquared.github.io/blog/posts/index.rss +* **Atom**: https://foo-dogsquared.github.io/blog/posts/index.atom +* **JSON**: https://foo-dogsquared.github.io/blog/posts/index.json + +// Or even in my projects, letting you know if there's any new +// project detailing comes up. + +// * **RSS**: https://foo-dogsquared.github.io/blog/projects/index.rss +// * **Atom**: https://foo-dogsquared.github.io/blog/projects/index.atom +// * **JSON**: https://foo-dogsquared.github.io/blog/projects/index.json