.Kind (home): .Type (page) / .Layout ()
Bundle: branch
[ 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 f0dd0e2 "Support image copying for the homepage branch bundle case" on 2018-04-23.
Markdown source of this page

Content

Image in homepage branch bundle:


Resources

Whitespace trimming around special blocks

(Last modified on Tue Mar 8, 2022)

Whitespace trimming using ~#+header: :trim-pre t :trim-post t~ before special blocks.

Source blocks with line number annotation (Goldmark)

(Last modified on Tue Mar 8, 2022)

Org reference Cases # Default new line number start # Org source # #+begin_src emacs-lisp -n ;; this will export with line number 1 (default) (message "This is line 2") #+end_src Output # 1 2 ;; this will export with line number 1 (default) (message "This is line 2") Specify new line number start # Org source # #+begin_src emacs-lisp -n 20 ;; this will export with line number 20 (message "This is line 21") #+end_src Output # 20 21 ;; this will export with line number 20 (message "This is line 21") Default continued line numbers # Org source # #+begin_src emacs-lisp +n ;; This will be listed as line 22 (message "This is line 23") #+end_src Output # 22 23 ;; This will be listed as line 22 (message "This is line 23") Specify continued line numbers jump # Org source # #+begin_src emacs-lisp +n 10 ;; This will be listed as line 33 (message "This is line 34") #+end_src Output # 33 34 ;; This will be listed as line 33 (message "This is line 34") Specifying linenos parameter # (message "This is line 1") (message "This is line 2") (message "This is line 3") 30(message "This is line 30") 31(message "This is line 31") 32(message "This is line 32")

Source blocks with line number annotation (Blackfriday)

(Last modified on Tue Mar 8, 2022)

Org reference Hugo highlight shortcode with line numbers Cases # Default new line number start # Org source # #+begin_src emacs-lisp -n ;; this will export with line number 1 (default) (message "This is line 2") #+end_src Output # 1 2 ;; this will export with line number 1 (default) (message "This is line 2") Specify new line number start # Org source # #+begin_src emacs-lisp -n 20 ;; this will export with line number 20 (message "This is line 21") #+end_src Output # 20 21 ;; this will export with line number 20 (message "This is line 21") Default continued line numbers # Org source # #+begin_src emacs-lisp +n ;; This will be listed as line 22 (message "This is line 23") #+end_src Output # 22 23 ;; This will be listed as line 22 (message "This is line 23") Specify continued line numbers jump # Org source # #+begin_src emacs-lisp +n 10 ;; This will be listed as line 33 (message "This is line 34") #+end_src Output # 33 34 ;; This will be listed as line 33 (message "This is line 34") Specifying linenos parameter # (message "This is line 1") (message "This is line 2") (message "This is line 3") 30(message "This is line 30") 31(message "This is line 31") 32(message "This is line 32")

Source blocks with highlighting (Goldmark)

(Last modified on Tue Mar 8, 2022)

Without line numbers # Org source # #+begin_src emacs-lisp :hl_lines 1,3-5 (message "This is line 1") (message "This is line 2") (message "This is line 3") (message "This is line 4") (message "This is line 5") (message "This is line 6") #+end_src Output # (message "This is line 1") (message "This is line 2") (message "This is line 3") (message "This is line 4") (message "This is line 5") (message "This is line 6") Above highlighting might look weird as the highlighting spans the full page/container width.

Source blocks with highlighting (Blackfriday)

(Last modified on Tue Mar 8, 2022)

Without line numbers # Org source # #+begin_src emacs-lisp :hl_lines 1,3-5 (message "This is line 1") (message "This is line 2") (message "This is line 3") (message "This is line 4") (message "This is line 5") (message "This is line 6") #+end_src Output # (message "This is line 1") (message "This is line 2") (message "This is line 3") (message "This is line 4") (message "This is line 5") (message "This is line 6") Above highlighting might look weird as the highlighting spans the full page/container width.

Example blocks with line number annotation

(Last modified on Tue Mar 8, 2022)

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.

Example blocks with ATTR_HTML (Goldmark)

(Last modified on Tue Mar 8, 2022)

Some text. This is an example Line 2 Line 3 Some more text. 1 2 3 This is an example Line 2 Line 3

Example blocks with ATTR_HTML (Blackfriday)

(Last modified on Tue Mar 8, 2022)

Some text. This is an example Line 2 Line 3 Some more text. 1 2 3 This is an example Line 2 Line 3

Citation CSL (Turkish)

(Last modified on Sun Feb 27, 2022)

Test auto-translated Bibliography heading insertion for citations using oc.el + citeproc.el.

Citation CSL

(Last modified on Sun Feb 27, 2022)

Test citation CSL using oc.el + citeproc.el.


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]