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
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.
(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]]
Mailto link support #
ox-hugo Issue #149
Page (Debug)
| Page Variable | Value | |
|---|---|---|
| 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 |
| |
| NextPage | Export with sub-heading tags | |
| PrevPage | Figures from included Org file | |
| NextInSection | Export with sub-heading tags | |
| PrevInSection | Figures from included Org file |
Page Params (Debug)
| Key | Type | Value |
|---|---|---|
| draft | bool | false |
| iscjklanguage | bool | false |
| lastmod | time.Time | 2018-03-19 12:20:30 -0400 -0400 |
| tags | []string | "links" "external-links" |
| title | string | "External Links" |
File Object (Debug)
| FileInfo Variable | Value |
|---|---|
| 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" |