.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 dff9b47 "Replace external domain image links with local #test site" on 2018-05-03.
Markdown source of this page

Links with target attribute

tags: links


Description/Summary

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).


Content

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 target attribute"
Title "Links with target attribute"
ResourceType "page"
Kind "page"
Section "posts"
Draft false
Type "posts"
Layout ""
Permalink "https://ox-hugo.scripter.co/test/posts/links-with-target-attribute/"
RelPermalink "/posts/links-with-target-attribute/"
Data
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)

KeyTypeValue
blackfridaymap[string]interface {}
KeyTypeValue
hreftargetblankbool false
draftbool false
iscjklanguagebool false
lastmodtime.Time 2018-05-03 21:26:15 -0400 -0400
tags[]string "links"
titlestring "Links with target attribute"

File Object (Debug)

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