Skip to content

Commit c2a385d

Browse files
committed
Quartz sync: May 19, 2025, 1:03 AM
1 parent 6bdc390 commit c2a385d

File tree

6 files changed

+44
-77
lines changed

6 files changed

+44
-77
lines changed

content/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
---
22
description:
3-
title: Home
3+
title: Hello Again!
44
created: 2025-05-18
55
modified: 2025-05-18
66
comments: "false"
77
---
88

9+
<!--
910
![Typing SVG](https://readme-typing-svg.herokuapp.com?font=Fira&weight=500&size=42&duration=2468&pause=4000&width=600&height=70&lines=Hello%2C+Again!)
11+
-->
1012
![[Lqp2z3I.gif]]
1113

1214
# MOC

quartz.layout.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ export const defaultContentPageLayout: PageLayout = {
4141
Component.TagList(),
4242
],
4343
left: [
44-
Component.MobileOnly(Component.PageTitle()),
45-
Component.DesktopOnly(Component.PageTitleWithLogo()),
44+
Component.PageTitle(),
4645
Component.MobileOnly(Component.Spacer()),
4746
Component.Flex({
4847
components: [
@@ -97,8 +96,7 @@ export const defaultContentPageLayout: PageLayout = {
9796
export const defaultListPageLayout: PageLayout = {
9897
beforeBody: [Component.Breadcrumbs(), Component.ArticleTitle(), Component.ContentMeta()],
9998
left: [
100-
Component.MobileOnly(Component.PageTitle()),
101-
Component.DesktopOnly(Component.PageTitleWithLogo()),
99+
Component.PageTitle(),
102100
Component.MobileOnly(Component.Spacer()),
103101
Component.Flex({
104102
components: [

quartz/components/PageTitle.tsx

Lines changed: 31 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,47 @@ const PageTitle: QuartzComponent = ({ fileData, cfg, displayClass }: QuartzCompo
77
const title = cfg?.pageTitle ?? i18n(cfg.locale).propertyDefaults.title
88
const baseDir = pathToRoot(fileData.slug!)
99
return (
10-
<h2 class={classNames(displayClass, "page-title")}>
11-
<a href={baseDir}>
10+
<a href={baseDir} class="page-header-link">
11+
<h2 class={classNames(displayClass, "page-title")}>
1212
{title}
13-
<img class="logo" src="https://avatars.githubusercontent.com/u/71107230?v=4" />
14-
</a>
15-
</h2>
13+
</h2>
14+
<img class="page-logo" src="https://avatars.githubusercontent.com/u/71107230?v=4" />
15+
</a>
1616
)
1717
}
1818

1919
PageTitle.css = `
20+
.page-header-link {
21+
display: flex;
22+
gap: 0.5rem;
23+
text-decoration: none;
24+
25+
@media (min-width: 1024px) {
26+
flex-direction: column;
27+
}
28+
}
29+
2030
.page-title {
21-
font-size: 1.75rem;
31+
font-size: 1.1rem;
2232
margin: 0;
33+
margin-left: 0.5em;
2334
font-family: var(--titleFont);
24-
display: flex;
25-
align-items: center;
26-
}
27-
.page-title a {
28-
margin-left: 0.5rem;
35+
white-space: nowrap;
36+
37+
@media (min-width: 1024px) {
38+
font-size: 1.7rem;
39+
}
2940
}
30-
.logo {
31-
width: 2rem;
32-
height: 2rem;
33-
padding-left: 0.25rem;
41+
42+
.page-logo {
3443
margin: 0;
35-
vertical-align: text-top;
44+
width: 1.6rem;
45+
height: 1.6rem;
46+
47+
@media (min-width: 1024px) {
48+
width: auto;
49+
height: auto;
50+
}
3651
}
3752
`
3853

quartz/components/PageTitleWithLogo.tsx

Lines changed: 0 additions & 45 deletions
This file was deleted.

quartz/components/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import Darkmode from "./Darkmode"
77
import ReaderMode from "./ReaderMode"
88
import Head from "./Head"
99
import PageTitle from "./PageTitle"
10-
import PageTitleWithLogo from "./PageTitleWithLogo"
1110
import ContentMeta from "./ContentMeta"
1211
import Spacer from "./Spacer"
1312
import TableOfContents from "./TableOfContents"
@@ -34,7 +33,6 @@ export {
3433
ReaderMode,
3534
Head,
3635
PageTitle,
37-
PageTitleWithLogo,
3836
ContentMeta,
3937
Spacer,
4038
TableOfContents,

quartz/styles/custom.scss

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
// put your custom CSS here!
44

5-
65
.center article,
76
p {
87
@media (min-width: 1400px) {
@@ -20,19 +19,19 @@ footer {
2019
}
2120
}
2221

23-
.explorer-content .folder-container {
24-
margin: 0.1em 0;
22+
// .explorer-content .folder-container {
23+
// padding: 0.1em 0;
2524

26-
@media (min-width: 1400px) {
27-
margin: 0.4em 0;
28-
}
29-
}
25+
// @media (min-width: 1400px) {
26+
// padding: 0.1em 0;
27+
// }
28+
// }
3029

3130
.explorer-content li {
32-
margin: 0.2em 0;
31+
padding: 0.2em 0;
3332

3433
@media (min-width: 1400px) {
35-
margin: 0.4em 0;
34+
padding: 0.4em 0;
3635
line-height: 1.3;
3736
}
3837
}

0 commit comments

Comments
 (0)