Links to images
tags: links internal-links image figure
Description/Summary
Test for internal links to image references.Content
Note: When targeting a #+name
keyword, #+caption
keyword is
mandatory in order to get proper numbering for source blocks,
images and tables.
#+caption: Org Logo
#+name: img__org_logo1
[[/images/org-mode-unicorn-logo.png]]
*Here we refer to [[img__org_logo2]].*
#+include: "../misc/common.org::#lorem-ipsum" :only-contents t
Here's the same image again, but with a different Org link ID:
#+caption: Same Org Logo
#+name: img__org_logo2
[[/images/org-mode-unicorn-logo.png]]
*Here we refer to [[img__org_logo1]].*
will output below (lorem-ipsum added to increase page content so that the link jump is evident):
Here we refer to 2.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque et quam metus. Etiam in iaculis mi, sit amet pretium magna. Donec ut dui mi. Maecenas pharetra sapien nunc, ut mollis enim aliquam quis. Nam at ultricies metus. Nulla tempor augue in vestibulum tristique. Phasellus volutpat pharetra metus quis suscipit. Morbi maximus sem dolor, id accumsan ipsum commodo non.
Fusce quam ligula, gravida ac dui venenatis, bibendum commodo lorem. Duis id elit turpis. Integer sed diam nibh. Donec tempus lacinia odio, a laoreet velit dictum id. Suspendisse efficitur euismod purus et porttitor. Aliquam sit amet tellus mauris. Mauris semper dignissim nibh, faucibus vestibulum purus varius quis. Suspendisse potenti. Cras at ligula sit amet nunc vehicula condimentum quis nec est. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec iaculis, neque sit amet maximus rhoncus, nisl tortor convallis ante, ut mollis purus augue ut justo. Praesent felis urna, volutpat sit amet posuere dictum, luctus quis nibh. Proin et tristique ipsum, in aliquam ante.
Aenean eget ex mauris. Cras ut tempor quam. Curabitur eget nulla laoreet, bibendum neque porta, tempus nulla. Ut tellus nisi, semper eu ligula pretium, aliquam accumsan dolor. Nunc fermentum cursus arcu eu suscipit. Nam dolor tellus, efficitur sed condimentum at, fringilla eget nisi. Nulla luctus metus felis. Suspendisse potenti. Cras lacinia orci nec dui sodales commodo. Donec tellus arcu, congue porta ultrices non, pretium et sapien. Proin mattis risus dignissim feugiat tristique. Donec nibh lorem, facilisis id posuere ut, varius ac urna. Etiam ultrices dignissim mauris, quis venenatis ex semper ut.
Curabitur id fermentum erat, rhoncus scelerisque est. Sed pulvinar, nulla sed sollicitudin scelerisque, ipsum erat sollicitudin dolor, ut commodo arcu justo vel libero. Curabitur turpis dolor, fermentum ut elit a, vehicula commodo nunc. Sed sit amet blandit nulla, quis sodales massa. Donec lobortis, urna vel volutpat ullamcorper, mauris est efficitur nulla, et suscipit velit dui at metus. Aliquam id sem sed metus tristique scelerisque nec vitae odio. Phasellus a pellentesque libero, vel convallis metus. Sed nec fringilla magna, non varius ex. Sed interdum eleifend ligula, quis porta enim ultrices a. Donec hendrerit diam ac elementum tincidunt.
Pellentesque eget nisl rhoncus, malesuada justo nec, suscipit quam. Nam sodales mauris eu bibendum suscipit. Vivamus sodales dui lorem, scelerisque pellentesque diam fermentum sed. Etiam fermentum nisl id nisl blandit, sit amet semper erat ultricies. Nulla tincidunt nulla metus, eu imperdiet lorem malesuada sagittis. Maecenas accumsan risus sed ante eleifend, vitae pretium leo porta. Suspendisse vitae eros vitae dui ornare condimentum id sit amet mauris. Etiam tincidunt consequat risus, eu posuere mi. Donec ut nunc eu massa porttitor suscipit nec nec neque. Suspendisse vitae tincidunt justo, sed molestie velit. Nullam pellentesque convallis ante, vel posuere libero blandit in.
Here’s the same image again, but with a different Org link ID:
Here we refer to 1.
Reference: (org) Images and tables.
Page (Debug)
Page Variable | Value | |
---|---|---|
Name | "Links to images" | |
Title | "Links to images" | |
ResourceType | "page" | |
Kind | "page" | |
Section | "posts" | |
Draft | false | |
Type | "posts" | |
Layout | "" | |
Permalink | "https://ox-hugo.scripter.co/test/posts/links-to-images/" | |
RelPermalink | "/posts/links-to-images/" | |
Data |
| |
NextPage | Links to equations | |
PrevPage | Links to Info manual nodes | |
NextInSection | Links to equations | |
PrevInSection | Links to Info manual nodes |
Page Params (Debug)
Key | Type | Value |
---|---|---|
description | string | "Test for internal links to image references." |
draft | bool | false |
iscjklanguage | bool | false |
lastmod | time.Time | 2022-01-01 01:08:45 -0500 -0500 |
tags | []string | "links" "internal-links" "image" "figure" |
title | string | "Links to images" |
File Object (Debug)
FileInfo Variable | Value |
---|---|
UniqueID | "8d3531bfc1dbf78a05812898507cd78f" |
BaseFileName | "links-to-images" |
TranslationBaseName | "links-to-images" |
Lang | "en" |
Section | "posts" |
LogicalName | "links-to-images.md" |
Dir | "posts/" |
Ext | "md" |
Path | "posts/links-to-images.md" |