aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2024-12-23 21:30:20 +0000
committerMartin Ashby <martin@ashbysoft.com>2024-12-23 21:30:20 +0000
commit11855d91f77cf37062e3cba32bd7c3d63ed304a7 (patch)
tree09f38db6f889ade07ce10a55cf03e60d25abaf0a
parent82e7ac75954c973a5c59a02684788c0fb26e14dd (diff)
downloadmfashby.net-11855d91f77cf37062e3cba32bd7c3d63ed304a7.tar.gz
mfashby.net-11855d91f77cf37062e3cba32bd7c3d63ed304a7.tar.bz2
mfashby.net-11855d91f77cf37062e3cba32bd7c3d63ed304a7.tar.xz
mfashby.net-11855d91f77cf37062e3cba32bd7c3d63ed304a7.zip
Fix rss.xmlHEADmain
Allow override of host for deploy
-rwxr-xr-xdeploy.sh5
-rw-r--r--layouts/rss.xml22
2 files changed, 15 insertions, 12 deletions
diff --git a/deploy.sh b/deploy.sh
index 48f8c79..fb3d868 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -2,6 +2,7 @@
set -e
+HOST=${HOST:-rpi3}
# Build static site
zig build
@@ -14,7 +15,7 @@ zig build \
popd
# Copy static site
-rsync -rz zig-out/* root@rpi3:/var/www/mfashby.net
+rsync -rz zig-out/* root@$HOST:/var/www/mfashby.net
# Copy comments app
-rsync comments/zig-out/bin/comments root@rpi3:/usr/local/bin/comments
+rsync comments/zig-out/bin/comments root@$HOST:/usr/local/bin/comments
diff --git a/layouts/rss.xml b/layouts/rss.xml
index 838c747..fb4a317 100644
--- a/layouts/rss.xml
+++ b/layouts/rss.xml
@@ -1,4 +1,4 @@
-<rss version="2.0"
+<rss version="2.0"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
@@ -8,13 +8,15 @@
<language>en-gb</language>
<lastBuildDate>Sun, 03 Mar 2024 19:31:27 +0000</lastBuildDate>
<atom:link href="https://mfashby.net/index.xml" rel="self" type="application/rss+xml"/>
- <item :loop="$page.subpages()">
- <title :text="$loop.it.title"></title>
- <link :text="$loop.it.link()"></link>
- <pubDate :text="$loop.it.date.formatHTTP()"></pubDate>
- <guid isPermaLink="true" :text="$loop.it.link()"></guid>
- <description :text="$loop.it.description"></description>
- <!-- <content:encoded :html="$loop.it.content()"></content:encoded> It doesn't work -->
- </item>
+ <ctx :loop="$page.subpages()">
+ <item>
+ <title :text="$loop.it.title"></title>
+ <link :text="$loop.it.link().prefix('https://mfashby.net')"></link>
+ <pubDate :text="$loop.it.date.formatHTTP()"></pubDate>
+ <guid isPermaLink="true" :text="$loop.it.link().prefix('https://mfashby.net')"></guid>
+ <description :text="$loop.it.description"></description>
+ <!-- <content:encoded :html="$loop.it.content()"></content:encoded> It doesn't work -->
+ </item>
+ </ctx>
</channel>
-</rss> \ No newline at end of file
+</rss>