Skip to content

Commit d2d05a5

Browse files
committed
add missing height and width to DarkmodeImages
1 parent 2928040 commit d2d05a5

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

sites/docs/src/pages/docs/[...doc].astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ const md_github_url =
164164
// remove leading and trailing slash
165165
const splitUrl = `${Astro.url.pathname}/`.replace(/^\/|\/$/g, "").split("/");
166166
// check if markdown file starts with a heading (markdown or html)
167-
const firstHeading = Astro.props.doc.body.trim().match(/^(#|<h1)/);
167+
const firstHeading = Astro.props.doc.body?.trim().match(/^(#|<h1)/);
168168
169169
let extendedHeadings = headings.map((heading) => {
170170
heading.checkboxes = remarkPluginFrontmatter.checkboxes

sites/main-site/src/content/about/about.mdx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: About nf-core
33
description: Who we are, how we are organised and how we started.
4+
md_github_url: https://github.com/nf-core/website/blob/main/sites/main-site/src/content/about/about.mdx
45
---
56

67
import { Image } from "astro:assets";
@@ -115,7 +116,13 @@ This is used by most nf-core pipelines to give free and open access to the refer
115116

116117
## Microsoft Azure
117118

118-
<DarkModeImage src="/images/contributors/colour/azure.svg" alt="Microsoft Azure" class="float-end me-5 mb-5 ms-3" />
119+
<DarkModeImage
120+
src="/images/contributors/colour/azure.svg"
121+
alt="Microsoft Azure"
122+
class="float-end me-5 mb-5 ms-3"
123+
height={100}
124+
width={100}
125+
/>
119126

120127
Microsoft Azure also kindly supports nf-core with cloud compute credits to run each nf-core analysis pipeline with full-size benchmark datasets on every release.
121128
You will soon be able to explore and download these pipeline results on the nf-core website, on each pipeline page.
@@ -164,7 +171,7 @@ We also thank the following organisations for supporting nf-core through providi
164171
<Image src={runsOnLogo} alt="RunsOn logo" class="m-auto" />
165172
</a>
166173
<a href="https://hackmd.io/" class="col" target="_blank">
167-
<DarkModeImage src="/images/contributors/colour/hackmd.svg" alt="HackMD logo" />
174+
<DarkModeImage src="/images/contributors/colour/hackmd.svg" alt="HackMD logo" height={100} width={200}/>
168175
</a>
169176

170177
</div>

sites/main-site/src/content/about/lore.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ description: The stories, traditions, and swag that make nf-core special
44
---
55

66
import { Image } from "astro:assets";
7-
import DarkModeImage from "@components/DarkModeImage.astro";
87
import loreSvg from "../../assets/images/nf-lore/lore.svg";
98
import event2018Intro from "../../assets/images/nf-lore/2018-nf-core-introduced.jpg";
109
import event2018Hack from "../../assets/images/nf-lore/hackathon-april2018.jpg";

0 commit comments

Comments
 (0)