diff options
| author | Joe Carstairs <me@joeac.net> | 2026-09-30 17:12:13 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-09-30 17:12:13 +0100 |
| commit | f671eda1a8c89910647b745de61cb07976dc1b4b (patch) | |
| tree | ddc19ccdf442f67cf0813298407f0d0f826b0f87 /roles/jamdog/templates | |
| parent | 54bbd2e9d716a18542431e04c3f829a39146dfce (diff) | |
scag update (now jamdog)
Diffstat (limited to 'roles/jamdog/templates')
| -rw-r--r-- | roles/jamdog/templates/header.html | 10 | ||||
| -rw-r--r-- | roles/jamdog/templates/jamdog.toml | 16 | ||||
| -rw-r--r-- | roles/jamdog/templates/nginx/feed.conf | 4 |
3 files changed, 30 insertions, 0 deletions
diff --git a/roles/jamdog/templates/header.html b/roles/jamdog/templates/header.html new file mode 100644 index 0000000..1e6ee30 --- /dev/null +++ b/roles/jamdog/templates/header.html @@ -0,0 +1,10 @@ +<nav> + <ul> + <li> + <a href=/>Home</a> + </li> + <li> + <a href=/{{ feed_rss_path }}>RSS</a> + </li> + </ul> +</nav> diff --git a/roles/jamdog/templates/jamdog.toml b/roles/jamdog/templates/jamdog.toml new file mode 100644 index 0000000..9eafa6c --- /dev/null +++ b/roles/jamdog/templates/jamdog.toml @@ -0,0 +1,16 @@ +subscriptions_path = "subscriptions.txt" + +[feed] +title = "Stuff that Joe Carstairs wants to read" +description = "Stuff that Joe Carstairs wants to read" +url = "https://joeac.net/feed" + +[output] +outfile_rss = "{{ http_files_dir }}/feed/{{ feed_rss_path }}" +outfile_html = "{{ http_files_dir }}/feed/{{ feed_html_path }}" +produce_formats = ["html", "rss"] +max_age = 31 + +[output.html] +head = "{{ feed_html_head }}" +header = "{{ feed_html_header }}" diff --git a/roles/jamdog/templates/nginx/feed.conf b/roles/jamdog/templates/nginx/feed.conf new file mode 100644 index 0000000..6f650ba --- /dev/null +++ b/roles/jamdog/templates/nginx/feed.conf @@ -0,0 +1,4 @@ +location /feed { + root {{ http_files_dir }}/feed; + try_files $uri $uri.xml $uri.rss $uri.atom $uri.rss.xml $uri.html $uri/index.html $uri.php $uri/index.php =404; +} |
