site: use three column layout
This commit is contained in:
committed by
Johannes Kirschbauer
parent
0e06ce3cca
commit
c7a1d7ce29
@@ -3,10 +3,20 @@
|
||||
let { paths } = data;
|
||||
</script>
|
||||
|
||||
<nav>
|
||||
{#each paths as path}
|
||||
<li><a href={`/docs/${path}`}>{path}</a></li>
|
||||
{/each}
|
||||
<li><a href="/">Home</a></li>
|
||||
</nav>
|
||||
{@render children()}
|
||||
<div class="container">
|
||||
<nav>
|
||||
{#each paths as path}
|
||||
<li><a href={`/docs/${path}`}>{path}</a></li>
|
||||
{/each}
|
||||
<li><a href="/">Home</a></li>
|
||||
</nav>
|
||||
<div class="content">
|
||||
{@render children()}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.container {
|
||||
display: flex;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -4,8 +4,18 @@
|
||||
let { data } = $props();
|
||||
</script>
|
||||
|
||||
<div class="toc">
|
||||
{@html data.toc}
|
||||
<div class="container">
|
||||
<div class="content">
|
||||
{@html data.content}
|
||||
</div>
|
||||
<div class="toc">
|
||||
{@html data.toc}
|
||||
</div>
|
||||
</div>
|
||||
{@html data.content}
|
||||
{JSON.stringify(data.frontmatter)}
|
||||
|
||||
<!-- {JSON.stringify(data.frontmatter)} -->
|
||||
<style>
|
||||
.container {
|
||||
display: flex;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user