.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

Indented source block

tags: src-block


Description/Summary

Test that indented source blocks export fine. (defun small-shell () (interactive) (split-window-vertically) (other-window 1) (shrink-window (- (window-height) 12)) (ansi-term)) More tests! List item 1 (message "I am in list at level-1 indentation") List item 1.1 (message "I am in list at level-2 indentation") List item 1.1.1 (message "I am in list at level-3 indentation") List item 2.1 (message "I am in list back at level-2 indentation") List item 2


Content

Test that indented source blocks export fine.

(defun small-shell ()
    (interactive)
    (split-window-vertically)
    (other-window 1)
    (shrink-window (- (window-height) 12))
(ansi-term))

More tests!

(message "And now I am at level-0 indentation")

Reference – hugo#4006


Page (Debug)

Page VariableValue
Name "Indented source block"
Title "Indented source block"
ResourceType "page"
Kind "page"
Section "posts"
Draft false
Type "posts"
Layout ""
Permalink "https://hugo-sandbox.netlify.com/posts/source-block-indented/"
RelPermalink "/posts/source-block-indented/"
Data
page.Data{} (type:page.Data)
NextPageImage with Hugo figure shortcode parameters set using ATTR_HTML
PrevPageInheriting tags
NextInSectionImage with Hugo figure shortcode parameters set using ATTR_HTML
PrevInSectionInheriting 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":"Indented source block"} (type:maps.Params)

File Object (Debug)

FileInfo VariableValue
UniqueID "fea1fa81e4c53d84cef5fc4eb01f2b40"
BaseFileName "source-block-indented"
TranslationBaseName "source-block-indented"
Lang "en"
Section "posts"
LogicalName "source-block-indented.md"
Dir "posts/"
Ext "md"
Path "posts/source-block-indented.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]