mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-03-24 23:15:46 -05:00
Add aritcle and new icon
This commit is contained in:
parent
88b954d3f4
commit
50a8c248b4
BIN
content/Resources/Icon.png
Normal file
BIN
content/Resources/Icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 711 B |
1653
content/Resources/Icon.svg
Normal file
1653
content/Resources/Icon.svg
Normal file
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 95 KiB |
@ -36,13 +36,13 @@ const config: QuartzConfig = {
|
||||
highlight: "rgba(143, 159, 169, 0.15)",
|
||||
},
|
||||
darkMode: {
|
||||
light: "#161618",
|
||||
light: "#212121",
|
||||
lightgray: "#393639",
|
||||
gray: "#646464",
|
||||
darkgray: "#d4d4d4",
|
||||
dark: "#ebebec",
|
||||
secondary: "#7b97aa",
|
||||
tertiary: "#84a59d",
|
||||
secondary: "#2c8d96",
|
||||
tertiary: "#4fbf9e",
|
||||
highlight: "rgba(143, 159, 169, 0.15)",
|
||||
},
|
||||
},
|
||||
|
||||
@ -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/carsonclarke570",
|
||||
},
|
||||
}),
|
||||
}
|
||||
|
||||
@ -22,6 +22,16 @@ export default (() => {
|
||||
return p.filePath?.startsWith("content/blogs/graphics/") && !p.frontmatter?.draft
|
||||
}
|
||||
return isValid(curr)
|
||||
}).sort((a, b) => {
|
||||
const aDate: Date = a.frontmatter?.publishDate as Date
|
||||
const bDate: Date = b.frontmatter?.publishDate as Date
|
||||
|
||||
if (aDate < bDate) {
|
||||
return 1;
|
||||
} else if (aDate > bDate) {
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
})
|
||||
|
||||
const parseDate = (date: Date) => {
|
||||
|
||||
@ -6,9 +6,12 @@ import { i18n } from "../i18n"
|
||||
const PageTitle: QuartzComponent = ({ fileData, cfg, displayClass }: QuartzComponentProps) => {
|
||||
const title = cfg?.pageTitle ?? i18n(cfg.locale).propertyDefaults.title
|
||||
const baseDir = pathToRoot(fileData.slug!)
|
||||
|
||||
return (
|
||||
<h1 class={classNames(displayClass, "page-title")}>
|
||||
<a href={baseDir}>{title}</a>
|
||||
<a href={baseDir}>
|
||||
<img className="Logo" src="/Resources/Icon.svg" width={250} />
|
||||
</a>
|
||||
</h1>
|
||||
)
|
||||
}
|
||||
|
||||
@ -33,9 +33,6 @@ export default (() => {
|
||||
|
||||
const title = page.frontmatter?.title ?? i18n(cfg.locale).propertyDefaults.title
|
||||
const tags = page.frontmatter?.tags ?? []
|
||||
const parseDate = (date: Date) => {
|
||||
return date.toLocaleDateString('en-US') //`${date.getFullYear()}/${date.getMonth()}/${date.getDay()}`
|
||||
}
|
||||
|
||||
return fileData.filePath?.startsWith("content/index") ? (
|
||||
<blockquote class="callout blog" data-callout="blog">
|
||||
|
||||
@ -23,6 +23,7 @@
|
||||
& > .preview-content {
|
||||
margin: 0px 10px;
|
||||
align-self: flex-start;
|
||||
width: 100%;
|
||||
|
||||
& > .preview-title {
|
||||
display: flex;
|
||||
|
||||
@ -45,9 +45,9 @@
|
||||
}
|
||||
|
||||
&[data-callout="math"] {
|
||||
--color: #dba642;
|
||||
--color: #c29e1d;
|
||||
--border: #dba64244;
|
||||
--bg: #dba64210;
|
||||
--bg: #c29e1d10;
|
||||
--callout-icon: var(--callout-icon-sigma);
|
||||
}
|
||||
|
||||
@ -64,9 +64,9 @@
|
||||
}
|
||||
|
||||
&[data-callout="tip"] {
|
||||
--color: #00bfa5;
|
||||
--color: #4fbf9e;
|
||||
--border: #00bfa544;
|
||||
--bg: #00bfa510;
|
||||
--bg: #2c8d9610;
|
||||
--callout-icon: var(--callout-icon-tip);
|
||||
}
|
||||
|
||||
@ -85,9 +85,9 @@
|
||||
}
|
||||
|
||||
&[data-callout="warning"] {
|
||||
--color: #db8942;
|
||||
--color: #f19155;
|
||||
--border: #db894244;
|
||||
--bg: #db894210;
|
||||
--bg: #ba4e3b10;
|
||||
--callout-icon: var(--callout-icon-warning);
|
||||
}
|
||||
|
||||
|
||||
@ -1,9 +1,6 @@
|
||||
@use "./base.scss";
|
||||
@use "./variables.scss" as *;
|
||||
|
||||
.page-title {
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
#explorer-ul {
|
||||
max-height: calc(100vh - 400px);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user