.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

Code-fenced source blocks (default behavior)

tags: src-block


Description/Summary

The source blocks are code-fenced by default. Here are few variables that you might like to change in the local.mk: prefix: Org installation directory prefix = /dir/where/you/want/to/install/org # Default: /usr/share The .el files will go to $(prefix)/emacs/site-lisp/org by default. If you’d like to change that, you can tweak the lispdir variable. infodir: Org Info installation directory. I like to keep the Info file for development version of Org in a separate directory.


Content

The source blocks are code-fenced by default.

Here are few variables that you might like to change in the local.mk:


Page (Debug)

Page VariableValue
Name "Code-fenced source blocks (default behavior)"
Title "Code-fenced source blocks (default behavior)"
ResourceType "page"
Kind "page"
Section "posts"
Draft false
Type "posts"
Layout ""
Permalink "https://hugo-sandbox.netlify.com/posts/code-fenced-src-blocks-default/"
RelPermalink "/posts/code-fenced-src-blocks-default/"
Data
page.Data{} (type:page.Data)
NextPageSource block without list syntax in a list
PrevPageDon't Use Org Code markup for kbd tag
NextInSectionSource block without list syntax in a list
PrevInSectionDon't Use Org Code markup for kbd tag

Page Params (Debug)

maps.Params{"date":time.Date(2017, time.July, 31, 0, 0, 0, 0, time.UTC), "draft":false, "iscjklanguage":false, "lastmod":time.Date(2017, time.November, 2, 10, 12, 52, 0, time.Location("")), "publishdate":time.Date(2017, time.July, 31, 0, 0, 0, 0, time.UTC), "tags":[]string{"src-block"}, "title":"Code-fenced source blocks (default behavior)"} (type:maps.Params)

File Object (Debug)

FileInfo VariableValue
UniqueID "c910d1a1056172fd1dc60aedf0a78586"
BaseFileName "code-fenced-src-blocks-default"
TranslationBaseName "code-fenced-src-blocks-default"
Lang "en"
Section "posts"
LogicalName "code-fenced-src-blocks-default.md"
Dir "posts/"
Ext "md"
Path "posts/code-fenced-src-blocks-default.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]