aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2019-10-06 12:57:14 -0700
committerGravatar Tom Willemse2019-10-06 12:57:14 -0700
commit4207329336f642720239f8ce1eaf4cf6b4040df7 (patch)
tree7b600b6d12ebbe5c31a032df3456434aaec254b4
downloadnew-ryuslash.org-4207329336f642720239f8ce1eaf4cf6b4040df7.tar.gz
new-ryuslash.org-4207329336f642720239f8ce1eaf4cf6b4040df7.zip
Initial commit
-rw-r--r--.gitignore1
-rw-r--r--GNUmakefile6
-rw-r--r--README.org12
-rw-r--r--index.org10
-rw-r--r--project-config.el20
5 files changed, 49 insertions, 0 deletions
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))