Ind.ie is now Small Technology Foundation.
Commit 74ffd4d2 authored by Aral Balkan's avatar Aral Balkan

Absolute URLs (e.g., in the RSS feed) are now generated with baseURL

This overrides the default behaviour of Hugo server which is to ignore the baseURL setting and write absolute URLs in the form http://localhost:<port>
parent 3640918d
......@@ -3,3 +3,11 @@ languageCode = "en-us"
title = "Aral Balkan"
publishDir = "../live"
pygmentsUseClasses = true
[author]
name = "Aral Balkan"
[output]
[Format]
[RSS]
baseName = "https://live.ar.al/index.xml"
\ No newline at end of file
......@@ -18,8 +18,14 @@ trap "kill 0" EXIT
# Start the rsync deployment watcher
runInBackground ../sync "npm run sync"
# Start Hugo server
hugo server -D --renderToDisk &
# Start Hugo server.
#
# The baseURL and appendPort flags are set to overwrite the default behaviour
# of Hugo when run with the server option which is to write absolute URLs
# as localhost:<port> regardless of the setting of baseURL in the config.toml
# file. Since we do not have a separate build/deploy phase to the live server,
# we want the site as it would exist on the server to exist on the client.
hugo server -D --renderToDisk --baseURL=https://live.ar.al --appendPort=false
# Don’t exit. Shutting off this process should also kill
# the two other background processes we started
......
......@@ -4,5 +4,12 @@
# (changes will not be deployed or live streamed over the
# peer-to-peer web. For that, use the ./live script.)
# Start Hugo server
hugo server -D --renderToDisk
# Start Hugo server.
#
# The baseURL and appendPort flags are set to overwrite the default behaviour
# of Hugo when run with the server option which is to write absolute URLs
# as localhost:<port> regardless of the setting of baseURL in the config.toml
# file. Since we do not have a separate build/deploy phase to the live server,
# we want the site as it would exist on the server to exist on the client.
hugo server -D --renderToDisk --baseURL=https://live.ar.al --appendPort=false
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment