From a00df1cad87b16222f708636d2831bd8581e1d2a Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 6 Oct 2019 18:29:15 -0700 Subject: [PATCH] Add styling --- GNUmakefile | 5 ++++- project-config.el | 3 ++- src/less/main.less | 12 ++++++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 src/less/main.less diff --git a/GNUmakefile b/GNUmakefile index 0be18a2..2e62e41 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,6 +1,9 @@ .PHONY: site -site: public_html/index.html +site: public_html/index.html public_html/assets/css/main.css public_html/%.html: %.org emacs -batch -funcall package-initialize -load project-config.el -funcall publish-ryuslash.org + +public_html/assets/css/%.css: src/less/%.less + lessc $^ $@ diff --git a/project-config.el b/project-config.el index c82cd58..4a9447b 100644 --- a/project-config.el +++ b/project-config.el @@ -9,7 +9,8 @@ :publishing-directory "public_html" :exclude "\\`README.org\\'" :base-extension "org" - :publishing-function org-html-publish-to-html) + :publishing-function org-html-publish-to-html + :html-head "") ("ryuslash-rss" :base-directory "." :publishing-directory "public_html" diff --git a/src/less/main.less b/src/less/main.less new file mode 100644 index 0000000..1d5d8aa --- /dev/null +++ b/src/less/main.less @@ -0,0 +1,12 @@ +@background-color: #111114; +@foreground-color: #bfbfbf; +@link-color: #a88654; + +body { + background-color: @background-color; + color: @foreground-color; +} + +a { + color: @link-color; +}