Skip to content

Instantly share code, notes, and snippets.

@justinabrahms
Created June 12, 2022 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinabrahms/69ddd2a958d86cfad027e487c275bd25 to your computer and use it in GitHub Desktop.
Save justinabrahms/69ddd2a958d86cfad027e487c275bd25 to your computer and use it in GitHub Desktop.
Warning (org-element-cache): org-element--cache: (ivy-alt-done) Cached element is incorrect in emacs.org. (Cache tic up to date: "yes") Resetting.
If this warning appears regularly, please report the warning text to Org mode mailing list (M-x org-submit-bug-report).
The element is: "(src-block (:language \"emacs-lisp\" :switches nil :parameters \":tangle ~/.emacs.d/static-blog.el\" :begin 118850 :end 127953 :number-lines nil :preserve-indent nil :retain-labels t :use-labels t :label-fmt nil :value \"(package-initialize)
(require 'org-static-blog)
(setq org-static-blog-publish-title \\\"Justin Abrahms\\\"
org-static-blog-publish-url \\\"https://justin.abrah.ms/\\\"
org-static-blog-publish-directory \\\"/srv/justin.abrah.ms\\\"
org-static-blog-rss-file \\\"/rss.xml\\\"
;; Note: these can't be dynamic b/c you can't take repo-relative b/c it gets compiled out to ~/.emacs.d
org-static-blog-posts-directory \\\"~/src/justin.abrah.ms/blog/_posts\\\"
org-static-blog-drafts-directory \\\"~/src/justin.abrah.ms/blog/_posts\\\"
org-static-blog-enable-tags t
org-export-with-toc nil
org-export-with-section-numbers nil
org-static-blog-page-preamble (concat \\\"<nav><a href=\\\\\\\"\\\" org-static-blog-publish-url \\\"\\\\\\\">Home</a></nav>
<nav class=\\\\\\\"fontawesome\\\\\\\">
<a href=\\\\\\\"https://twitter.com/justinabrahms\\\\\\\" target=\\\\\\\"_blank\\\\\\\">
<i title=\\\\\\\"Twitter\\\\\\\" class=\\\\\\\"fab fa-twitter\\\\\\\"></i>
</a>
<a href=\\\\\\\"mailto:justin@abrah.ms\\\\\\\" target=\\\\\\\"_blank\\\\\\\">
<i title=\\\\\\\"Email\\\\\\\" class=\\\\\\\"fas fa-at\\\\\\\"></i>
</a>
<a href=\\\\\\\"\\\" org-static-blog-rss-file \\\"\\\\\\\" target=\\\\\\\"_blank\\\\\\\">
<i title=\\\\\\\"RSS\\\\\\\" class=\\\\\\\"fas fa-rss\\\\\\\"></i>
</a>
</nav>
\\\")
org-static-blog-page-header \\\"
<style type=\\\\\\\"text/css\\\\\\\">
@media (min-width: 50em) {
@font-face {
font-family: 'PT Sans';
src: local(\\\\\\\"PT Sans\\\\\\\"), local(\\\\\\\"PTSans-Regular\\\\\\\"), url(\\\\\\\"../fonts/PTSans-Regular.woff\\\\\\\") format(\\\\\\\"woff\\\\\\\");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'PT Sans';
src: local(\\\\\\\"PT Sans Bold\\\\\\\"), local(\\\\\\\"PTSans-Bold\\\\\\\"), url(\\\\\\\"../fonts/PTSans-Bold.woff\\\\\\\") format(\\\\\\\"woff\\\\\\\");
font-weight: bold;
font-style: normal;
}
}
@media (prefers-color-scheme: light) {
html {
background: #ffffff;
color: #1c1d22;
}
#content a {
color: #0000EE;
}
.foot a:hover {
text-decoration: underline;
color: #0000EE;
}
}
@media (prefers-color-scheme: dark) {
html {
background: #1c1d22;
color: #ffffff;
}
article a, #content a {
color: #58A6FF;
}
.foot a:hover {
text-decoration: underline;
color: #58A6FF;
}
}
html {
font-size: 16px;
font-size: calc(0.8rem + 0.3vw);
}
body {
font-family: \\\\\\\"PT Sans\\\\\\\", -apple-system, BlinkMacSystemFont, \\\\\\\"Helvetica Neue\\\\\\\", \\\\\\\"Segoe UI\\\\\\\", \\\\\\\"Roboto\\\\\\\", sans-serif;
font-weight: 400;
line-height: 1.5;
margin: 0;
-webkit-text-size-adjust: 100%;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 600;
}
b, strong, th {
font-weight: 600;
}
a {
color: inherit;
text-decoration: inherit;
}
a:hover {
text-decoration: underline;
}
header time, .post-date, .taglist {
color: #8e8e91;
}
.taglist {
display: inline;
}
.taglist > .fa-folder {
padding: 0 10px;
}
hr {
border: 1px solid rgba(142, 142, 145, 0.3);
margin: 2em 0;
}
article:not(:last-child) {
border-bottom: 1px solid rgba(142, 142, 145, 0.12);
}
blockquote {
background: rgba(142, 142, 145, 0.06);
border-left: 3px solid rgba(142, 142, 145, 0.9);
padding: 1px 1.5em;
/* opacity: .75; */
}
blockquote, figure {
margin: 1em 0;
}
img, li {
margin: .5em 0;
}
img {
border-radius: 5px;
max-width: 100%;
height: auto;
/* center horizontally */
margin-left: auto;
margin-right: auto;
display: block;
}
table {
width: 100%;
border-spacing: 1px;
box-shadow: 0 0 0 1px rgba(142, 142, 145, 0.12) inset;
}
th, td {
padding: .5em 1em;
box-shadow: 0 0 0 1px rgba(142, 142, 145, 0.12);
}
tr:hover, tr:nth-child(odd) td {
background: rgba(142, 142, 145, 0.04);
}
pre {
background: rgba(142, 142, 145, 0.12);
border-radius: 2px;
font-size: .8em;
/* font-family: fira mono,cousine,Monaco,Menlo,source code pro,monospace; */
font-family: 'Courier New', Courier, monospace;
margin: 1.5em 0;
padding: .8em 1.2em;
overflow-x: auto;
}
:not(pre) > code {
font-size: .9em;
background: rgba(142, 142, 145, 0.15);
/* opacity: .7; */
border-radius: 2px;
margin: 0 .1em;
padding: .2em .4em;
}
body > header, body > #preamble {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
background: rgba(255, 255, 255, 0.02);
box-shadow: 0 0 .6em rgba(28, 29, 34, 0.05);
border-bottom: 1px solid rgba(142, 142, 145, 0.16);
}
body > header > a, body > #preamble > a {
font-size: 1.3em;
}
article header, #content #preamble {
margin-bottom: 1.5em;
}
article header h1, #content #preamble h1 {
font-size: 1.8em;
margin: .5em .5em;
}
article h2, #content h2 {
padding-bottom: 0.3em;
font-size: 1.5em;
border-bottom: 1px solid #eaecef;
}
nav {
margin: .5em -.8em;
}
nav a {
margin: .5em .8em;
}
footer hr { /* custom */
width: 45%;
border-style: dashed;
margin-bottom: 1em;
}
body > header, body > #preamble, body > article, body>#content, body > footer {
padding: 1.5em;
}
@media (min-width: 32em) {
body > header, body > #preamble, body > article, body > #content, body > footer {
padding: 1.75em calc(38% - 12em);
}
}
.archive li {
font-size: 1.1em;
list-style: none;
}
.archive time, .archive post-date {
display: inline-block;
min-width: 10ch;
margin: 0 .2em;
}
.hidden {
display: none;
}
.more {
margin: 2em 0 1em;
}
.more a {
border-radius: 2px;
border: 1.5px solid #68f;
padding: .4em .8em;
transition: .2s;
}
.more a:hover {
color: #fff;
background: #68f;
text-decoration: inherit;
}
/***** custom *****/
.fontawesome a {
text-decoration: none;
}
.post-meta {
color: #8e8e91;
}
.comments-item {
margin-top: 10%;
}
.foot {
font-family: \\\\\\\"PT Sans\\\\\\\", -apple-system, BlinkMacSystemFont, \\\\\\\"Helvetica Neue\\\\\\\", \\\\\\\"Segoe UI\\\\\\\", \\\\\\\"Roboto\\\\\\\", sans-serif;
margin: 1%;
color: #8e8e91;
text-align: center;
}
</style>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<meta charset='utf-8'>
<link rel='alternate' type='application/rss+xml' href='/rss.xml' title='Justin Abrahms'>
<link href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css' rel='stylesheet'>
\\\"
org-static-blog-index-file \\\"no-one-cares\\\"
org-static-blog-archive-file \\\"index.html\\\"
org-static-blog-page-postamble (concat
\\\" <div class='foot'>
&copy; 2012 - 2022 &#183;
<a href=\\\\\\\"\\\" org-static-blog-publish-url \\\"\\\\\\\" >Home</a> &mdash; Theme <a href='https://github.com/RainerChiang/simpleness'>Simpleness</a>
<a href='#'><i class='fas fa-chevron-up'></i></a>
</div>\\\"))
(defun org-static-blog-assemble-archive ()
\\\"Re-render the blog archive page.
The archive page contains single-line links and dates for every
blog post, but no post body.\\\"
(let ((archive-filename (concat-to-dir org-static-blog-publish-directory org-static-blog-archive-file))
(archive-entries nil)
(post-filenames (org-static-blog-get-post-filenames)))
(setq post-filenames (sort post-filenames (lambda (x y) (time-less-p
(org-static-blog-get-date y)
(org-static-blog-get-date x)))))
(org-static-blog-with-find-file
archive-filename
(org-static-blog-template
org-static-blog-publish-title
(concat
\\\"<ul class=\\\\\\\"archive\\\\\\\">\\\"
(apply 'concat (mapcar (lambda (post-filename)
(concat
\\\"<li>\\\"
\\\"<time>\\\" (format-time-string (org-static-blog-gettext 'date-format) (org-static-blog-get-date post-filename))\\\"</time>\\\"
\\\"<a href=\\\\\\\"\\\" (org-static-blog-get-post-url post-filename) \\\"\\\\\\\">\\\"
(org-static-blog-get-title post-filename)
\\\"</a>\\\"
\\\"</li>\\\")
) post-filenames))
\\\"</div>\\\")))))
(defun org-static-blog-post-preamble (post-filename)
\\\"Returns the formatted date and headline of the post.
This function is called for every post and prepended to the post body.
Modify this function if you want to change a posts headline.\\\"
(concat
\\\"<h1 class=\\\\\\\"post-title\\\\\\\">\\\"
(org-static-blog-get-title post-filename)
\\\"</h1>\\\\n\\\"
\\\"<div class=\\\\\\\"post-meta\\\\\\\"><time>\\\"
(format-time-string (org-static-blog-gettext 'date-format)
(org-static-blog-get-date post-filename))
\\\"</time>\\\"
\\\"<div class=\\\\\\\"taglist\\\\\\\">\\\"
\\\"<i class=\\\\\\\"fas fa-folder\\\\\\\"></i>\\\"
(org-static-blog-post-taglist post-filename)
\\\"</div>\\\"
\\\"</div>\\\"))
(defun org-static-blog-post-postamble (post-filename)
\\\"Returns the tag list and comment box at the end of a post.
This function is called for every post and the returned string is
appended to the post body, and includes the tag list generated by
followed by the HTML code for comments.\\\"
(concat
(if (string= org-static-blog-post-comments \\\"\\\")
\\\"\\\"
(concat \\\"\\\\n<div id=\\\\\\\"comments\\\\\\\">\\\"
org-static-blog-post-comments
\\\"</div>\\\"))))
\" :post-blank 1 :post-affiliated 118850 :mode nil :granularity element :cached t :parent (section (:begin 118530 :end 127953 :contents-begin 118530 :contents-end 127952 :robust-begin 118530 :robust-end 127950 :post-blank 1 :post-affiliated 118530 :mode section :granularity element :cached t :parent (headline ...) :org-element--cache-sync-key nil)) :org-element--cache-sync-key nil))"
The real element is: "(paragraph (:begin 118762 :end 118851 :contents-begin 118762 :contents-end 118850 :post-blank 1 :post-affiliated 118762 :mode nil :granularity element :parent (section (:begin 118531 :end 127954 :contents-begin 118531 :contents-end 127953 :robust-begin 118531 :robust-end 127951 :post-blank 1 :post-affiliated 118531 :mode section :granularity element :parent (headline ...)))))"
Cache around :begin:
(paragraph (:begin 118761 :end 118850 :contents-begin 118761 :contents-end 118849 :post-blank 1 :post-affiliated 118761 :mode nil :granularity element :cached t :parent (section (:begin 118530 :end 127953 :contents-begin 118530 :contents-end 127952 :robust-begin 118530 :robust-end 127950 :post-blank 1 :post-affiliated 118530 :mode section :granularity element :cached t :parent (headline (:raw-value "Blogging" :begin 118519 :end 127953 :pre-blank 0 :contents-begin 118530 :contents-end 127952 :robust-begin 118532 :robust-end 127950 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 118519 :title "Blogging" :mode nil :granularity element :cached t :parent (org-data (:begin 1 :contents-begin 1 :contents-end 167572 :end 167572 :robust-begin 3 :robust-end 167570 :post-blank 0 :post-affiliated 1 :path "/Users/jabrahms/src/justin.abrah.ms/blog/_posts/dotfiles/emacs.org" :mode org-data :CATEGORY "emacs" :cached t :org-element--cache-sync-key nil)) :org-element--cache-sync-key nil)) :org-element--cache-sync-key nil)) :org-element--cache-sync-key nil))
(paragraph (:begin 118761 :end 118850 :contents-begin 118761 :contents-end 118849 :post-blank 1 :post-affiliated 118761 :mode nil :granularity element :cached t :parent (section (:begin 118530 :end 127953 :contents-begin 118530 :contents-end 127952 :robust-begin 118530 :robust-end 127950 :post-blank 1 :post-affiliated 118530 :mode section :granularity element :cached t :parent (headline (:raw-value "Blogging" :begin 118519 :end 127953 :pre-blank 0 :contents-begin 118530 :contents-end 127952 :robust-begin 118532 :robust-end 127950 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 118519 :title "Blogging" :mode nil :granularity element :cached t :parent (org-data (:begin 1 :contents-begin 1 :contents-end 167572 :end 167572 :robust-begin 3 :robust-end 167570 :post-blank 0 :post-affiliated 1 :path "/Users/jabrahms/src/justin.abrah.ms/blog/_posts/dotfiles/emacs.org" :mode org-data :CATEGORY "emacs" :cached t :org-element--cache-sync-key nil)) :org-element--cache-sync-key nil)) :org-element--cache-sync-key nil)) :org-element--cache-sync-key nil))
(src-block (:language "emacs-lisp" :switches nil :parameters ":tangle ~/.emacs.d/static-blog.el" :begin 118850 :end 127953 :number-lines nil :preserve-indent nil :retain-labels t :use-labels t :label-fmt nil :value "(package-initialize)
(require 'org-static-blog)
(setq org-static-blog-publish-title \"Justin Abrahms\"
org-static-blog-publish-url \"https://justin.abrah.ms/\"
org-static-blog-publish-directory \"/srv/justin.abrah.ms\"
org-static-blog-rss-file \"/rss.xml\"
;; Note: these can't be dynamic b/c you can't take repo-relative b/c it gets compiled out to ~/.emacs.d
org-static-blog-posts-directory \"~/src/justin.abrah.ms/blog/_posts\"
org-static-blog-drafts-directory \"~/src/justin.abrah.ms/blog/_posts\"
org-static-blog-enable-tags t
org-export-with-toc nil
org-export-with-section-numbers nil
org-static-blog-page-preamble (concat \"<nav><a href=\\\"\" org-static-blog-publish-url \"\\\">Home</a></nav>
<nav class=\\\"fontawesome\\\">
<a href=\\\"https://twitter.com/justinabrahms\\\" target=\\\"_blank\\\">
<i title=\\\"Twitter\\\" class=\\\"fab fa-twitter\\\"></i>
</a>
<a href=\\\"mailto:justin@abrah.ms\\\" target=\\\"_blank\\\">
<i title=\\\"Email\\\" class=\\\"fas fa-at\\\"></i>
</a>
<a href=\\\"\" org-static-blog-rss-file \"\\\" target=\\\"_blank\\\">
<i title=\\\"RSS\\\" class=\\\"fas fa-rss\\\"></i>
</a>
</nav>
\")
org-static-blog-page-header \"
<style type=\\\"text/css\\\">
@media (min-width: 50em) {
@font-face {
font-family: 'PT Sans';
src: local(\\\"PT Sans\\\"), local(\\\"PTSans-Regular\\\"), url(\\\"../fonts/PTSans-Regular.woff\\\") format(\\\"woff\\\");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'PT Sans';
src: local(\\\"PT Sans Bold\\\"), local(\\\"PTSans-Bold\\\"), url(\\\"../fonts/PTSans-Bold.woff\\\") format(\\\"woff\\\");
font-weight: bold;
font-style: normal;
}
}
@media (prefers-color-scheme: light) {
html {
background: #ffffff;
color: #1c1d22;
}
#content a {
color: #0000EE;
}
.foot a:hover {
text-decoration: underline;
color: #0000EE;
}
}
@media (prefers-color-scheme: dark) {
html {
background: #1c1d22;
color: #ffffff;
}
article a, #content a {
color: #58A6FF;
}
.foot a:hover {
text-decoration: underline;
color: #58A6FF;
}
}
html {
font-size: 16px;
font-size: calc(0.8rem + 0.3vw);
}
body {
font-family: \\\"PT Sans\\\", -apple-system, BlinkMacSystemFont, \\\"Helvetica Neue\\\", \\\"Segoe UI\\\", \\\"Roboto\\\", sans-serif;
font-weight: 400;
line-height: 1.5;
margin: 0;
-webkit-text-size-adjust: 100%;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 600;
}
b, strong, th {
font-weight: 600;
}
a {
color: inherit;
text-decoration: inherit;
}
a:hover {
text-decoration: underline;
}
header time, .post-date, .taglist {
color: #8e8e91;
}
.taglist {
display: inline;
}
.taglist > .fa-folder {
padding: 0 10px;
}
hr {
border: 1px solid rgba(142, 142, 145, 0.3);
margin: 2em 0;
}
article:not(:last-child) {
border-bottom: 1px solid rgba(142, 142, 145, 0.12);
}
blockquote {
background: rgba(142, 142, 145, 0.06);
border-left: 3px solid rgba(142, 142, 145, 0.9);
padding: 1px 1.5em;
/* opacity: .75; */
}
blockquote, figure {
margin: 1em 0;
}
img, li {
margin: .5em 0;
}
img {
border-radius: 5px;
max-width: 100%;
height: auto;
/* center horizontally */
margin-left: auto;
margin-right: auto;
display: block;
}
table {
width: 100%;
border-spacing: 1px;
box-shadow: 0 0 0 1px rgba(142, 142, 145, 0.12) inset;
}
th, td {
padding: .5em 1em;
box-shadow: 0 0 0 1px rgba(142, 142, 145, 0.12);
}
tr:hover, tr:nth-child(odd) td {
background: rgba(142, 142, 145, 0.04);
}
pre {
background: rgba(142, 142, 145, 0.12);
border-radius: 2px;
font-size: .8em;
/* font-family: fira mono,cousine,Monaco,Menlo,source code pro,monospace; */
font-family: 'Courier New', Courier, monospace;
margin: 1.5em 0;
padding: .8em 1.2em;
overflow-x: auto;
}
:not(pre) > code {
font-size: .9em;
background: rgba(142, 142, 145, 0.15);
/* opacity: .7; */
border-radius: 2px;
margin: 0 .1em;
padding: .2em .4em;
}
body > header, body > #preamble {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
background: rgba(255, 255, 255, 0.02);
box-shadow: 0 0 .6em rgba(28, 29, 34, 0.05);
border-bottom: 1px solid rgba(142, 142, 145, 0.16);
}
body > header > a, body > #preamble > a {
font-size: 1.3em;
}
article header, #content #preamble {
margin-bottom: 1.5em;
}
article header h1, #content #preamble h1 {
font-size: 1.8em;
margin: .5em .5em;
}
article h2, #content h2 {
padding-bottom: 0.3em;
font-size: 1.5em;
border-bottom: 1px solid #eaecef;
}
nav {
margin: .5em -.8em;
}
nav a {
margin: .5em .8em;
}
footer hr { /* custom */
width: 45%;
border-style: dashed;
margin-bottom: 1em;
}
body > header, body > #preamble, body > article, body>#content, body > footer {
padding: 1.5em;
}
@media (min-width: 32em) {
body > header, body > #preamble, body > article, body > #content, body > footer {
padding: 1.75em calc(38% - 12em);
}
}
.archive li {
font-size: 1.1em;
list-style: none;
}
.archive time, .archive post-date {
display: inline-block;
min-width: 10ch;
margin: 0 .2em;
}
.hidden {
display: none;
}
.more {
margin: 2em 0 1em;
}
.more a {
border-radius: 2px;
border: 1.5px solid #68f;
padding: .4em .8em;
transition: .2s;
}
.more a:hover {
color: #fff;
background: #68f;
text-decoration: inherit;
}
/***** custom *****/
.fontawesome a {
text-decoration: none;
}
.post-meta {
color: #8e8e91;
}
.comments-item {
margin-top: 10%;
}
.foot {
font-family: \\\"PT Sans\\\", -apple-system, BlinkMacSystemFont, \\\"Helvetica Neue\\\", \\\"Segoe UI\\\", \\\"Roboto\\\", sans-serif;
margin: 1%;
color: #8e8e91;
text-align: center;
}
</style>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<meta charset='utf-8'>
<link rel='alternate' type='application/rss+xml' href='/rss.xml' title='Justin Abrahms'>
<link href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css' rel='stylesheet'>
\"
org-static-blog-index-file \"no-one-cares\"
org-static-blog-archive-file \"index.html\"
org-static-blog-page-postamble (concat
\" <div class='foot'>
&copy; 2012 - 2022 &#183;
<a href=\\\"\" org-static-blog-publish-url \"\\\" >Home</a> &mdash; Theme <a href='https://github.com/RainerChiang/simpleness'>Simpleness</a>
<a href='#'><i class='fas fa-chevron-up'></i></a>
</div>\"))
(defun org-static-blog-assemble-archive ()
\"Re-render the blog archive page.
The archive page contains single-line links and dates for every
blog post, but no post body.\"
(let ((archive-filename (concat-to-dir org-static-blog-publish-directory org-static-blog-archive-file))
(archive-entries nil)
(post-filenames (org-static-blog-get-post-filenames)))
(setq post-filenames (sort post-filenames (lambda (x y) (time-less-p
(org-static-blog-get-date y)
(org-static-blog-get-date x)))))
(org-static-blog-with-find-file
archive-filename
(org-static-blog-template
org-static-blog-publish-title
(concat
\"<ul class=\\\"archive\\\">\"
(apply 'concat (mapcar (lambda (post-filename)
(concat
\"<li>\"
\"<time>\" (format-time-string (org-static-blog-gettext 'date-format) (org-static-blog-get-date post-filename))\"</time>\"
\"<a href=\\\"\" (org-static-blog-get-post-url post-filename) \"\\\">\"
(org-static-blog-get-title post-filename)
\"</a>\"
\"</li>\")
) post-filenames))
\"</div>\")))))
(defun org-static-blog-post-preamble (post-filename)
\"Returns the formatted date and headline of the post.
This function is called for every post and prepended to the post body.
Modify this function if you want to change a posts headline.\"
(concat
\"<h1 class=\\\"post-title\\\">\"
(org-static-blog-get-title post-filename)
\"</h1>\\n\"
\"<div class=\\\"post-meta\\\"><time>\"
(format-time-string (org-static-blog-gettext 'date-format)
(org-static-blog-get-date post-filename))
\"</time>\"
\"<div class=\\\"taglist\\\">\"
\"<i class=\\\"fas fa-folder\\\"></i>\"
(org-static-blog-post-taglist post-filename)
\"</div>\"
\"</div>\"))
(defun org-static-blog-post-postamble (post-filename)
\"Returns the tag list and comment box at the end of a post.
This function is called for every post and the returned string is
appended to the post body, and includes the tag list generated by
followed by the HTML code for comments.\"
(concat
(if (string= org-static-blog-post-comments \"\")
\"\"
(concat \"\\n<div id=\\\"comments\\\">\"
org-static-blog-post-comments
\"</div>\"))))
" :post-blank 1 :post-affiliated 118850 :mode nil :granularity element :cached t :parent (section (:begin 118530 :end 127953 :contents-begin 118530 :contents-end 127952 :robust-begin 118530 :robust-end 127950 :post-blank 1 :post-affiliated 118530 :mode section :granularity element :cached t :parent (headline (:raw-value "Blogging" :begin 118519 :end 127953 :pre-blank 0 :contents-begin 118530 :contents-end 127952 :robust-begin 118532 :robust-end 127950 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 1 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 118519 :title "Blogging" :mode nil :granularity element :cached t :parent (org-data (:begin 1 :contents-begin 1 :contents-end 167572 :end 167572 :robust-begin 3 :robust-end 167570 :post-blank 0 :post-affiliated 1 :path "/Users/jabrahms/src/justin.abrah.ms/blog/_posts/dotfiles/emacs.org" :mode org-data :CATEGORY "emacs" :cached t :org-element--cache-sync-key nil)) :org-element--cache-sync-key nil)) :org-element--cache-sync-key nil)) :org-element--cache-sync-key nil))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment