.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

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/"
RSSLink ""
Data
KeyTypeValue
Pageshugolib.Pages
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)

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

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

[Back to Hugo Sandbox home]