Browse Source

Finish org first draft of org migration

org
Sameer Rahmani 10 months ago
parent
commit
0d52ff0aa4
  1. 10
      assets/styles/main.css
  2. 1
      build.el
  3. 7
      lisp/ox-template.el
  4. 1
      orgs/sitemap.inc

10
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;
}

1
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

7
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 "<section class='%s-drawer'><p>%s</p>%s</section>"
(downcase name)
(capitalize name)
content))
(defun org-html-publish-to-templated-html (plist filename pub-dir)
"Publish an org file to HTML.

1
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]]

Loading…
Cancel
Save