From 971337d54fc59f844d67e8882fc3435321c36bd3 Mon Sep 17 00:00:00 2001 From: Philipp Geyer Date: Tue, 24 Oct 2023 23:47:55 +0200 Subject: Minor update Resizing images Adding Egosoft to experience Changing site credits to add open sourcerers Removing AWS specific appspec file and scripts --- publish.el | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'publish.el') 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) -- cgit v1.2.3-70-g09d2