.Kind (page): .Type (posts) / .Layout ()
Bundle: n/a (regular page)
[ categories | tags | search ]
ox-hugo Test Site

This is the test site for the ox-hugo package for Emacs/Org-mode.

It is updated automatically after each commit to the ox-hugo repo. It was last updated on Oct 05, 2024 21:20 UTC.


This page was created/modified in commit efdf4c0 "Change `linenos` arg value to `true`; update tests" on 2022-03-08.
Markdown source of this page

Example blocks with line number annotation

tags: example


Description/Summary

Org reference Default new line number start # 1 2 line 1 line 2 An example without -n: foo bar 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 Specifying linenos parameter # In the below block, :linenos false switch was added to the example block header.


Content

Default new line number start #

1
2
line 1
 line 2

An example without -n:

foo
bar

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

Specifying linenos parameter #

In the below block, :linenos false switch was added to the example block header.

This is line 1
This is line 2
This is line 3

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://ox-hugo.scripter.co/test/posts/example-block-with-line-numbers/"
RelPermalink "/posts/example-block-with-line-numbers/"
Data
page.Data{} (type:page.Data)
NextPageExample blocks with ATTR_HTML (Goldmark)
PrevPageExpiry date set using Hugo-compatible date string
NextInSectionExample blocks with ATTR_HTML (Goldmark)
PrevInSectionExpiry date set using Hugo-compatible date string

Page Params (Debug)

KeyTypeValue
draftbool false
iscjklanguagebool false
lastmodtime.Time 2022-03-08 20:49:23 -0500 -0500
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.101.0 (commit 466fa43c16709b4483689930a4f9ac8add5c9f66) . This site is powered by Netlify.
[Test Site home | ox-hugo home]