restructure donw, rearing 1.0.0 release
This commit is contained in:
parent
aed70ccdd9
commit
aa59137748
13 changed files with 207 additions and 23 deletions
src/layouts
|
@ -1,13 +1,15 @@
|
|||
---
|
||||
export interface Props {
|
||||
title: string
|
||||
title: string,
|
||||
titleHidden?: boolean
|
||||
}
|
||||
|
||||
const { title } = Astro.props
|
||||
const { title, titleHidden } = Astro.props
|
||||
const hidden = titleHidden || false ? "visually-hidden" : ""
|
||||
---
|
||||
|
||||
<div class="base">
|
||||
<h1>{title}</h1>
|
||||
<h1 class={hidden}>{title}</h1>
|
||||
<div>
|
||||
<slot />
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue