Migrate translation article source code to texinfo format.
This commit is contained in:
parent
9cf9745d49
commit
f1fdd12285
@ -1,34 +0,0 @@
|
|||||||
---
|
|
||||||
import { getCollection } from "astro:content";
|
|
||||||
import type {
|
|
||||||
CollectionEntry,
|
|
||||||
CollectionKey,
|
|
||||||
ContentEntryMap,
|
|
||||||
} from "astro:content";
|
|
||||||
import Footer from "../../../components/Footer.astro";
|
|
||||||
import Nav from "../../../components/Nav.astro";
|
|
||||||
import ArticleBodyWrapper from "../../../components/article/article_body/ArticleBodyWrapper.astro";
|
|
||||||
import DefaultLayout from "../../../layouts/DefaultLayout.astro";
|
|
||||||
|
|
||||||
export async function getStaticPaths() {
|
|
||||||
const collectionName: CollectionKey = "translation";
|
|
||||||
const blogEntries = await getCollection(collectionName);
|
|
||||||
return blogEntries.map((entry) => ({
|
|
||||||
params: { translation: entry.slug },
|
|
||||||
props: { entry },
|
|
||||||
}));
|
|
||||||
}
|
|
||||||
|
|
||||||
interface Props {
|
|
||||||
entry: CollectionEntry<keyof ContentEntryMap>;
|
|
||||||
}
|
|
||||||
const { entry } = Astro.props;
|
|
||||||
|
|
||||||
const articlePrettyName: string = entry.id.split("/").pop()!.replace(".md", "");
|
|
||||||
---
|
|
||||||
|
|
||||||
<DefaultLayout title=`${articlePrettyName} - 李守中`>
|
|
||||||
<Nav />
|
|
||||||
<ArticleBodyWrapper collectionName="translation" articleSlug={entry.slug} />
|
|
||||||
<Footer />
|
|
||||||
</DefaultLayout>
|
|
@ -7,15 +7,157 @@ import DefaultLayout from "../../../layouts/DefaultLayout.astro";
|
|||||||
|
|
||||||
<DefaultLayout title="翻译 - 李守中">
|
<DefaultLayout title="翻译 - 李守中">
|
||||||
<Nav />
|
<Nav />
|
||||||
<div class="options">
|
<!-- <CollectionSummary
|
||||||
<span>当前: [按名字排序]</span>
|
|
||||||
<a href="/article/translation/sort_by_timeline">按日期降序</a>
|
|
||||||
</div>
|
|
||||||
<CollectionSummary
|
|
||||||
collectionName="translation"
|
collectionName="translation"
|
||||||
sortByTimeline={false}
|
sortByTimeline={false}
|
||||||
sortByArticleTitle={true}
|
sortByArticleTitle={true}
|
||||||
/>
|
/> -->
|
||||||
|
<div class="collection-desc" data-astro-cid-h6kovdi3="">
|
||||||
|
<div class="collection-desc-item" data-astro-cid-h6kovdi3="">
|
||||||
|
<h1 data-astro-cid-y6p2chun="">freebsd</h1>
|
||||||
|
<ul data-astro-cid-y6p2chun="">
|
||||||
|
<li data-astro-cid-y6p2chun="">
|
||||||
|
<a
|
||||||
|
href="/article/translation/FreeBSD 13 NFS exports man(5) page 2021 中文译本.html"
|
||||||
|
target="_blank"
|
||||||
|
data-astro-cid-y6p2chun=""
|
||||||
|
>
|
||||||
|
FreeBSD 13 NFS exports man(5) 2021 中文译本
|
||||||
|
</a>
|
||||||
|
</li><li data-astro-cid-y6p2chun="">
|
||||||
|
<a
|
||||||
|
href="/article/translation/FreeBSD 13 NFS mountd man(8) page 2020 中文译本.html"
|
||||||
|
target="_blank"
|
||||||
|
data-astro-cid-y6p2chun=""
|
||||||
|
>
|
||||||
|
FreeBSD 13 NFS mountd man(8) 2020 中文译本
|
||||||
|
</a>
|
||||||
|
</li><li data-astro-cid-y6p2chun="">
|
||||||
|
<a
|
||||||
|
href="/article/translation/FreeBSD 13 NFS nfsd man(8) page 2019 中文译本.html"
|
||||||
|
target="_blank"
|
||||||
|
data-astro-cid-y6p2chun=""
|
||||||
|
>
|
||||||
|
FreeBSD 13 NFS nfsd man(8) 2019 中文译本
|
||||||
|
</a>
|
||||||
|
</li><li data-astro-cid-y6p2chun="">
|
||||||
|
<a
|
||||||
|
href="/article/translation/FreeBSD 13 NFS showmount man(8) page 2016 中文译本.html"
|
||||||
|
target="_blank"
|
||||||
|
data-astro-cid-y6p2chun=""
|
||||||
|
>
|
||||||
|
FreeBSD 13 NFS showmount man(8) 2016 中文译本
|
||||||
|
</a>
|
||||||
|
</li><li data-astro-cid-y6p2chun="">
|
||||||
|
<a
|
||||||
|
href="/article/translation/FreeBSD 13 NFSv4 man(4) page 2019 中文译本.html"
|
||||||
|
target="_blank"
|
||||||
|
data-astro-cid-y6p2chun=""
|
||||||
|
>
|
||||||
|
FreeBSD 13 NFSv4 man(4) 2019 中文译本
|
||||||
|
</a>
|
||||||
|
</li><li data-astro-cid-y6p2chun="">
|
||||||
|
<a
|
||||||
|
href="/article/translation/FreeBSD 13 NFSv4 nfscbd man(8) page 2009 中文译本.html"
|
||||||
|
target="_blank"
|
||||||
|
data-astro-cid-y6p2chun=""
|
||||||
|
>
|
||||||
|
FreeBSD 13 NFSv4 nfscbd man(8) 2009 中文译本
|
||||||
|
</a>
|
||||||
|
</li><li data-astro-cid-y6p2chun="">
|
||||||
|
<a
|
||||||
|
href="/article/translation/FreeBSD 13 NFSv4 nfsrevoke man(8) page 2009 中文译本.html"
|
||||||
|
target="_blank"
|
||||||
|
data-astro-cid-y6p2chun=""
|
||||||
|
>
|
||||||
|
FreeBSD 13 NFSv4 nfsrevoke man(8) 2020 中文译本
|
||||||
|
</a>
|
||||||
|
</li><li data-astro-cid-y6p2chun="">
|
||||||
|
<a
|
||||||
|
href="/article/translation/FreeBSD 13 NFSv4 nfsuserd man(8) page 2019 中文译本.html"
|
||||||
|
target="_blank"
|
||||||
|
data-astro-cid-y6p2chun=""
|
||||||
|
>
|
||||||
|
FreeBSD 13 NFSv4 nfsuserd man(8) 2019 中文译本
|
||||||
|
</a>
|
||||||
|
</li><li data-astro-cid-y6p2chun="">
|
||||||
|
<a
|
||||||
|
href="/article/translation/FreeBSD 13 rpcbind man(8) page 2017 中文译本.html"
|
||||||
|
target="_blank"
|
||||||
|
data-astro-cid-y6p2chun=""
|
||||||
|
>
|
||||||
|
FreeBSD 13 rpcbind man(8) 2017 中文译本
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div><div class="collection-desc-item" data-astro-cid-h6kovdi3="">
|
||||||
|
<h1 data-astro-cid-y6p2chun="">easyrsa</h1>
|
||||||
|
<ul data-astro-cid-y6p2chun="">
|
||||||
|
<li data-astro-cid-y6p2chun="">
|
||||||
|
<a
|
||||||
|
href="/article/translation/EasyRSA Intro-To-PKI v3.08 中文译本.html"
|
||||||
|
target="_blank"
|
||||||
|
data-astro-cid-y6p2chun=""
|
||||||
|
>
|
||||||
|
EasyRSA Intro-To-PKI v3.08 中文译本
|
||||||
|
</a>
|
||||||
|
</li><li data-astro-cid-y6p2chun="">
|
||||||
|
<a
|
||||||
|
href="/article/translation/EasyRSA-Advanced v3.08 中文译本.html"
|
||||||
|
target="_blank"
|
||||||
|
data-astro-cid-y6p2chun=""
|
||||||
|
>
|
||||||
|
EasyRSA-Advanced v3.08 中文译本
|
||||||
|
</a>
|
||||||
|
</li><li data-astro-cid-y6p2chun="">
|
||||||
|
<a
|
||||||
|
href="/article/translation/EasyRSA-Readme v3.08 中文译本.html"
|
||||||
|
target="_blank"
|
||||||
|
data-astro-cid-y6p2chun=""
|
||||||
|
>
|
||||||
|
EasyRSA-Readme v3.08 中文译本
|
||||||
|
</a>
|
||||||
|
</li><li data-astro-cid-y6p2chun="">
|
||||||
|
<a
|
||||||
|
href="/article/translation/EasyRSA-Upgrade-Notes v3.08 中文译本.html"
|
||||||
|
target="_blank"
|
||||||
|
data-astro-cid-y6p2chun=""
|
||||||
|
>
|
||||||
|
EasyRSA-Upgrade-Notes v3.08 中文译本
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div><div class="collection-desc-item" data-astro-cid-h6kovdi3="">
|
||||||
|
<h1 data-astro-cid-y6p2chun="">uncategorized</h1>
|
||||||
|
<ul data-astro-cid-y6p2chun="">
|
||||||
|
<li data-astro-cid-y6p2chun="">
|
||||||
|
<a
|
||||||
|
href="/article/translation/iperf3 v3.9 man page 中文译本.html"
|
||||||
|
target="_blank"
|
||||||
|
data-astro-cid-y6p2chun=""
|
||||||
|
>
|
||||||
|
iperf3 v3.9 man(1) 中文译本
|
||||||
|
</a>
|
||||||
|
</li><li data-astro-cid-y6p2chun="">
|
||||||
|
<a
|
||||||
|
href="/article/translation/PostgreSQL Don't Do This 中文译本.html"
|
||||||
|
target="_blank"
|
||||||
|
data-astro-cid-y6p2chun=""
|
||||||
|
>
|
||||||
|
PostgreSQL Don't Do This 中文译本
|
||||||
|
</a>
|
||||||
|
</li><li data-astro-cid-y6p2chun="">
|
||||||
|
<a
|
||||||
|
href="/article/translation/rsync v3.2.7 man(1) page 中文译本.html"
|
||||||
|
target="_blank"
|
||||||
|
data-astro-cid-y6p2chun=""
|
||||||
|
>
|
||||||
|
rsync v3.2.7 man(1) 中文译本
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<Footer />
|
<Footer />
|
||||||
</DefaultLayout>
|
</DefaultLayout>
|
||||||
|
|
||||||
@ -34,4 +176,20 @@ import DefaultLayout from "../../../layouts/DefaultLayout.astro";
|
|||||||
.options {
|
.options {
|
||||||
margin: 0.5em 0 0 0;
|
margin: 0.5em 0 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.collection-desc::after {
|
||||||
|
display: block;
|
||||||
|
content: "";
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul {
|
||||||
|
padding: 0;
|
||||||
|
list-style-type: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
margin: 0.5em 0 0 0;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
@ -1,37 +0,0 @@
|
|||||||
---
|
|
||||||
import Footer from "../../../components/Footer.astro";
|
|
||||||
import Nav from "../../../components/Nav.astro";
|
|
||||||
import CollectionSummary from "../../../components/article/CollectionSummary.astro";
|
|
||||||
import DefaultLayout from "../../../layouts/DefaultLayout.astro";
|
|
||||||
---
|
|
||||||
|
|
||||||
<DefaultLayout title="翻译 - 李守中">
|
|
||||||
<Nav />
|
|
||||||
<div class="options">
|
|
||||||
<span>当前: [按日期降序]</span>
|
|
||||||
<a href="/article/translation/">按名字排序</a>
|
|
||||||
</div>
|
|
||||||
<CollectionSummary
|
|
||||||
collectionName="translation"
|
|
||||||
sortByTimeline={true}
|
|
||||||
sortByArticleTitle={false}
|
|
||||||
/>
|
|
||||||
<Footer />
|
|
||||||
</DefaultLayout>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
:global(@media screen and (max-width: 1024px)) {
|
|
||||||
.collection-desc-item {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
:global(@media screen and (min-width: 1024px)) {
|
|
||||||
.collection-desc-item {
|
|
||||||
width: 50%;
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.options {
|
|
||||||
margin: 0.5em 0 0 0;
|
|
||||||
}
|
|
||||||
</style>
|
|
Loading…
x
Reference in New Issue
Block a user