This commit is contained in:
oldwinter 2024-04-11 00:26:03 +08:00
parent 1804310ca0
commit 940050f5ba
3 changed files with 6 additions and 7 deletions

View File

@ -52,7 +52,7 @@ const config: QuartzConfig = {
transformers: [
Plugin.FrontMatter(),
Plugin.CreatedModifiedDate({
priority: ["frontmatter", "filesystem"],
priority: ["frontmatter", "git", "filesystem"],
}),
Plugin.Latex({ renderEngine: "katex" }),
Plugin.SyntaxHighlighting({

View File

@ -7,8 +7,7 @@ export const sharedPageComponents: SharedLayout = {
header: [],
footer: Component.Footer({
links: {
GitHub: "https://github.com/jackyzha0/quartz",
"Discord Community": "https://discord.gg/cRFFHYye7t",
GitHub: "https://github.com/oldwinter/dg3",
},
}),
}
@ -27,7 +26,7 @@ export const defaultContentPageLayout: PageLayout = {
Component.Search(),
Component.Darkmode(),
Component.DesktopOnly(Component.Explorer()),
Component.RecentNotes({ limit: 5 }),
Component.DesktopOnly(Component.RecentNotes({ limit: 5 })),
],
right: [
Component.Graph(),
@ -45,7 +44,7 @@ export const defaultListPageLayout: PageLayout = {
Component.Search(),
Component.Darkmode(),
Component.DesktopOnly(Component.Explorer()),
Component.RecentNotes({ limit: 5 }),
Component.DesktopOnly(Component.RecentNotes({ limit: 5 })),
],
right: [],
}

View File

@ -14,10 +14,10 @@ export default ((opts?: Options) => {
return (
<footer class={`${displayClass ?? ""}`}>
<hr />
<p>
{/* <p>
{i18n(cfg.locale).components.footer.createdWith}{" "}
<a href="https://quartz.jzhao.xyz/">Quartz v{version}</a> © {year}
</p>
</p> */}
<ul>
{Object.entries(links).map(([text, link]) => (
<li>