Skip to content

Commit

Permalink
Quartz sync: Jan 8, 2024, 9:57 AM
Browse files Browse the repository at this point in the history
  • Loading branch information
UncaughtCursor committed Jan 8, 2024
1 parent a4d016f commit f758c43
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion quartz/components/PageTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ function PageTitle({ fileData, cfg, displayClass }: QuartzComponentProps) {
const baseDir = pathToRoot(fileData.slug!)
return (
<h1 class={`page-title ${displayClass ?? ""}`}>
<a href={baseDir}>{title}</a>
<a href={baseDir}>
<img src="/static/icon.png" />
{title}
</a>
</h1>
)
}
Expand All @@ -15,6 +18,11 @@ PageTitle.css = `
.page-title {
margin: 0;
}
.page-title > a > img {
height: 1.75rem;
margin: 0;
margin-right: 0.5rem;
}
`

export default (() => PageTitle) satisfies QuartzComponentConstructor

0 comments on commit f758c43

Please sign in to comment.