.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 Oct 09, 2018 14:48 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/"
RSSLink ""
Data
KeyTypeValue
Pageshugolib.Pages
NextPageOrg Babel Results
PrevPageOverriding Org-style tags
NextInSectionOrg Babel Results
PrevInSectionOverriding Org-style tags

Page Params (Debug)

KeyTypeValue
draftbool false
iscjklanguagebool false
lastmodtime.Time 2017-11-02 10:12:52 -0400 -0400
tags[]string "src-block"
titlestring "Org Source Block"

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.50-DEV (commit d5d50e2f, using Chroma commit d5ca12b) .

[Back to Hugo Sandbox home]