Skip to content

Commit

Permalink
Merge pull request #9 from mrc-ide/image-resource
Browse files Browse the repository at this point in the history
Halloween image fix, and better explanation in readme
  • Loading branch information
richfitz authored Oct 4, 2024
2 parents a66c39e + 2759663 commit 51c9447
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
push:
branches:
- main
- initial-site
- image-resource

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ To add a static page, create a new file in the `/content/page` folder. You can l
menu defined in `hugo.toml`, either as a top level item, or sub-menu item (by defining its `parent`). Pages can be
organised into subfolders as required.

Images should be saved to `static/img`
Images should be saved to `static/img` which are deployed to a top-level `img` folder.
When including links to images, you'll need to set the image path relative to the page or post you're working in e.g. to link
to `img/frights_and_bites.png` from `page/social.md`, the path is `../../img/frights_and_bites.png`.

## Local testing

Expand Down
2 changes: 1 addition & 1 deletion content/page/social.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

* Frights and bites bake-off

![frights and bites AI generated poster](/img/frights_and_bites.png)
![frights and bites AI generated poster](../../img/frights_and_bites.png)

12.30 - 13.30 24th October

Expand Down
2 changes: 1 addition & 1 deletion hugo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
baseurl = "https://username.github.io"
baseurl = "https://mrc-ide.github.io/noticeboard/"
DefaultContentLanguage = "en"
title = "DIDE noticeboard"
# Using theme as git submodule
Expand Down

0 comments on commit 51c9447

Please sign in to comment.