mirror of
https://github.com/ahoneybun/ahoneybun.net.git
synced 2025-05-12 11:14:01 -06:00
Compare commits
5 commits
ab9ea30f8c
...
045ac235f1
Author | SHA1 | Date | |
---|---|---|---|
045ac235f1 | |||
5b6c96833a | |||
9d870a91cc | |||
![]() |
04512297c5 | ||
![]() |
005f162549 |
3 changed files with 57 additions and 1 deletions
|
@ -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
23
content/posts/template.md
Normal 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
32
templates/feed.xml
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue