Aloha all,
1) Is this the correct way to get an image in the homepage branch
bundle?
I have this in the org file:
* Homepage
:PROPERTIES:
:EXPORT_HUGO_SECTION:
:EXPORT_FILE_NAME: index
:END:
[[/bldg-1-5-sequence-distance-1332+-small.png]]
I see a couple of things that are wrong there:
2. You mentioned homepage branch bundle, but I don't see the use of EXPORT_HUGO_BUNDLE.
Using index.md instead of _index.md is a very common mistake. Reading the above link might help understand the difference more. Feel free to ask more questions about that on the ox-hugo Github issue manager itself as this gets out of the Org mode scope for this mailing list.
This is the markdown export:
+++
title = "Homepage"
author = ["Thomas S. Dye"]
lastmod = 2018-06-09T09:32:43-10:00
draft = false
+++
{{< figure src="" >}}
I don't see an image on the home page. Perhaps this is an issue
with the theme I'm using (material-docs)?
It's difficult to tell. Can you share a git repo with a minimal site (just the config.toml and the Org content files would do). I will try reproducing the issue locally using ox-hugo plus the ox-hugo test site theme:
https://github.com/kaushalmodi/hugo-bare-min-theme.
2) Can I have links in figure captions?
I have this in the org file:
#+name: fig-12-sequence
#+caption: Stratigraphic DAG for the information on Figure
[[fig-12-section]].
[[file:/fig-12-sequence.png][file:/fig-12-sequence-small.png]]
This is the markdown export:
{{< figure src="" caption="Figure 2:
Stratigraphic DAG for the information on Figure [1](#org1658d1e)."
link="/fig-12-sequence.png" >}}
Just putting this custom figure.html in your site's layouts/shortcodes/ directory (which will override the inbuilt figure shortcode) will fix this second issue.
I don't mind Hugo-related questions there too. But just so that you know the Hugo Discourse forum is pretty active too:
https://discourse.gohugo.io/.
Kaushal
PS: My reply ended up containing a lot of links.. hope that doesn't overwhelm you, but instead helps resolve the issues.