#+hugo_base_dir: ../../ #+hugo_section: images-in-content # #+startup: inlineimages #+author: * Post 1 :PROPERTIES: :EXPORT_FILE_NAME: post1 :END: Post 1 contents I have the =gnu.png= file in the same directory that contains the source Org file of this post. #+begin_example ./content-org ├── images-in-content/ │ ├── images-in-content.org │ │ * Post 1 (Org subtree) → ./content/images-in-content/post1.md **THIS POST** │ │ * Post 2 (Org subtree) → ./content/images-in-content/post2.md │ ├── gnu.png → ./static/ox-hugo/gnu.png **BELOW IMAGE** │ └── org.png → ./static/ox-hugo/org.png ├── post3/ │ ├── post3.org → ./content/images-in-content/post3.md │ └── gnu-copy.png → ./static/ox-hugo/gnu-copy.png └── post4/ ├── post4.org → ./content/images-in-content/post4.md └── org-copy.png → ./static/ox-hugo/org-copy.png #+end_example [[file:gnu.png]] * Post 2 :PROPERTIES: :EXPORT_FILE_NAME: post2 :END: Post 2 contents I have the =org.png= file in the same directory that contains the source Org file of this post. #+begin_example ./content-org ├── images-in-content/ │ ├── images-in-content.org │ │ * Post 1 (Org subtree) → ./content/images-in-content/post1.md │ │ * Post 2 (Org subtree) → ./content/images-in-content/post2.md **THIS POST** │ ├── gnu.png → ./static/ox-hugo/gnu.png │ └── org.png → ./static/ox-hugo/org.png **BELOW IMAGE** ├── post3/ │ ├── post3.org → ./content/images-in-content/post3.md │ └── gnu-copy.png → ./static/ox-hugo/gnu-copy.png └── post4/ ├── post4.org → ./content/images-in-content/post4.md └── org-copy.png → ./static/ox-hugo/org-copy.png #+end_example [[file:org.png]] * Page Bundle with images in the same dir :PROPERTIES: :EXPORT_FILE_NAME: index :EXPORT_HUGO_BUNDLE: page-bundle-images-in-same-dir :END: ** Link to an image in the same dir as this Org file [[file:gnu.png][file:gnu.png]] ** Link to an image containing this bundle's name in the path [[file:images/page-bundle-images-in-same-dir/org-copy-2.png][file:images/page-bundle-images-in-same-dir/org-copy-2.png]] ** Link to an image in a subdir in the same dir as this Org file [[file:images/org-copy-1.png][file:images/org-copy-1.png]] * Home page Branch Bundle with image :homepage:branch:image:bundle: :PROPERTIES: :EXPORT_HUGO_SECTION: / :EXPORT_HUGO_BUNDLE: / :EXPORT_FILE_NAME: _index :END: Image in homepage branch bundle: [[file:images/_home/org-copy-3.png][file:images/_home/org-copy-3.png]]