example: images

This commit is contained in:
Ignacio Ballesteros
2026-02-20 10:51:05 +01:00
parent a907d6513b
commit 3deec2d011
3 changed files with 3 additions and 4 deletions

View File

@@ -11,8 +11,7 @@ must handle.
An image hosted on the web — ox-hugo passes the URL through as-is and no
local file handling is needed.
#+ATTR_HTML: :alt Quartz logo (external URL)
[[https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSkzsTuLOt8esM6enoKwkzqA52G3p9hldlf2g&s][file:quartz-logo.jpg]]
[[https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSkzsTuLOt8esM6enoKwkzqA52G3p9hldlf2g&s][file:quartz-logo-external.png]]
* Scenario 2: Local image (same notes directory)
@@ -21,7 +20,7 @@ ox-hugo copies files referenced with a relative path into the Hugo =static/=
assets tree automatically.
#+CAPTION: Quartz logo (local, same notes dir)
[[file:quartz-logo.jpg]]
[[file:quartz-logo.png]]
* Scenario 3: External image (outside notes directory)
@@ -30,4 +29,4 @@ shared assets folder or a system path. ox-hugo still copies it into =static/=
and rewrites the reference.
#+CAPTION: Quartz logo (outside notes dir)
[[file:/home/ignaciobll/code/quartz-org-roam/notes-external/external-location-image.jpg]]
[[file:/home/ignaciobll/code/quartz-org-roam/notes-external/external-location-image.png]]