fix styling
This commit is contained in:
parent
4507528f52
commit
375f1530a4
6 changed files with 38 additions and 37 deletions
|
|
@ -2,7 +2,7 @@
|
|||
import BaseLayout from "../layouts/BaseLayout.astro";
|
||||
import { getCollection } from "astro:content";
|
||||
|
||||
const title = "/gists";
|
||||
const title = "gists";
|
||||
const gists = await getCollection("gists");
|
||||
gists.sort((a, b) => a.slug.localeCompare(b.slug));
|
||||
---
|
||||
|
|
|
|||
|
|
@ -12,13 +12,8 @@ export async function getStaticPaths() {
|
|||
|
||||
const { gist } = Astro.props;
|
||||
const { Content } = await gist.render();
|
||||
const pageTitle = `${gist.slug}`;
|
||||
---
|
||||
|
||||
<PostLayout frontmatter={gist.data} post={gist}>
|
||||
<Fragment slot="head">
|
||||
<title>{pageTitle}</title>
|
||||
<script type="module" src="/scripts/index.js"></script>
|
||||
</Fragment>
|
||||
<Content />
|
||||
</PostLayout>
|
||||
|
|
|
|||
|
|
@ -11,15 +11,18 @@ export async function getStaticPaths() {
|
|||
}
|
||||
|
||||
const { repo } = Astro.props;
|
||||
const { slug } = Astro.params;
|
||||
const { Content } = await repo.render();
|
||||
const pageTitle = `${slug}.git`;
|
||||
const cloneCommand = `git clone https://git.barrettruth.com/${repo.slug}.git`;
|
||||
---
|
||||
|
||||
<PostLayout frontmatter={repo.data} post={repo}>
|
||||
<Fragment slot="head">
|
||||
<title>{pageTitle}</title>
|
||||
<script type="module" src="/scripts/index.js"></script>
|
||||
<link rel="stylesheet" href="/styles/git.css" />
|
||||
</Fragment>
|
||||
|
||||
<div class="clone-line">
|
||||
<code><span class="prompt">> </span>{cloneCommand}</code>
|
||||
</div>
|
||||
|
||||
<Content />
|
||||
</PostLayout>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue