Rework rehype plugin and clean up changes
This commit is contained in:
parent
2c43fb2512
commit
018a45e2d4
8 changed files with 36 additions and 33 deletions
|
|
@ -7,8 +7,8 @@ import HeadCommon from '../../components/HeadCommon.astro';
|
|||
const myPatterns = await getMyPatterns();
|
||||
|
||||
const { BASE_URL } = import.meta.env;
|
||||
const base = BASE_URL;
|
||||
const baseNoTrailing = base.endsWith('/') ? base.slice(0, -1) : base;---
|
||||
const baseNoTrailing = BASE_URL.endsWith('/') ? BASE_URL.slice(0, -1) : BASE_URL;
|
||||
---
|
||||
|
||||
<head>
|
||||
<HeadCommon />
|
||||
|
|
@ -31,7 +31,7 @@ const baseNoTrailing = base.endsWith('/') ? base.slice(0, -1) : base;---
|
|||
<div class="absolute w-full h-full flex justify-center items-center">
|
||||
<span class="bg-slate-800 p-2 rounded-md text-white">{name}</span>
|
||||
</div>
|
||||
<img src={`${baseNoTrailing}/swatch/${name}.png`} />
|
||||
<img src={`${baseNoTrailing}/swatch/${name}.png/`} />
|
||||
</a>
|
||||
))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,9 @@ import { MiniRepl } from '../../docs/MiniRepl';
|
|||
|
||||
# Welcome
|
||||
|
||||
<img src="/icons/strudel_icon.png" className="w-32 animate-pulse md:float-right ml-8" />
|
||||
<div className="w-32 animate-pulse md:float-right ml-8">
|
||||

|
||||
</div>
|
||||
|
||||
Welcome to the Strudel documentation pages!
|
||||
You've come to the right place if you want to learn how to make music with code.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue