butterflyvu/src/layouts/Document.astro

50 lines
1.4 KiB
Text
Raw Normal View History

2024-06-07 03:16:38 -04:00
---
// Settings
2024-12-11 20:41:04 -05:00
import { FeelbackConfig } from '@config'
2024-06-07 03:16:38 -04:00
// Properties
2024-10-24 14:50:48 -04:00
const { frontmatter, Title, Feedback, Feelback } = Astro.props
2024-06-07 03:16:38 -04:00
// Components
import Head from '@components/global/Head.astro'
import Header from '@components/global/Header.astro'
2024-12-11 20:41:04 -05:00
import Footer from '@components/global/Footer.astro'
import Sidebar from '@components/Sidebar.astro'
import FeelbackYesNo from "astro-feelback/components/FeelbackYesNo.astro"
2024-11-30 23:55:34 -05:00
import {Zorn} from "@minpluto/zorn"
2024-06-07 03:16:38 -04:00
// Styles
import "@styles/index.scss"
import "@styles/feelback.css"
2024-09-17 23:07:39 -04:00
import "@styles/prism.css"
2024-06-07 03:16:38 -04:00
---
<Head/>
<Header/>
<div class="page">
<article>
<Sidebar/>
2024-06-07 03:16:38 -04:00
<div class="document">
2024-10-24 14:50:48 -04:00
<h1>{frontmatter.Title}</h1>
2024-06-07 03:16:38 -04:00
<slot/>
<!-- <hr/>
<p>Last Updated: null</p> -->
{FeelbackConfig.Enabled ?
<FeelbackYesNo
contentSetId={FeelbackConfig.ContentSetId}
preset={FeelbackConfig.Present}
textQuestion={FeelbackConfig.Question}
textAnswer={FeelbackConfig.Answer}
/>
:
null
}
2024-06-07 03:16:38 -04:00
</div>
</article>
2024-12-11 20:41:04 -05:00
<Footer/>
<!-- Zorn is broken if a player is not already set -->
2024-11-30 23:55:34 -05:00
<Zorn is:raw PlayerName="zorn_null" Poster="#" Video="#"/>
</div>
<!-- Zorn is broken if a player is not already set -->
<style is:global>#zorn-player-zorn_null {display: none}</style>