From 720d6ad034811f7dfcc9dce4958310fde60ac7e9 Mon Sep 17 00:00:00 2001 From: Emma Date: Fri, 4 Oct 2024 10:34:27 +0100 Subject: [PATCH 1/5] set baseUrl --- .github/workflows/publish.yml | 2 +- hugo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3bb4eee..f4279cf 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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: diff --git a/hugo.toml b/hugo.toml index a43685b..59a32f6 100644 --- a/hugo.toml +++ b/hugo.toml @@ -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 From a937f629d7ef396e8978b13a02011322ac1e4310 Mon Sep 17 00:00:00 2001 From: Emma Date: Fri, 4 Oct 2024 10:40:30 +0100 Subject: [PATCH 2/5] use link without initial / --- content/page/social.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/page/social.md b/content/page/social.md index 1e79de5..8472337 100644 --- a/content/page/social.md +++ b/content/page/social.md @@ -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 From 039fea101bd4b056201c28c578311e4a9f38c574 Mon Sep 17 00:00:00 2001 From: Emma Date: Fri, 4 Oct 2024 10:44:27 +0100 Subject: [PATCH 3/5] relative path to img dir --- content/page/social.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/page/social.md b/content/page/social.md index 8472337..480131f 100644 --- a/content/page/social.md +++ b/content/page/social.md @@ -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 From ec65659323d3e088816c1879af0944f4592d81b5 Mon Sep 17 00:00:00 2001 From: Emma Date: Fri, 4 Oct 2024 10:50:51 +0100 Subject: [PATCH 4/5] update readme --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7e3c051..b374fdc 100644 --- a/README.md +++ b/README.md @@ -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 path to this 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 From 2759663b43a68f42c6b4073ab568c100912af272 Mon Sep 17 00:00:00 2001 From: Emma Date: Fri, 4 Oct 2024 10:53:44 +0100 Subject: [PATCH 5/5] readme tweak --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b374fdc..eff699d 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ menu defined in `hugo.toml`, either as a top level item, or sub-menu item (by de organised into subfolders as required. 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 path to this relative to the page or post you're working in e.g. to link +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