.Kind (page): .Type (posts) / .Layout ()
Bundle: n/a (regular page)
[ categories | tags | search ]
ox-hugo Test Site

This is the test site for the ox-hugo package for Emacs/Org-mode.

It is updated automatically after each commit to the ox-hugo repo. It was last updated on Mar 05, 2024 19:24 UTC.


This page was created/modified in commit 58a4aef "Add an example showing how to wrap Org headings in HTML tags" on 2018-05-08.
Markdown source of this page

Wrapping Org headings in HTML tags

tags: body wrapping headings section tags HTML


Description/Summary

Test the workaround for wrapping Org headings in HTML tags like section and div.

Content

ox-hugo Issue #160

Org Source #

#+html: <style>.left { float: left; width: 45%;} .right { float: right; width: 45%;}</style>

#+html: <section class="left">
# Hack to get around Blackfriday limitation: https://github.com/kaushalmodi/ox-hugo/issues/93
#+html: <section></section>
**** This section will show up on the left side
Content in the left side section
#+html: </section>

#+html: <section class="right">
#+html: <section></section>
**** This section will show up on the right side
Content in the right side section
#+html: </section>

# Clear the floats
#+html: <div style="clear: both;"></div>

Output #

This section will show up on the left side #

Content in the left side section

This section will show up on the right side #

Content in the right side section


Page (Debug)

Page VariableValue
Name "Wrapping Org headings in HTML tags"
Title "Wrapping Org headings in HTML tags"
ResourceType "page"
Kind "page"
Section "posts"
Draft false
Type "posts"
Layout ""
Permalink "https://ox-hugo.scripter.co/test/posts/wrapping-org-headings-in-html-tags/"
RelPermalink "/posts/wrapping-org-headings-in-html-tags/"
Data
page.Data{} (type:page.Data)
NextPageWhitespace trimming around special blocks (corner cases)
PrevPageNone
NextInSectionWhitespace trimming around special blocks (corner cases)
PrevInSectionNone

Page Params (Debug)

KeyTypeValue
descriptionstring " Test the workaround for wrapping Org headings in HTML tags like\n `section` and `div`.\n "
draftbool false
iscjklanguagebool false
lastmodtime.Time 2018-05-08 16:24:40 -0400 -0400
tags[]string "body" "wrapping" "headings" "section" "tags" "HTML"
titlestring "Wrapping Org headings in HTML tags"

File Object (Debug)

FileInfo VariableValue
UniqueID "1a0e78753038c7dd789db9cfd51e8b1d"
BaseFileName "wrapping-org-headings-in-html-tags"
TranslationBaseName "wrapping-org-headings-in-html-tags"
Lang "en"
Section "posts"
LogicalName "wrapping-org-headings-in-html-tags.md"
Dir "posts/"
Ext "md"
Path "posts/wrapping-org-headings-in-html-tags.md"

This site is generated using the ox-hugo package for Emacs/Org-mode + hugo-bare-min-theme + Hugo 0.101.0 (commit 466fa43c16709b4483689930a4f9ac8add5c9f66) . This site is powered by Netlify.
[Test Site home | ox-hugo home]