.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 Sep 11, 2019 12:44 UTC.


This page was created/modified in commit 6ab67ef "Retain markup in titles when deriving them for internal/x-post links" on 2019-08-02.
Markdown source of this page

Links outside the same post

tags: links


Description/Summary

ox-hugo Issue #30 External links with search options Links between documents can contain some search options. Only links to a heading with a :CUSTOM_ID property will be resolved to the appropriate location in the linked file. Links to headlines and links to targets will be resolved to the containing file. Link to CUSTOM_ID Link to a headline Link to a target Internal links Internal links point to targets in the current subtree that will be exported to the same Hugo post as the link source.


Content

ox-hugo Issue #30

Links between documents can contain some search options. Only links to a heading with a :CUSTOM_ID property will be resolved to the appropriate location in the linked file. Links to headlines and links to targets will be resolved to the containing file.

Internal links point to targets in the current subtree that will be exported to the same Hugo post as the link source. To handle links to an :ID property, the org-id feature must first be loaded, either through org-customize or by adding (require 'org-id) in your Emacs init file.

Cross-post links

Cross-post links are internal links pointing to targets in a different subtree that will be exported to another Hugo post than the link source in subtree-based exports. The Hugo’s ref and relref shortcodes only supports anchors to headlines, so links to a heading, a :CUSTOM_ID property, or an :ID property will be resolved to the appropriate location in the linked file, but links to targets will be resolved to the containing post.

Internal target

External target

External target with bold and italic


Page (Debug)

Page VariableValue
Name "Links outside the same post"
Title "Links outside the same post"
ResourceType "page"
Kind "page"
Section "posts"
Draft false
Type "posts"
Layout ""
Permalink "https://ox-hugo.scripter.co/test/posts/links-outside-the-same-post/"
RelPermalink "/posts/links-outside-the-same-post/"
Data
page.Data{} (type:page.Data)
NextPageLink to headings by name
PrevPageLinks to equations
NextInSectionLink to headings by name
PrevInSectionLinks to equations

Page Params (Debug)

KeyTypeValue
draftbool false
iscjklanguagebool false
lastmodtime.Time 2019-08-02 13:26:11 -0400 -0400
tags[]string "links"
titlestring "Links outside the same post"

File Object (Debug)

FileInfo VariableValue
UniqueID "8780ed88545cc9fd034c54b9843503a2"
BaseFileName "links-outside-the-same-post"
TranslationBaseName "links-outside-the-same-post"
Lang "en"
Section "posts"
LogicalName "links-outside-the-same-post.md"
Dir "posts/"
Ext "md"
Path "posts/links-outside-the-same-post.md"

This site is generated using the ox-hugo package for Emacs/Org-mode + hugo-bare-min-theme + Hugo 0.59.0-DEV (commit 5276f1e9, using Chroma commit 26f03cb) .
[Test Site home | ox-hugo home]