diff options
author | Tom Willemse | 2019-10-06 18:29:15 -0700 |
---|---|---|
committer | Tom Willemse | 2019-10-06 18:29:15 -0700 |
commit | a00df1cad87b16222f708636d2831bd8581e1d2a (patch) | |
tree | dcae183c420eb4cbe7046d749520b7030fc8baa1 | |
parent | fedf46e7ef3a0d5d3054efcf02ae90e643a33254 (diff) | |
download | new-ryuslash.org-a00df1cad87b16222f708636d2831bd8581e1d2a.tar.gz new-ryuslash.org-a00df1cad87b16222f708636d2831bd8581e1d2a.zip |
Add styling
-rw-r--r-- | GNUmakefile | 5 | ||||
-rw-r--r-- | project-config.el | 3 | ||||
-rw-r--r-- | src/less/main.less | 12 |
3 files changed, 18 insertions, 2 deletions
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 "<link rel=\"stylesheet\" href=\"/assets/css/main.css\" type=\"text/css\"/>") ("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; +} |