.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 6f5dbf3 "Support title and style attributes for standalone links" on 2022-02-23.
Markdown source of this page

Links with attributes

tags: links attributes


Testing links with different HTML attributes.


This link (to Hyperlinks chapter in Org manual) will open in a new tab as it is annotated with target="_blank".

Here’s the same link but with target="_self" annotation. So clicking it will open that link in this same tab!

Here’s the same link again, but this time there is no #+attr_html annotation. So the behavior of clicking this link will depend on the browser (typically an external link will open in a new tab automatically).

Image linked to image with target attribute #

ox-hugo Issue #133

Above is an hyperlinked image with the HTML attributes set as #+attr_html: :width 10% :target _self in Org.

Here’s an inline hyperlinked image with the exact same HTML attributes: org-mode-unicorn-logo.png. So, clicking this image too should open the linked image in the same brower tab.


Page (Debug)

Page VariableValue
Name "Links with attributes"
Title "Links with attributes"
ResourceType "page"
Kind "page"
Section "posts"
Draft false
Type "posts"
Layout ""
Permalink "https://ox-hugo.scripter.co/test/posts/links-with-attributes/"
RelPermalink "/posts/links-with-attributes/"
page.Data{} (type:page.Data)
NextPageLinks to tables
PrevPageMake the author front-matter plural
NextInSectionLinks to tables
PrevInSectionMake the author front-matter plural

Page Params (Debug)

aliases[]string "/posts/links-with-target-attribute"
descriptionstring "Testing links with different HTML attributes."
draftbool false
iscjklanguagebool false
lastmodtime.Time 2022-02-23 16:35:22 -0500 -0500
tags[]string "links" "attributes"
titlestring "Links with attributes"

File Object (Debug)

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