Contents

Testing Orgmode Workflow

I love Emacs ❀️ and Org-mode πŸ“ and a weebit of hugo?

rms.emacs.png

ox-hugo

Hugo uses go-org package for parsing org files and go-org's goal is not to implment every feature under the orgmode rather a subset which mean a lot of stuff in org-mode files in hugo will have default styles or just look broken.

Now should you not like the simplicity of go-org and want to parse everything (almost, because you can never have everything!) you will have to go with ox-hugo.

Now i tried ox-hugo and gave up for now:

  • org-blackfriday-table-cell: Args out of range: [], 0 which did not go away after I removed my table
  • org-blackfriday-latex-fragment: Wrong type argument: char-or-string-p, [org-element-deferred org-element--substring (0 54) t] for the latex which renders find in org-latex-preview

For another time. >>> πŸ‡ πŸ•³οΈ <<<<

Alternatitives

Fix/Fork LoveIt and add better go-org support

Do like the LoveIt theme a lot

Verdict

Jury is still out - ox-hugo does look temptingly complicated ngl.

Shortcodes

Note
This might be a futile attemp and in near future may have to settle for something more "pure" but LoveIt theme is too awesome!

Comments

  • <!-- html comments will not work --> ❌
  • #+begin_comment/#+end_comment ❌
  • *COMMENT nopesss ❌
  • # here is how you comment βœ…

Horizontal Rules

*** / --- / ___ ❌
----- βœ…


Body Copy

This is raw HTML in Org-mode.

^

#+BEGIN_EXPORT html
<div class="my-box">
  <p>This is raw HTML in Org-mode.</p>
</div>
#+END_EXPORT

Line Breaks

can I line break this with \\?
yes I can, just make sure the next line has some text

Text Customizations

*bold* bold
/italics/ italics
_underline_ underline
+strikethrough+ strikethrough
/+*all*+/ all together

Blockquotes

β€œGrief is love with no place to go.”

β€” Jamie Anderson

Emojis

The unicode of emojis work fine but, need a effective way to get the unicode for emojis.

Images

[[file:./rms.emacs.png]] https://octodex.github.com/images/dojocat.jpg

Tags & Categories

Note: breaks on Hugo >0.144.0

#+tags: blue green immediate error! ❌
#+tags: blue green immediate error! ❌
#+hugo_tags: blue green compiles but does not work right ❌
#+tags[]: Hugo Org-Mode Writing yes finally! βœ…
#+categories[]: emacs βœ…

Task Lists

broken would be nice if we could..

#+begin_src markdown
- [ ] task 1
- [ ] task 2
- [ ] task 3
#+end_src

Codeblock

broken #src_python{hello'}

def factorial(n):
    if n == 0:
        return 1
    else:
        return n * factorial(n - 1)
None

LoveIt ```html ... ``` has nicer formatting with line numbers and heading, but it should work for hugo too tbh