.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

Example blocks with line number annotation

tags: example


Description/Summary

Org reference Hugo highlight shortcode with line numbers Default new line number start 1 2 line 1 line 2 Specify new line number start 20 21 line 20 line 21 Default continued line numbers 22 23 line 22 line 23 Specify continued line numbers jump 33 34 line 33 line 34


Content

Default new line number start

1
2
line 1
 line 2

Specify new line number start

20
21
line 20
line 21

Default continued line numbers

22
23
 line 22
line 23

Specify continued line numbers jump

33
34
line 33
line 34

Page (Debug)

Page VariableValue
Name "Example blocks with line number annotation"
Title "Example blocks with line number annotation"
ResourceType "page"
Kind "page"
Section "posts"
Draft false
Type "posts"
Layout ""
Permalink "https://hugo-sandbox.netlify.com/posts/example-block-with-line-numbers/"
RelPermalink "/posts/example-block-with-line-numbers/"
RSSLink ""
Data
KeyTypeValue
Pageshugolib.Pages
NextPageDon't Prefer Hyphen in Tags
PrevPageFilling is not preserved
NextInSectionDon't Prefer Hyphen in Tags
PrevInSectionFilling is not preserved

Page Params (Debug)

KeyTypeValue
draftbool false
iscjklanguagebool false
lastmodtime.Time 2017-11-02 10:12:52 -0400 -0400
tags[]string "example"
titlestring "Example blocks with line number annotation"

File Object (Debug)

FileInfo VariableValue
UniqueID "3d2c2c711ad1e84cb5bd4ff8e4b6ba22"
BaseFileName "example-block-with-line-numbers"
TranslationBaseName "example-block-with-line-numbers"
Lang "en"
Section "posts"
LogicalName "example-block-with-line-numbers.md"
Dir "posts/"
Ext "md"
Path "posts/example-block-with-line-numbers.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]