summaryrefslogtreecommitdiff
path: root/publish.el
diff options
context:
space:
mode:
Diffstat (limited to 'publish.el')
-rw-r--r--publish.el21
1 files changed, 13 insertions, 8 deletions
diff --git a/publish.el b/publish.el
index e0741da..96f73b4 100644
--- a/publish.el
+++ b/publish.el
@@ -3,9 +3,14 @@
(require 'weblorg)
+(if (string= (getenv "CONFIG") "local")
+ (setq url "http://192.168.1.10:8000")
+ (setq url "https://philippgeyer.co.uk"))
+
+
(weblorg-site
:name "Philipp Geyer"
- :base-url "https://philippgeyer.co.uk"
+ :base-url url
:theme nil
:author "Philipp Geyer")
@@ -17,7 +22,7 @@
:output "output/index.html"
:url "/"
:site (weblorg-site
- :base-url "https://philippgeyer.co.uk"))
+ :base-url url))
;; route for rendering each post
(weblorg-route
@@ -27,7 +32,7 @@
:output "output/posts/{{ slug }}.html"
:url "/posts/{{ slug }}.html"
:site (weblorg-site
- :base-url "https://philippgeyer.co.uk"))
+ :base-url url))
;; route for rendering the index page of the blog
(weblorg-route
@@ -38,7 +43,7 @@
:output "output/blog.html"
:url "/blog.html"
:site (weblorg-site
- :base-url "https://philippgeyer.co.uk"))
+ :base-url url))
;; route for rendering each page
(weblorg-route
@@ -48,7 +53,7 @@
:output "output/{{ slug }}.html"
:url "/{{ slug }}.html"
:site (weblorg-site
- :base-url "https://philippgeyer.co.uk"))
+ :base-url url))
;; route for rendering the index page of articles
(weblorg-route
@@ -59,7 +64,7 @@
:output "output/articles.html"
:url "/articles.html"
:site (weblorg-site
- :base-url "https://philippgeyer.co.uk"))
+ :base-url url))
:input-aggregate #'weblorg-input-aggregate-all-desc
(weblorg-route
@@ -69,14 +74,14 @@
:output "output/cv/{{ slug }}.html"
:url "/cv/{{slug }}.html"
:site (weblorg-site
- :base-url "https://philippgeyer.co.uk"))
+ :base-url url))
;; route for static assets that also copies files to output directory
(weblorg-copy-static
:output "static/{{ file }}"
:url "/static/{{ file }}"
:site (weblorg-site
- :base-url "https://philippgeyer.co.uk"))
+ :base-url url))
(setq debug-on-error t)