Total Pageviews

Monday, 11 November 2024

基于OrgMode的静态站点生成器orgpress

 modern emacs static blog generator https://ghcr.io/jcouyang/orgpress

jcouyang/orgpress status

fork this repo and clone:

./compile

Or Publish to Gh-pages using Actions

https://github.com/jcouyang/orgpress/blob/master/.github/workflows/publish.yml

Prerequisite

Configuration

variables in config.el

(?D . ,(format-time-string "<%Y-%m-%d %a>" (org-publish-find-date entry project)))
(?c . ,(org-publish-find-property entry :description project 'html))
(?l . ,(concat "file:" entry))
(?L . ,(replace-regexp-in-string "\.org" "\.html" entry))

header and footer html template

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

fromhttps://github.com/jcouyang/orgpress

(https://github.com/jcouyang/blog)

No comments:

Post a Comment