Org-publish script and a blog entry file

This commit is contained in:
Joseph Ferano 2025-07-19 15:11:26 +07:00
parent 20ae7df57d
commit cc24785756
2 changed files with 42 additions and 0 deletions

34
build-org.el Normal file
View File

@ -0,0 +1,34 @@
;; Load the publishing system
(require 'ox-publish)
(setq org-publish-project-alist
'(("org-files"
:recursive t
:base-directory "./org"
:publishing-directory "./build/blog/"
:publishing-function org-html-publish-to-html
:body-only t
:with-author nil ;; Don't include author name
:with-creator nil ;; Include Emacs and Org versions in footer
:with-toc nil ;; Include a table of contents
:title "Joseph Ferano - Blog"
:with-title nil
:with-validation nil
:section-numbers nil ;; Don't include section numbers
:time-stamp-file nil)
("static-files"
:base-directory "./content/"
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|svg"
:publishing-directory "./public/"
:recursive t
:publishing-function org-publish-attachment)
("site" :components ("org-files" "static-files"))))
(setq org-html-validation-link nil
org-html-head-include-default-style nil)
;; org-html-head "<link rel=\"stylesheet\" href=\"css/normalize.css\" /><link rel=\"stylesheet\" href=\"css/main.css\" />")
;; (org-publish-project "site" t)
(org-publish-project "org-files" t)
(message "Build complete!")

View File

@ -0,0 +1,8 @@
#+TITLE: First Post
#+AUTHOR: Joseph Ferano
#+DATE: <2025-07-19 Sat>
#+OPTIONS:
This is my first blog post. What is the purpose of my blog. Well, I want to
discuss technical things, for sure. Richard Feynman said things that are cool.
Something about how writing is learning.