modern emacs static blog generator
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
auto
html
org
slides
.gitignore
Dockerfile.emacs
Dockerfile.orgpress
README.org
circle.yml
compile
config.el
emacs.el

README.org

Dockerized Org Blog Generator

TLDR

fork this repo and clone

./compile

Install Docker

https://www.docker.com/products/overview

Configuration

variables in config.el

  • config-blog-title: you blog title
  • config-base-url: base url
  • config-home-link: about link
  • config-date-format: date format using elisp time parsing format
  • config-entry-format: template for each blog item
(format-spec fmt
               `((?t . ,(org-publish-find-title file t))
                 (?d . ,(format-time-string org-publish-sitemap-date-format
                                            (org-publish-find-date file)))
                 (?D . ,(format-time-string "<%Y-%m-%d %a>" (org-publish-find-date file)))
                 (?a . ,(or (plist-get project-plist :author) user-full-name))
                 (?c . ,(org-blog-find-content-lines
                         file (or (plist-get project-plist
                                             :blog-content-lines) 5)))
                 (?l . ,(concat "file:" link))
                 (?L . ,(replace-regexp-in-string "\.org" "\.html" link))
                 (?p . ,(org-blog-find-description file t))))

header and footer html template

  • html/preamble.html: header
  • html/postamble.html: footer
  • html/header.html: custom content inside <head/>

Live Demo

https://blog.oyanglul.us