summaryrefslogtreecommitdiff
path: root/_posts
diff options
context:
space:
mode:
authormattkae <mattkae@protonmail.com>2023-06-20 11:51:17 -0400
committermattkae <mattkae@protonmail.com>2023-06-20 11:51:27 -0400
commitdf01c9a46333fce22b04ef076b308ceacec429f9 (patch)
tree047304399b8a267f6a3d34cd1602c5adc753a105 /_posts
parenta38b812854b9c08d377ce3e6758245500bc0907c (diff)
One minor cleanup
Diffstat (limited to '_posts')
-rw-r--r--_posts/hello.org43
-rw-r--r--_posts/sitemap.org2
2 files changed, 23 insertions, 22 deletions
diff --git a/_posts/hello.org b/_posts/hello.org
index 571e1a3..38a4fc7 100644
--- a/_posts/hello.org
+++ b/_posts/hello.org
@@ -22,11 +22,11 @@
I've recently fallen in love with ~org-mode~, specifically when I use it with [[https://www.orgroam.com/][org-roam]]. I find the whole workflow of creating, tagging, and - later on - searching for information on my computer to be very elegant. On top of that, now that I have the time, I want to begin writing blog posts to better work out my thoughts. With both of these things in mind, I am again turning to the universal tool for human prospering: ~org-mode~. This time, I want to see how it can help me turn a simple org file into a blog post on my website. My requirements are:
1. Org files must get published to HTML files in a particular format with a preset stylesheet
-2. Code blocks with code highlighting
+2. Code blocks must include code highlighting
3. Images must be supported
4. Posts must be timestamped with the creation date next to the title
-5. Generate a high-level "directory" page with all of the posts by order of creation
-6. Posts should be able to have tags that will be used to filter content
+5. A high-level "directory" page should be generated containing a list of the posts ordered chronologically with the newest at the top
+6. Posts should have tags that can be used for filtering and search.
And that's pretty much it for now. Without further ado, let's jump into getting this up and running.
@@ -65,24 +65,25 @@ emacs -Q --script publish.el
The next thing will be to remove some of the generated items that I didn't ask for, namely the table of contents, author, section numbers, creation time stamp, and the validation link.
#+BEGIN_SRC emacs-lisp
- (require 'ox-publish)
-
- (setq org-publish-project-alist
- (list
- (list "matthewkosarek.xyz"
- :recursive t
- :base-directory "./_posts"
- :publishing-directory "./posts"
- :publishing-function: 'org-html-publish-to-html
- :with-toc nil ; Disable table of contents
- :with-author nil ; Disable author
- :section-numbers nil ; Disable section numbers
- :time-stamp-file))) ; Disable timestamp
-
- (setq org-html-validation-link nil) ; Disable the validation link at the bottom
-
- (org-publish-all t)
- (message "Build Complete")
+ (require 'ox-publish)
+
+ (setq org-publish-project-alist
+ (list
+ (list "matthewkosarek.xyz"
+ :recursive t
+ :base-directory "./_posts"
+ :publishing-directory "./posts"
+ :publishing-function: 'org-html-publish-to-html
+ :with-toc nil ; Disable table of contents
+ :with-author nil ; Disable author
+ :section-numbers nil ; Disable section numbers
+ :time-stamp-file nil ; Disable timestamp
+ :with-date nil))) ; Disable date
+
+ (setq org-html-validation-link nil) ; Disable the validation link at the bottom
+
+ (org-publish-all t)
+ (message "Build Complete")
#+END_SRC
* Styling & Code Highlighting
diff --git a/_posts/sitemap.org b/_posts/sitemap.org
index 81ef5f4..8665ca3 100644
--- a/_posts/sitemap.org
+++ b/_posts/sitemap.org
@@ -1,6 +1,6 @@
#+TITLE: Matthew's Blog Posts
-#+DATE: 2023-06-20 at 11:46
+#+DATE: 2023-06-20 at 11:51
#+HTML_LINK_HOME: /