Skip to content

Commit 31a6e94

Browse files
Document adding new images
Co-authored-by: Bastian Greshake Tzovaras <bgreshake@proton.me>
1 parent f68a737 commit 31a6e94

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,15 @@ Getting the files can take a while (the `wp-content` repo is ~500 MB).
7575

7676

7777
This may change.
78+
#### Adding new images
79+
80+
For new images, you can place these into the `static/img` folder of this repository (you can also make sub-folders there if useful).
81+
82+
When compiling the website during the build, Hugo will move everything in `static/` into the website root, i.e. to `open-bio.org/`. This means that when linking images you do not have to include the `static/` as part of the media/image link.
83+
84+
As an example: A file that resides in `static/img/test-image.jpg` should be linked in the markdown files like this: `![an image](/img/test-image.jpg)`
85+
86+
It is also good practice to name media files with the date you add them/the date of the page/post you want to add them to, i.e. `2025-03-04-blogpost-image.jpg`
7887

7988
#### Some other random tips
8089

0 commit comments

Comments
 (0)