.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 Mar 05, 2024 19:24 UTC.


This page was created/modified in commit 21a479f "Support mailto: in links" on 2018-03-19.
Markdown source of this page

External Links

tags: links external-links


Description/Summary

Emacs download (FTP) Org mode (HTTPS) Dummy http link Gopher link support # ox-hugo Issue #132 The gopher link support requires user to add something like this to their user config: (with-eval-after-load 'org (defun org-link-gopher-export-link (link desc format) "Create export version of LINK and DESC to FORMAT." (let ((link (concat "gopher:" link))) (cond ((eq format 'html) (format "<a href=\"%s\">%s</a>" link desc)) ((eq format 'latex) (format "\\href{%s}{%s}" link desc)) (t ;`ascii', `md', `hugo', etc.


Content

ox-hugo Issue #132

The gopher link support requires user to add something like this to their user config:

(with-eval-after-load 'org
  (defun org-link-gopher-export-link (link desc format)
    "Create export version of LINK and DESC to FORMAT."
    (let ((link (concat "gopher:" link)))
      (cond
       ((eq format 'html)
        (format "<a href=\"%s\">%s</a>" link desc))
       ((eq format 'latex)
        (format "\\href{%s}{%s}" link desc))
       (t                               ;`ascii', `md', `hugo', etc.
        (format "[%s](%s)" desc link)))))
  (org-link-set-parameters "gopher" :export #'org-link-gopher-export-link))

Once that is evaluated, links like these will export fine i.e. no “Unable to resolve link” errors:

[[gopher://some.gopher.site][Dummy gopher link]]

ox-hugo Issue #149

My email


Page (Debug)

Page VariableValue
Name "External Links"
Title "External Links"
ResourceType "page"
Kind "page"
Section "posts"
Draft false
Type "posts"
Layout ""
Permalink "https://ox-hugo.scripter.co/test/posts/external-links/"
RelPermalink "/posts/external-links/"
Data
page.Data{} (type:page.Data)
NextPageExport with sub-heading tags
PrevPageFigures from included Org file
NextInSectionExport with sub-heading tags
PrevInSectionFigures from included Org file

Page Params (Debug)

KeyTypeValue
draftbool false
iscjklanguagebool false
lastmodtime.Time 2018-03-19 12:20:30 -0400 -0400
tags[]string "links" "external-links"
titlestring "External Links"

File Object (Debug)

FileInfo VariableValue
UniqueID "f7b9482919e89a2c3ee66fa7e086d392"
BaseFileName "external-links"
TranslationBaseName "external-links"
Lang "en"
Section "posts"
LogicalName "external-links.md"
Dir "posts/"
Ext "md"
Path "posts/external-links.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]