.Kind (page): .Type (posts) / .Layout ()
Bundle: n/a (regular page)
[ categories | projects | tags | search ]
Hugo Sandbox

This is an unofficial Hugo sandbox site to try to replicate possible bugs in hugo.

It is updated automatically after each commit to the hugo-sandbox repo. It was last updated on Jan 20, 2022 13:08 UTC.


This page was created/modified in commit 669d193 "Copy ox-hugo test site" on 2017-11-02.
Markdown source of this page

Org Source Block

tags: src-block


Description/Summary

Test case for the case where user has set org-hugo-langs-no-descr-in-code-fences to a list containing the element org. As this variable is dependent on user’s config, this post is not set to be exported by default. The issue with Hugo will be seen if: pygmentsCodeFences = true is set in the Hugo site config.toml, a source block’s language is set to one that’s not supported by Pygments (like org, and thus the below example with source code language set to org), and org-hugo-langs-no-descr-in-code-fences is set to a value not containing that lanaguage descriptor (org in this case).


Content

Test case for the case where user has set org-hugo-langs-no-descr-in-code-fences to a list containing the element org.

As this variable is dependent on user’s config, this post is not set to be exported by default.

The issue with Hugo will be seen if:

# Org comment
Export this post after setting
=org-hugo-langs-no-descr-in-code-fences= to =(org)= and temporarily
removing the =noexport= tag.

Page (Debug)

Page VariableValue
Name "Org Source Block"
Title "Org Source Block"
ResourceType "page"
Kind "page"
Section "posts"
Draft false
Type "posts"
Layout ""
Permalink "https://hugo-sandbox.netlify.com/posts/org-source-block/"
RelPermalink "/posts/org-source-block/"
Data
page.Data{} (type:page.Data)
NextPageOrg Babel Results
PrevPageOverriding Org-style tags
NextInSectionOrg Babel Results
PrevInSectionOverriding Org-style tags

Page Params (Debug)

maps.Params{"draft":false, "iscjklanguage":false, "lastmod":time.Date(2017, time.November, 2, 10, 12, 52, 0, time.Location("")), "tags":[]string{"src-block"}, "title":"Org Source Block"} (type:maps.Params)

File Object (Debug)

FileInfo VariableValue
UniqueID "e184db746cfebd17c54ef3f595cbec90"
BaseFileName "org-source-block"
TranslationBaseName "org-source-block"
Lang "en"
Section "posts"
LogicalName "org-source-block.md"
Dir "posts/"
Ext "md"
Path "posts/org-source-block.md"

This site is generated using the ox-hugo package for Emacs/Org-mode + hugo-bare-min-theme + Hugo 0.92.0 (commit b3549403) .

[Back to Hugo Sandbox home]