]> Untitled Git - afilini.com/commitdiff
Remove baseURL, add scripts to build for a staging environment
authorAlekos Filini <alekos.filini@gmail.com>
Sat, 5 Jun 2021 09:02:24 +0000 (11:02 +0200)
committerAlekos Filini <alekos.filini@gmail.com>
Sat, 5 Jun 2021 09:02:24 +0000 (11:02 +0200)
.gitignore
config.toml
scripts/build-staging.sh [new file with mode: 0755]

index 43b24887ab39f4d79b328622a5b559399c268235..77d668df2e116b1e0112af38f4d6bba289fffdba 100644 (file)
@@ -1,5 +1,6 @@
 venv/
 public/
+public-staging/
 
 *.swp
 geckodriver.log
index 83e47160909d49b9a8ff8a12c2d3fb1b8f19b7cb..5ad73653f39a48abb9528707bc4b54091190171a 100644 (file)
@@ -1,4 +1,4 @@
-baseURL = "https://afilini.com"
+baseURL = ""
 
 # The name of this wonderful theme ;-).
 theme = 'hugo-bearblog'
diff --git a/scripts/build-staging.sh b/scripts/build-staging.sh
new file mode 100755 (executable)
index 0000000..1717e2b
--- /dev/null
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+
+set -eo pipefail
+
+hugo -d ./public-staging
+
+cat<<EOF > ./public-staging/robots.txt
+User-Agent: *
+Disallow: /
+EOF