kaushalmodi / ox-hugo

A carefully crafted Org exporter back-end for Hugo
https://ox-hugo.scripter.co
GNU General Public License v3.0
874 stars 132 forks source link

How to export publication to subdirectory #694

Closed fkgruber closed 1 year ago

fkgruber commented 1 year ago

Hi In the academic theme you can put publications on a directory so you can add other stuff like bibtex etc. See for example https://github.com/wowchemy/starter-hugo-academic/tree/main/content/publication

However, in ox-hugo I tried :EXPORT_FILE_NAME: my_paper/index.md

but when I export it is located in publication/index.md. It ignores the subdirectory. How can I export the subtree to a subdirectory

fkgruber commented 1 year ago

I found in the documentation that we can use the :EXPORT_HUGO_SECTION_FRAG property to set the subdirectory.