Skip to content

Commit 42c51e6

Browse files
committed
Notes on image naming and subfolders
1 parent 31a6e94 commit 42c51e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,17 @@ To load it you can run:
7373

7474
Getting the files can take a while (the `wp-content` repo is ~500 MB).
7575

76-
7776
This may change.
77+
7878
#### Adding new images
7979

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).
80+
For new images, you can place these into the `static/img` folder of this repository, ideally in a subfolder based on the four digit year.
8181

8282
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.
8383

8484
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)`
8585

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`
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, e.g. `static/img/2025/2025-03-04-blogpost-image.jpg` (using `yyyy-mm-dd` as the start of the filename).
8787

8888
#### Some other random tips
8989

0 commit comments

Comments
 (0)