.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 Jun 26, 2022 21:18 UTC.

This page was created/modified in commit 1cb3895 "fix: Change inline src block output to work around CommonMark issue" on 2022-05-22.
Markdown source of this page

Inline code blocks

tags: inline code


Test exporting inline code blocks



Only results (default) #

src_emacs-lisp{(message "Hello 1")}

Hello 1

Above is the same as:

src_emacs-lisp[:exports results]{(message "Hello 1")}

Hello 1

Only code #

src_emacs-lisp[:exports code]{(message "Hello 2")}

(message "Hello 2")

Both code and results #

src_emacs-lisp[:exports both]{(message "Hello 3")}

(message "Hello 3") Hello 3

None! #

src_emacs-lisp[:exports none]{(message "Hello 4")}

Escape Hugo shortcodes #

{{< some_shortcode "foo" >}}
{{% some_shortcode "foo" %}}
{{< some_shortcode "foo" >}}

Using custom CSS for inline src blocks #

ox-hugo Issue #638

CSS used here:

  .inline-src.language-nim code::before {
        color: initial;
        content: "「";
  .inline-src.language-nim code::after {
        color: initial;
        content: "」";

ox-hugo Issue #640 – Test that straight quotes in inline src blocks don’t get rendered as curved quotes by Hugo/Goldmark’s Typographer.

In Nim, echo "hello" will print hello.

Page (Debug)

Page VariableValue
Name "Inline code blocks"
Title "Inline code blocks"
ResourceType "page"
Kind "page"
Section "posts"
Draft false
Type "posts"
Layout ""
Permalink "https://ox-hugo.scripter.co/test/posts/inline-code-blocks/"
RelPermalink "/posts/inline-code-blocks/"
page.Data{} (type:page.Data)
NextPageInheriting tags
PrevPageInline hyperlinked and non-hyperlinked images
NextInSectionInheriting tags
PrevInSectionInline hyperlinked and non-hyperlinked images

Page Params (Debug)

descriptionstring "Test exporting inline code blocks"
draftbool false
iscjklanguagebool false
lastmodtime.Time 2022-05-22 15:58:40 -0400 -0400
tags[]string "inline" "code"
titlestring "Inline code blocks"

File Object (Debug)

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