added redirects to new docs
This commit is contained in:
@@ -1,42 +1,5 @@
|
||||
---
|
||||
import Layout from "../layouts/Layout.astro";
|
||||
import { Icon } from "astro-icon/components";
|
||||
const unsortedDocs = await Astro.glob("./docs/*/index.{md,mdx}");
|
||||
const docs = unsortedDocs.sort(
|
||||
(a, b) => +new Date(b.frontmatter.date) - +new Date(a.frontmatter.date)
|
||||
);
|
||||
import Redirect from "../layouts/Redirect.astro";
|
||||
---
|
||||
|
||||
<Layout
|
||||
title="Docs"
|
||||
description="This is my personal website with my projects, docs and other useful stuff."
|
||||
>
|
||||
<main>
|
||||
<div class="content">
|
||||
<h1 style="text-align: center;">Docs</h1>
|
||||
{
|
||||
docs.map((doc) => (
|
||||
<div
|
||||
class="second-content"
|
||||
>
|
||||
<div style="text-align: left;" />
|
||||
<a href={doc.url}>
|
||||
<h2>
|
||||
{doc.frontmatter.repo} <Icon name="mdi:arrow-forward-circle" />
|
||||
</h2>
|
||||
</a>
|
||||
<p>{doc.frontmatter.subtitle}</p>
|
||||
<h3 style="text-align: left;">Features:</h3>
|
||||
<ul style="text-align: left;">
|
||||
{doc.frontmatter.features.map((feature) => (
|
||||
<li>{feature}</li>
|
||||
))}
|
||||
</ul>
|
||||
<img class="doc_thumbnail" style={doc.frontmatter.has_thumbnail ? "" : "display:none;"} src={"/img/docs/thumbnails/" + doc.frontmatter.repo + ".webp"} />
|
||||
</div>
|
||||
|
||||
))
|
||||
}
|
||||
</div>
|
||||
</main>
|
||||
</Layout>
|
||||
<Redirect href="https://docs.vaporvee.com/" />
|
||||
|
Reference in New Issue
Block a user