Using a columns
shortcode from an theme to export HTML columns (not the columns in tables)
#550
-
The geekdoc theme allows for content typeset in columns, see https://geekdocs.de/shortcodes/columns/. This uses a magic separator Now, a
However, this doesn't seem to be the right org-mode solution, since there is already
Would this be a good suggestion for support in ox-hugo? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
Hello,
One way to is define that special block such that Org mode exports the inside as raw Org, without doing any conversion to Markdown or HTML. But then, inside that special block, you will need to type the raw Markdown+HTML, just as if you were typing in a Markdown file. Example:
See https://ox-hugo.scripter.co/doc/org-special-blocks/#raw-org-contents.
Sacha Chua has defined a custom special block type called "column50". See https://sachachua.com/dotemacs/#org7deeabb (that link is not a permalink so it might change in future. So search for column50 on that page).
That's true. Your last suggestion looks the cleanest, and you should be able to do that by putting in some work in a custom Hugo shortcode called |
Beta Was this translation helpful? Give feedback.
-
Hint: See that shortcode definition: https://github.com/thegeeklab/hugo-geekdoc/blob/main/layouts/shortcodes/columns.html and extract the inside of that shortcode into a new shortcode. |
Beta Was this translation helpful? Give feedback.
-
Or.. copy that shortcode definition to your site to override it and then change the |
Beta Was this translation helpful? Give feedback.
-
@johanwk OK, I won't usually do this, but this was fun :) Check out the instructions on https://geekdoc-theme-columns-sc--hugo-mwe.netlify.app/posts/columns/ on how to customize geekdoc theme's |
Beta Was this translation helpful? Give feedback.
@johanwk OK, I won't usually do this, but this was fun :)
Check out the instructions on https://geekdoc-theme-columns-sc--hugo-mwe.netlify.app/posts/columns/ on how to customize geekdoc theme's
columns
shortcode and use in Org.source commit