summaryrefslogtreecommitdiff
path: root/roles/jamdog/templates
diff options
context:
space:
mode:
Diffstat (limited to 'roles/jamdog/templates')
-rw-r--r--roles/jamdog/templates/header.html10
-rw-r--r--roles/jamdog/templates/jamdog.toml16
-rw-r--r--roles/jamdog/templates/nginx/feed.conf4
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;
+}