33 lines
586 B
Plaintext
33 lines
586 B
Plaintext
---
|
|
import TOC from "./TOC.astro";
|
|
|
|
const { content } = Astro.props;
|
|
const { Content, headings } = await content.render();
|
|
|
|
const toc = headings.map((heading) => {
|
|
return heading;
|
|
});
|
|
---
|
|
|
|
<div class="sidebar region">
|
|
<TOC toc={toc} />
|
|
<article class="flow editorial">
|
|
<h1>{content.data.title}</h1>
|
|
<p class="h2">{content.data.subtitle}</p>
|
|
<div class="flow content">
|
|
<Content />
|
|
</div>
|
|
</article>
|
|
</div>
|
|
|
|
<style>
|
|
h1 {
|
|
font-size: var(--size-4);
|
|
}
|
|
.editorial :global(h2),
|
|
.editorial :global(.h2) {
|
|
font-size: var(--size-3);
|
|
color: var(--color-blue);
|
|
}
|
|
</style>
|