diff options
| author | Christian Cleberg <[email protected]> | 2026-02-12 20:30:22 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-02-12 20:30:22 -0600 |
| commit | e136d6671654561ac24fa98792442829339a639e (patch) | |
| tree | 8794025b9c2f7358cfce0b2166a7eca2b598290a /publish.el | |
| parent | 69fa4506b10f75205779bc6dd1e689ee943c83a2 (diff) | |
| download | cleberg.net-e136d6671654561ac24fa98792442829339a639e.tar.gz cleberg.net-e136d6671654561ac24fa98792442829339a639e.tar.bz2 cleberg.net-e136d6671654561ac24fa98792442829339a639e.zip | |
publish-new-post: automating-weblorg-deployments (#4)
* publish new post: automating-weblorg-deployments
* fix publish.el comments
* allow for case-insensitive env variable
* obfuscate port
* update run rules
* update run rules
* allow for case-insensitive env variable
* publish new post: automating-weblorg-deployments
Diffstat (limited to 'publish.el')
| -rw-r--r-- | publish.el | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,10 +1,11 @@ ;;; -*- lexical-binding: t -*- -;; Explicitly load packages for Doom Emacs +;; Allow for macOS (dev machine) & Linux (GitHub Actions) execution (defvar site-lisp-base (if (eq system-type 'darwin) - "~/.config/emacs/.local/straight/repos" ; macOS path + "~/.config/emacs/.local/straight/repos" ; macOS path "/home/linuxbrew/.config/emacs/.local/straight/repos")) ; CI/Linux path +;; Explicitly load packages (add-to-list 'load-path (expand-file-name "htmlize" site-lisp-base)) (add-to-list 'load-path (expand-file-name "weblorg" site-lisp-base)) (add-to-list 'load-path (expand-file-name "templatel" site-lisp-base)) @@ -13,10 +14,11 @@ (require 'weblorg) ;; Set default URL for Weblorg -(if (string= (getenv "ENV") "prod") +;; Only works if environment variable ENV=prod +(if (string-equal-ignore-case (or (getenv "ENV") "") "prod") (setq weblorg-default-url "https://cleberg.net")) -;; Define site configuration +;; Define site metadata (weblorg-site :theme nil :template-vars '(("site_name" . "cleberg.net") |
