From 74d899b3517ac2337b3d100d4eab20d0a0e05828 Mon Sep 17 00:00:00 2001 From: hashirama Date: Thu, 25 Apr 2024 00:08:07 -0400 Subject: [PATCH] our lisp code! --- code/blog.el | 22 ++++ content/posts/2024-04-24-23-58-01.md | 9 ++ content/posts/2024-04-25-00-00-23.md | 9 ++ content/posts/2024-04-25-00-05-35.md | 9 ++ public/404.html | 16 +-- public/categories/index.html | 16 +-- public/categories/index.xml | 4 +- public/index.html | 42 ++++++-- public/index.xml | 26 ++++- public/posts/2024-04-24-23-58-01/index.html | 69 ++++++++++++ public/posts/2024-04-25-00-00-23/index.html | 69 ++++++++++++ public/posts/2024-04-25-00-05-35/index.html | 69 ++++++++++++ public/sitemap.xml | 50 ++++++++- public/tags/emacs/index.html | 89 +++++++++++++++ public/tags/emacs/index.xml | 26 +++++ public/tags/guix/index.html | 79 ++++++++++++++ public/tags/guix/index.xml | 19 ++++ public/tags/index.html | 46 ++++++-- public/tags/index.xml | 26 ++++- public/tags/le-test/index.html | 79 ++++++++++++++ public/tags/le-test/index.xml | 19 ++++ public/tags/test/index.html | 89 +++++++++++++++ public/tags/test/index.xml | 26 +++++ themes/default/base.tmpl | 63 +++++++++++ themes/default/base.tmpl~ | 63 +++++++++++ themes/default/css/AsebiMin-Light.otf | Bin 0 -> 4875888 bytes themes/default/css/cc-by-nc-nd.png | Bin 0 -> 461 bytes themes/default/css/lisp-warning.webp | Bin 0 -> 22668 bytes themes/default/css/logo_large.jpg | Bin 0 -> 52898 bytes themes/default/css/logo_medium.jpg | Bin 0 -> 26688 bytes themes/default/css/logo_small.jpg | Bin 0 -> 19931 bytes themes/default/css/style.css | 101 ++++++++++++++++++ themes/default/css/style.css~ | 101 ++++++++++++++++++ themes/default/index.tmpl | 34 ++++++ themes/default/post.tmpl | 27 +++++ themes/hugo-theme-console/layouts/index.html | 4 +- themes/hugo-theme-console/layouts/index.html~ | 42 ++++++++ 37 files changed, 1300 insertions(+), 43 deletions(-) create mode 100644 code/blog.el create mode 100644 content/posts/2024-04-24-23-58-01.md create mode 100644 content/posts/2024-04-25-00-00-23.md create mode 100644 content/posts/2024-04-25-00-05-35.md create mode 100644 public/posts/2024-04-24-23-58-01/index.html create mode 100644 public/posts/2024-04-25-00-00-23/index.html create mode 100644 public/posts/2024-04-25-00-05-35/index.html create mode 100644 public/tags/emacs/index.html create mode 100644 public/tags/emacs/index.xml create mode 100644 public/tags/guix/index.html create mode 100644 public/tags/guix/index.xml create mode 100644 public/tags/le-test/index.html create mode 100644 public/tags/le-test/index.xml create mode 100644 public/tags/test/index.html create mode 100644 public/tags/test/index.xml create mode 100644 themes/default/base.tmpl create mode 100644 themes/default/base.tmpl~ create mode 100644 themes/default/css/AsebiMin-Light.otf create mode 100644 themes/default/css/cc-by-nc-nd.png create mode 100644 themes/default/css/lisp-warning.webp create mode 100644 themes/default/css/logo_large.jpg create mode 100644 themes/default/css/logo_medium.jpg create mode 100644 themes/default/css/logo_small.jpg create mode 100644 themes/default/css/style.css create mode 100644 themes/default/css/style.css~ create mode 100644 themes/default/index.tmpl create mode 100644 themes/default/post.tmpl create mode 100644 themes/hugo-theme-console/layouts/index.html~ diff --git a/code/blog.el b/code/blog.el new file mode 100644 index 0000000..2ca8bc1 --- /dev/null +++ b/code/blog.el @@ -0,0 +1,22 @@ + +;; code for the simple (but powerful) automation of posts creation +;; requires ox-hugo + +(defvar blog-org-files-directory "/mnt/Data/Documents/org-files/org/blog/") + +;; where the posts will be converted +(setq org-hugo-base-dir "/mnt/Data/watashinoblog/") + + +(defun generate-blog-file-path () + (concat blog-org-files-directory "/" + (format-time-string "%Y-%m-%d-%H-%M-%S") ".org")) + + +(setq org-capture-templates + `(("b" "Blog Post" entry + (file ,(lambda () (generate-blog-file-path))) ; Target file path generation + "* %?\n#+EXPORT_HUGO_DRAFT: true\n#+EXPORT_HUGO_SECTION_FRAG: \n#+TITLE: %^{Title}\n#+DATE: %U\n#+AUTHOR: Hashirama\n#+FILETAGS: %^{Tags}\n#+UPDATED: %U\n#+CREATED: %<%Y-%m-%d %a %H:%M>\n" + :empty-lines 1 ; Ensure an empty line after the captured content + :prepend t ; Insert content at the beginning of the file + :jump-to-captured t))) ; Jump to the captured position after capture diff --git a/content/posts/2024-04-24-23-58-01.md b/content/posts/2024-04-24-23-58-01.md new file mode 100644 index 0000000..58d238e --- /dev/null +++ b/content/posts/2024-04-24-23-58-01.md @@ -0,0 +1,9 @@ ++++ +title = "we are testing" +author = ["Hashirama"] +date = 2024-04-24T23:58:00-04:00 +tags = ["test", "emacs", "guix"] +draft = false ++++ + +## {#d41d8c} diff --git a/content/posts/2024-04-25-00-00-23.md b/content/posts/2024-04-25-00-00-23.md new file mode 100644 index 0000000..0b9cd31 --- /dev/null +++ b/content/posts/2024-04-25-00-00-23.md @@ -0,0 +1,9 @@ ++++ +title = "we are testing" +author = ["Hashirama"] +date = 2024-04-25T00:00:00-04:00 +tags = ["test", "emacs"] +draft = false ++++ + +## {#d41d8c} diff --git a/content/posts/2024-04-25-00-05-35.md b/content/posts/2024-04-25-00-05-35.md new file mode 100644 index 0000000..9c49688 --- /dev/null +++ b/content/posts/2024-04-25-00-05-35.md @@ -0,0 +1,9 @@ ++++ +title = "another test" +author = ["Hashirama"] +date = 2024-04-25T00:05:00-04:00 +tags = ["le-test"] +draft = false ++++ + +## {#d41d8c} diff --git a/public/404.html b/public/404.html index f580ec1..0e9c8e1 100644 --- a/public/404.html +++ b/public/404.html @@ -1,6 +1,6 @@ - + ajattix/404.html @@ -8,9 +8,9 @@ - - - + + + - + - + @@ -38,8 +38,8 @@ + ajattix:~# + categories/