Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/proprietary/jekyll-org-to-html
Jekyll org-mode (Emacs) converter; uses Emacs's native org-mode HTML export to generate HTML
https://github.com/proprietary/jekyll-org-to-html
emacs jekyll jekyll-plugin org-mode
Last synced: about 1 month ago
JSON representation
Jekyll org-mode (Emacs) converter; uses Emacs's native org-mode HTML export to generate HTML
- Host: GitHub
- URL: https://github.com/proprietary/jekyll-org-to-html
- Owner: proprietary
- Created: 2019-01-13T06:27:33.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-13T23:43:05.000Z (almost 6 years ago)
- Last Synced: 2024-11-16T20:11:34.288Z (about 2 months ago)
- Topics: emacs, jekyll, jekyll-plugin, org-mode
- Language: Ruby
- Size: 4.88 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jekyll-org-to-html
Jekyll converter for org-mode (Emacs) files. Unlike other org-mode converters for Jekyll, this invokes Emacs directly and uses Emacs's mature implementation of org-mode to convert your org-mode files to HTML the fly.
Yes, this is much less efficient than a standalone implementation of an org-mode parser and HTML exporter; a new Emacs process is created for every org-mode file being converted. But the idea of a static site generator is to build your website once on your local machine, like compiling an executable binary for distribution. If building the website takes 5 seconds longer, that doesn't really matter. I'll take 5 seconds of waiting in exchange for a lack of weird bugs.
# Dependencies
Emacs (≥v25 preferably) must be installed and visible on your PATH.
# Installation
$ gem install jekyll-org-to-html
Add `gem "jekyll-org-to-html"` to your Gemfile.
Add to `_config.yml` in the root directory of your Jekyll site:
```yaml
plugins:
- jekyll-org-to-html
```Any posts/pages you create with the .org extension should generate as HTML. You can set org-mode options as usual with the `#+OPTIONS` directive at the top of each org-mode file (below the front matter). Example:
---
layout: default
---
#+OPTIONS: toc:t
* my headline
my section
* my second headline
** my subheadline
my second sectionEverything you can do by writing an org-mode file and exporting it as HTML in Emacs can be done here because it uses Emacs itself to do the conversion.