2024-06-07 03:16:38 -04:00
|
|
|
---
|
2024-11-12 14:20:33 -05:00
|
|
|
// Settings
|
2024-12-12 17:50:25 -05:00
|
|
|
import { SiteSettings, FeelbackConfig } from '@config'
|
2024-06-07 03:16:38 -04:00
|
|
|
|
|
|
|
// Properties
|
2024-12-23 16:46:42 -05:00
|
|
|
const { frontmatter, Title, Blog, 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'
|
2024-06-10 01:25:56 -04:00
|
|
|
import Sidebar from '@components/Sidebar.astro'
|
|
|
|
import FeelbackYesNo from "astro-feelback/components/FeelbackYesNo.astro"
|
2025-01-23 01:47:04 -05:00
|
|
|
import LinkCard from '@components/LinkCard.astro'
|
2024-11-30 23:55:34 -05:00
|
|
|
import {Zorn} from "@minpluto/zorn"
|
2024-06-07 03:16:38 -04:00
|
|
|
|
|
|
|
// Styles
|
2024-12-22 23:22:35 -05:00
|
|
|
/// When Zorn is not imported first in the layout, it's CSS does not carry
|
|
|
|
/// over when importing it into your own documents. So, it's CSS here are imported.
|
2025-02-05 17:28:08 -05:00
|
|
|
import "../../node_modules/@minpluto/zorn/src/Styles/Base.scss"
|
|
|
|
import "../../node_modules/@minpluto/zorn/src/Styles/Themes/Default.scss"
|
2024-12-22 23:22:35 -05:00
|
|
|
|
2024-11-12 14:20:33 -05:00
|
|
|
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
|
|
|
---
|
|
|
|
|
2024-12-23 16:46:42 -05:00
|
|
|
|
|
|
|
|
|
|
|
{Blog ?
|
|
|
|
<Head Title={Title + ' | ' + SiteSettings.SiteName}/>
|
|
|
|
:
|
|
|
|
<Head Title={frontmatter.Title + ' | ' + SiteSettings.SiteName}/>
|
|
|
|
}
|
|
|
|
|
2024-06-07 03:16:38 -04:00
|
|
|
<Header/>
|
|
|
|
<div class="page">
|
2024-11-14 23:52:37 -05:00
|
|
|
<article>
|
2024-12-23 16:46:42 -05:00
|
|
|
<Sidebar Blog={Blog}/>
|
2024-06-07 03:16:38 -04:00
|
|
|
<div class="document">
|
2024-12-23 16:46:42 -05:00
|
|
|
{Blog ? <h1>{Title}</h1> : <h1>{frontmatter.Title}</h1>}
|
2024-06-07 03:16:38 -04:00
|
|
|
<slot/>
|
|
|
|
<!-- <hr/>
|
|
|
|
<p>Last Updated: null</p> -->
|
2024-12-10 22:45:19 -05:00
|
|
|
{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>
|
2024-11-14 23:52:37 -05:00
|
|
|
</article>
|
2024-12-22 23:22:35 -05:00
|
|
|
<Footer/>
|
|
|
|
</div>
|