butterflyvu/src/layouts/Document.astro

71 lines
2 KiB
Text
Raw Normal View History

2024-06-07 03:16:38 -04:00
---
// Settings
import { SiteSettings } from '@config'
import {version} from '../../package.json'
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'
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> -->
<!-- {
2024-06-07 03:16:38 -04:00
FEEDBACK_ENABLED ?
// Feelback
FEELBACK_ENABLED ?
<FeelbackYesNo
contentSetId="2308b02b-8f9f-437e-9780-5ad4c0db016e"
preset="like-dislike"
textQuestion="Did this article help?"
textAnswer="Thank you for your feedback."
/>
:
null
:
null
} -->
2024-06-07 03:16:38 -04:00
</div>
</article>
2024-11-30 23:55:34 -05:00
<Zorn is:raw PlayerName="zorn_null" Poster="#" Video="#"/>
2024-06-07 03:16:38 -04:00
<div class="footer">
<div class="footer-start">
<p>© {SiteSettings.OrgName}. All right reserved.</p>
2024-06-07 03:16:38 -04:00
</div>
<div class="footer-end">
{SiteSettings.WhiteLabel ?
2024-06-07 07:09:39 -04:00
<p>Built with <a href="#">ButterflyVu</a></p>
2024-06-07 03:16:38 -04:00
:
null
}
{SiteSettings.FooterVersion ?
<p style="opacity: 0.5;">v{version}</p>
:
null
}
2024-06-07 03:16:38 -04:00
</div>
</div>
2024-11-30 23:55:34 -05:00
</div>
<!-- Zorn is broken if a player is not already set -->
<style is:global>#zorn-player-zorn_null {display: none}</style>