Compare commits

...

5 commits

Author SHA1 Message Date
045ac235f1 fix build issue 2025-02-19 11:09:00 -07:00
5b6c96833a add callout examples to template 2025-02-19 11:07:48 -07:00
9d870a91cc update RSS and add template file for posts 2025-02-19 11:04:18 -07:00
Aaron Honeycutt
04512297c5
Create feed.xml 2025-02-19 11:01:10 -07:00
Aaron Honeycutt
005f162549
Update config.toml
add RSS button
2025-02-19 10:42:29 -07:00
3 changed files with 57 additions and 1 deletions

View file

@ -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,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/feed.xml" },
]
force_theme = false # false | "light" | "dark"

23
content/posts/template.md Normal file
View file

@ -0,0 +1,23 @@
+++
title = "Something Something Dark side"
date = 2100-01-01
draft = true
[taxonomies]
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!
````

32
templates/feed.xml Normal file
View file

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{{ lang }}">
<title>{% if section.title %}{{ section.title }}{% else %}{{ config.title }}{% endif %}</title>
{%- if section.description %}
<subtitle>{{ section.description }}</subtitle>
{%- elif config.description %}
<subtitle>{{ config.description }}</subtitle>
{%- endif %}
<link href="{{ feed_url | safe }}" rel="self" type="application/atom+xml"/>
<link href="
{%- if section -%}
{{ section.permalink | escape_xml | safe }}
{%- else -%}
{{ config.base_url | escape_xml | safe }}
{%- endif -%}
"/>
<updated>{{ last_updated | date(format="%+") }}</updated>
<id>{{ feed_url | safe }}</id>
{%- for page in pages %}
<entry xml:lang="{{ page.lang }}">
<title>{{ page.title }}</title>
<published>{{ page.date | date(format="%+") }}</published>
<updated>{{ page.updated | default(value=page.date) | date(format="%+") }}</updated>
{%- if page.summary %}
<summary>{{ page.summary }}</summary>
{%- endif %}
<link href="{{ page.permalink | safe }}" type="text/html"/>
<id>{{ page.permalink | safe }}</id>
<content type="html">{{ page.content }}</content>
</entry>
{%- endfor %}
</feed>