For a post with the path ‘content/path/to/my-post.md’, it will be moved to ‘content/path/to/my-post/index.md’, so it becomes the index file of a leaf bundle of Hugo. This also applies to files with extensions ‘.Rmd’ and ‘.Rmarkdown’.
The root directory of the website project (should contain a ‘content/’ folder).
The output directory. If not provided, a suffix ‘-bundle’
is added to the website root directory name. For example, the default
output directory for the site under ‘~/Documents/test’ is
‘~/Documents/test-bundle’. You can specify the output directory to be
identical to the website root directory, so files will be moved within the
same directory, but please remember that you will not be able to undo
This function only moves (R) Markdown source files. If these files use resource files under the ‘static/’ folder, these resources will not be moved into the ‘content/’ folder. You need to manually move them, and adjust their paths in the (R) Markdown source files accordingly.
Learn more about Hugo's leaf bundles at https://gohugo.io/content-management/page-bundles/.
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.