diff --git a/home/hydra.org b/home/hydra.org new file mode 100644 index 0000000..e69de29 diff --git a/make.el b/make.el index 6f29cd7..271e186 100644 --- a/make.el +++ b/make.el @@ -32,7 +32,9 @@ (defvar org-publish-project-alist) (setq org-publish-project-alist - `(("blog-content" + `( + ;; Blog + ("blog-content" :base-directory ,(expand-file-name "./blog/") :base-extension "org" :publishing-directory ,(expand-file-name "./public_html/blog") @@ -62,10 +64,13 @@ :section-numbers nil :with-toc nil :with-date nil - :html-template ,(templated-html-load-template "./templates/blog.html") + :html-template ,(templated-html-load-template "./templates/blog-index.html") :publishing-function org-html-publish-to-templated-html) ("blog" :components ("blog-content" "blog-index")) + + + ;; Homepage ("homepage" :base-directory ,(expand-file-name "./home") :recursive nil @@ -76,14 +81,32 @@ :publishing-directory ,(expand-file-name "./public_html/") :html-template ,(templated-html-load-template "./templates/index.html") :publishing-function org-html-publish-to-templated-html) + + + ;; Hydra placeholder + ("hydra-placeholder" + :base-directory ,(expand-file-name "./home") + :recursive nil + :base-extension "org" + :exclude "^.*$" + :include ("hydra.org") + :with-toc nil + :publishing-directory ,(expand-file-name "./public_html/") + :html-template ,(templated-html-load-template "./templates/hydra-placeholder.html") + :publishing-function org-html-publish-to-templated-html) + + + ;; Static images and css and js ("assets" :base-directory ,(expand-file-name "./assets/") :publishing-directory ,(expand-file-name "./public_html/") :recursive t :base-extension "\\(ttf\\|svg\\|jpg\\|gif\\|png\\|css\\|js\\|el\\|nb\\|ipynb\\|pdf\\|xml\\)" :publishing-function org-publish-attachment) + + ;; top-level trigger ("publish" - :components ("blog" "assets" "homepage")))) + :components ("blog" "assets" "homepage" "hydra-placeholder")))) (org-publish "publish" t) diff --git a/templates/blog-index.html b/templates/blog-index.html new file mode 100644 index 0000000..3172d9a --- /dev/null +++ b/templates/blog-index.html @@ -0,0 +1,14 @@ + + + {{:include "head.html"}} + +
+ +
+ {{:include "navbar.html"}} + {{contents}} +
+ +
+ + diff --git a/templates/hydra-placeholder.html b/templates/hydra-placeholder.html new file mode 100644 index 0000000..f5e87a7 --- /dev/null +++ b/templates/hydra-placeholder.html @@ -0,0 +1,16 @@ + + + {{:include "head.html"}} + +
+ +
+ {{:include "navbar.html"}} +
+ Nothing here yet +
+
+ +
+ + diff --git a/templates/navbar.html b/templates/navbar.html index 5e279d4..1fbfb04 100644 --- a/templates/navbar.html +++ b/templates/navbar.html @@ -8,7 +8,7 @@ GitHub - + HydraCI