From 0d52ff0aa470aa911e011d56b273a5c339beada9 Mon Sep 17 00:00:00 2001 From: Sameer Rahmani Date: Wed, 17 Feb 2021 01:22:58 +0000 Subject: [PATCH] Finish org first draft of org migration --- assets/styles/main.css | 10 ++++++++++ build.el | 1 + lisp/ox-template.el | 7 +++++++ orgs/sitemap.inc | 1 + 4 files changed, 19 insertions(+) diff --git a/assets/styles/main.css b/assets/styles/main.css index fa6fe52..9b47b4f 100644 --- a/assets/styles/main.css +++ b/assets/styles/main.css @@ -18,3 +18,13 @@ pre.src { padding: 10px 20px; border-radius: 2px; } + +.timestamp { + background: #161f27; + background: var(--background); + color: #ffbe85; + color: var(--code); + padding: 2.5px 5px; + border-radius: 6px; + font-size: 1em; +} diff --git a/build.el b/build.el index 65ca794..4aa0986 100755 --- a/build.el +++ b/build.el @@ -312,6 +312,7 @@ Not pages." :section-numbers nil :with-author t :with-drawers t + :html-format-drawer-function custom-drawer-format :with-properties t :with-tags t :with-timestamps t diff --git a/lisp/ox-template.el b/lisp/ox-template.el index 8c2cee6..41a9dec 100644 --- a/lisp/ox-template.el +++ b/lisp/ox-template.el @@ -132,6 +132,13 @@ call `org-html-render-tag-template' otherwise will call ORIG-FN." (org-html-template contents info)))) +(defun custom-drawer-format (name content) + (format "

%s

%s
" + (downcase name) + (capitalize name) + content)) + + (defun org-html-publish-to-templated-html (plist filename pub-dir) "Publish an org file to HTML. diff --git a/orgs/sitemap.inc b/orgs/sitemap.inc index 08bc256..7544366 100644 --- a/orgs/sitemap.inc +++ b/orgs/sitemap.inc @@ -1,5 +1,6 @@ #+TITLE: lxsameer's nest +- [[file:thoughts.org][Inner world]] - [[file:essays/serene-simple-version.org][Serene (simple versoin)]] - [[file:essays/choosing-the-target-platform.org][Choosing the target platform]] - [[file:essays/rational-and-a-name.org][Rational and a name]]