Create Sidebar component
This commit is contained in:
parent
7c4c7eb40b
commit
232d4a161a
1 changed files with 9 additions and 0 deletions
9
src/components/Sidebar.astro
Normal file
9
src/components/Sidebar.astro
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
import { SidebarItems } from '../../sidebar.json'
|
||||||
|
---
|
||||||
|
|
||||||
|
<div class="sidebar">
|
||||||
|
{SidebarItems.map((item) => (
|
||||||
|
item.heading ? <h2>{item.heading}</h2> : <a href={item.link}>{item.text}</a>
|
||||||
|
))}
|
||||||
|
</div>
|
Loading…
Reference in a new issue