Initial commit

This commit is contained in:
Tom Willemse 2019-10-06 12:57:14 -07:00
commit 4207329336
5 changed files with 49 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/public_html

6
GNUmakefile Normal file
View file

@ -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

12
README.org Normal file
View file

@ -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.

10
index.org Normal file
View file

@ -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.

20
project-config.el Normal file
View file

@ -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))