From 4207329336f642720239f8ce1eaf4cf6b4040df7 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 6 Oct 2019 12:57:14 -0700 Subject: Initial commit --- .gitignore | 1 + GNUmakefile | 6 ++++++ README.org | 12 ++++++++++++ index.org | 10 ++++++++++ project-config.el | 20 ++++++++++++++++++++ 5 files changed, 49 insertions(+) create mode 100644 .gitignore create mode 100644 GNUmakefile create mode 100644 README.org create mode 100644 index.org create mode 100644 project-config.el diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ce50f89 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/public_html diff --git a/GNUmakefile b/GNUmakefile new file mode 100644 index 0000000..0be18a2 --- /dev/null +++ b/GNUmakefile @@ -0,0 +1,6 @@ +.PHONY: site + +site: public_html/index.html + +public_html/%.html: %.org + emacs -batch -funcall package-initialize -load project-config.el -funcall publish-ryuslash.org diff --git a/README.org b/README.org new file mode 100644 index 0000000..58e2946 --- /dev/null +++ b/README.org @@ -0,0 +1,12 @@ +#+TITLE: ryuslash.org README +#+STARTUP: showall + +This is the source project of my website [[https://ryuslash.org]]. It +doesn't contain much for now, but eventually this will be where all my +stuff lives. + +* Compiling + + To compile a local copy from Org-mode files into HTML, use the + command ~make~. This will generate a local copy in the ~public_html~ + directory. diff --git a/index.org b/index.org new file mode 100644 index 0000000..f12e152 --- /dev/null +++ b/index.org @@ -0,0 +1,10 @@ +#+TITLE: ryuslash.org + +* New blog + :PROPERTIES: + :ID: 68c55701-d8ce-44a1-9c97-6c16cf34890c + :PUBDATE: <2019-10-06 Sun 12:55> + :END: + + It's that time again... I've started a new project to build and maintain my + site and of course it has to come with a new blog post. diff --git a/project-config.el b/project-config.el new file mode 100644 index 0000000..c145ec0 --- /dev/null +++ b/project-config.el @@ -0,0 +1,20 @@ +(require 'ox-publish) +(require 'ox-rss) + +(setq org-publish-project-alist + '(("ryuslash.org" + :base-directory "." + :publishing-directory "public_html" + :exclude "\\`README.org\\'" + :base-extension "org" + :publishing-function org-html-publish-to-html) + ("ryuslash-rss" + :base-directory "." + :publishing-directory "public_html" + :exclude ".*" + :include ("index.org") + :base-extension "org" + :publishing-function org-rss-publish-to-rss))) + +(defun publish-ryuslash.org () + (org-publish-all)) -- cgit v1.2.3-54-g00ecf