You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| =<ORG_FILE_DIR>/bar/<BUNDLE>/baz/foo.png= | =<HUGO_BASE_DIR>/content/<SECTION>/<BUNDLE>/baz/foo.png= | If the file directory path contains ="/<BUNDLE>/"=, the directory structure following that ="/<BUNDLE>/"= is preserved. |
| =<ORG_FILE_DIR>/bar/<BUNDLE>/baz/foo.png= | =<HUGO_BASE_DIR>/content/<SECTION>/<BUNDLE>/baz/foo.png= | If the file directory path contains ="/<BUNDLE>/"=, the directory structure following that ="/<BUNDLE>/"= is preserved. |
| =<ORG_FILE_DIR>/bar/_home/baz/foo.png= | =<HUGO_BASE_DIR>/content/baz/foo.png= | If the page is the home page branch bundle, and the file directory path contains ~"/_home/"~, the directory structure following that ~"/_home/"~ is preserved. |
|`<ORG_FILE_DIR>/bar/<BUNDLE>/baz/foo.png`|`<HUGO_BASE_DIR>/content/<SECTION>/<BUNDLE>/baz/foo.png`| If the file directory path contains `"/<BUNDLE>/"`, the directory structure following that `"/<BUNDLE>/"` is preserved. |
34
36
35
-
See [this other test](/images-in-content/page-bundle-images-in-same-dir/) for an example.
37
+
38
+
#### Special case: Home page branch bundle {#special-case-home-page-branch-bundle}
39
+
40
+
In this case, both `HUGO_SECTION` and `HUGO_BUNDLE` values will be
41
+
`/`.
42
+
43
+
So the images to be copied to the **home page branch bundle** i.e. the
44
+
`content/` dir must be placed in a special `_home/` directory. Here
|`<ORG_FILE_DIR>/bar/_home/baz/foo.png`|`<HUGO_BASE_DIR>/content/baz/foo.png`| If the page is the home page branch bundle, and the file directory path contains `"/_home/"`, the directory structure following that `"/_home/"` is preserved. |
0 commit comments