Hugo

Thumbnail

Details and summary


Publication Date: 2019-04-03 00:00
Modified Date: 2019-04-07 14:39

Howt write “Details” and “Summary” in ox-hugo. (org) #+begin_details #+begin_summary This is aSummary. #+end_summary This is a detail. #+end_details This is Summary. This is a detail.

Thumbnail

Do not put TOC in Summary


Publication Date: 2019-04-03 00:00
Modified Date: 2019-04-06 06:35

By default, The TOC generated by ox-hugo is inserted into “Summary” in Hugo. This is how to prebent it (Taken from ox-hugo test site). Copy summary_minus_toc.html Copy summary_minus_toc.html from this site. summary_minus_toc.html summary_minus_toc.html looks like this: Code Snippet 1: layouts/partials/summary_minus_toc.html (html) {{- with .Description -}} {{- . | markdownify | printf "<p>%s</p>" | safeHTML -}} {{- else -}} {{- $summary_has_org_toc := substr .Content 0 30 | findRE "[\".

Thumbnail

Reference to LaTeX math in ox-hugo


Publication Date: 2019-04-02 00:00
Modified Date: 2019-04-06 06:35

In Org-mode, you can reference LaTeX math, with \ref{eq:1}, but in ox-hugo it does not work by default. This math sinippet: (org) \begin{equation} \label{eq:01} y = ax + b \end{equation} this puroduces this: \begin{equation} \label{eq:01} y = ax + b \end{equation} Here I referece Eq. \ref{eq:02} (Eq(\ref{eq:02}). Without the settings below, this reference does not work. Make static/mathjax-config.js as follows (take from ox-hugo’s test site): Code Snippet 1: static/mathjax-config.

Thumbnail

From Org-mode marukup to Markdown


Publication Date: 2019-04-05 00:00
Modified Date: 2019-04-06 06:35

Here are how ox-hugo convert markups (like bold, mono) in Org to Markdown. Table: 1: From Org-mode to Markdown Org Markdown HTML *bold* **bold** bold /italics/ _italics_ italics =monospace= `monospace` monospace ~key-binding~ `key-binding` key-binding - if org-hugo-use-code-for-kbd nil [Default] ~key-binding~ <kbd>key-binding</kbd> - if org-hugo-use-code-for-kbd is not nil - To render <kbd> tag, needs CSS +strike-through+ ~~strike-through~~ strike-through _underline_ <span class = "underline">underline</span> underline - to render this as underline, CSS is needed I have set org-hugo-use-code-for-kbd to t :


This website uses cookies to ensure you get the best experience on our website. Learn more Got it