From 005f162549ec3a6c7d3e4d15f9436f81a8b18c83 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Wed, 19 Feb 2025 10:42:29 -0700 Subject: [PATCH 1/5] Update config.toml add RSS button --- config.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/config.toml b/config.toml index 3e6e787..1fab985 100644 --- a/config.toml +++ b/config.toml @@ -68,6 +68,7 @@ links = [ { name = "Mastodon", icon = "mastodon", url = "https://hachyderm.io/@ahoneybun" }, { name = "Linkedin", icon = "linkedin", url = "https://www.linkedin.com/in/athoneycutt/" }, { name = "Email", icon = "email", url = "mailto:aaronhoneycutt@proton.me>" }, + { name = "RSS", icon = "rss", url = "https://ahoneybun.net/rss.xml" }, ] force_theme = false # false | "light" | "dark" From 04512297c5cd6dc7c2d8b2d3e8fc363f3f4d14f2 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Wed, 19 Feb 2025 11:01:10 -0700 Subject: [PATCH 2/5] Create feed.xml --- templates/feed.xml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 templates/feed.xml diff --git a/templates/feed.xml b/templates/feed.xml new file mode 100644 index 0000000..f0c3f7e --- /dev/null +++ b/templates/feed.xml @@ -0,0 +1,32 @@ + + + {% if section.title %}{{ section.title }}{% else %}{{ config.title }}{% endif %} + {%- if section.description %} + {{ section.description }} + {%- elif config.description %} + {{ config.description }} + {%- endif %} + + + {{ last_updated | date(format="%+") }} + {{ feed_url | safe }} + {%- for page in pages %} + + {{ page.title }} + {{ page.date | date(format="%+") }} + {{ page.updated | default(value=page.date) | date(format="%+") }} + {%- if page.summary %} + {{ page.summary }} + {%- endif %} + + {{ page.permalink | safe }} + {{ page.content }} + + {%- endfor %} + From 9d870a91cccfdad1b223d972f488ce970f6a55f9 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Wed, 19 Feb 2025 11:04:18 -0700 Subject: [PATCH 3/5] update RSS and add template file for posts --- config.toml | 4 ++-- content/posts/template.md | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 content/posts/template.md diff --git a/config.toml b/config.toml index 1fab985..511ee1c 100644 --- a/config.toml +++ b/config.toml @@ -15,7 +15,7 @@ compile_sass = true minify_html = true build_search_index = false # Keep this false, search is temporarily unsupported generate_feeds = true # Whether to generate a feed file in root, read docs for more info about rss feed -feed_filenames = ["rss.xml"] # The file name of feed, "feed.xml" / "atom.xml" / "rss.xml", read docs for more info +feed_filenames = ["feed.xml"] # The file name of feed, "feed.xml" / "atom.xml" / "rss.xml", read docs for more info taxonomies = [{ name = "tags" }, { name = "categories" }] [markdown] @@ -68,7 +68,7 @@ links = [ { name = "Mastodon", icon = "mastodon", url = "https://hachyderm.io/@ahoneybun" }, { name = "Linkedin", icon = "linkedin", url = "https://www.linkedin.com/in/athoneycutt/" }, { name = "Email", icon = "email", url = "mailto:aaronhoneycutt@proton.me>" }, - { name = "RSS", icon = "rss", url = "https://ahoneybun.net/rss.xml" }, + { name = "RSS", icon = "rss", url = "https://ahoneybun.net/feed.xml" }, ] force_theme = false # false | "light" | "dark" diff --git a/content/posts/template.md b/content/posts/template.md new file mode 100644 index 0000000..dfac6c5 --- /dev/null +++ b/content/posts/template.md @@ -0,0 +1,9 @@ ++++ +title = "Something Something Dark side" +date = 2xxx-xx-xx +draft = true + +[taxonomies] +categories = [ "blog" ] +tags = [ "topic" ] ++++ From 5b6c96833a338ef2cedd1aca112ce64ab9996e6d Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Wed, 19 Feb 2025 11:07:48 -0700 Subject: [PATCH 4/5] add callout examples to template --- content/posts/template.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/content/posts/template.md b/content/posts/template.md index dfac6c5..f42ec02 100644 --- a/content/posts/template.md +++ b/content/posts/template.md @@ -7,3 +7,17 @@ draft = true categories = [ "blog" ] tags = [ "topic" ] +++ + +{% note(header="Note") %} +Hi! I'm a note! +{% end %} + +{% important(header="Important") %} +I'm more important! +{% end %} + +There are also `warning`, `tip` and `alert` to use as well! + +```nix +I'm a code block! +```` From 045ac235f1e7bb9aa65378337cca1fd52e5ed398 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Wed, 19 Feb 2025 11:09:00 -0700 Subject: [PATCH 5/5] fix build issue --- content/posts/template.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/posts/template.md b/content/posts/template.md index f42ec02..8fea98d 100644 --- a/content/posts/template.md +++ b/content/posts/template.md @@ -1,6 +1,6 @@ +++ title = "Something Something Dark side" -date = 2xxx-xx-xx +date = 2100-01-01 draft = true [taxonomies]