eggcaker / jekyll-org

org-mode converter for Jekyll.
http://eggcaker.github.io/jekyll-org
MIT License
133 stars 29 forks source link

Feature request: org-mode properties rather than YAML frontmatter for regular pages as well as posts #16

Closed stig closed 4 years ago

stig commented 8 years ago

As per the discussion here: https://github.com/eggcaker/jekyll-org/pull/15#issuecomment-209243646

I would love to use org-mode properties rather than YAML frontmatter for regular pages as well, e.g. something like

#+LAYOUT: post
#+TITLE:  Welcome to Jekyll with orgmode!

this is my page's content

rather than:


---
layout: post
title: Welcome to Jekyll with orgmode!

---

this is my page's content
njayinthehouse commented 7 years ago

If this is an open issue, why is it stated that this is possible in the README? (Followed the instructions in the README, to my dismay it didn't work.)

eggcaker commented 7 years ago

it only working with posts not pages

mohkale commented 4 years ago

To clarify, I believe this issue is two fold:

In our situation if an org file doesn't have a YAML header the file will be treated as a StaticFile and won't end up having a Document instance made. In our current code base, all the conversion logic for org files is in the Document class so it doesn't end up being converted. So the solution is to make jekyll create Document instances for org files, even when they don't have YAML headers. This might be kind of messy, but it should work :).

mohkale commented 4 years ago

Okay, I've managed to get conversion to HTML supported for org files in collections other than_ posts. A major improvement 😄 if I do say so myself (to help my ego justify why it took an entire day to do this & only 10 lines of code 😢😨😫).

eggcaker commented 4 years ago

the converter merged and released. working now, Thanks @MoHKale

mohkale commented 4 years ago

no problem, I hope there weren't any issues.