Skip to content

Commit 4ae073f

Browse files
Merge pull request #10 from estepankevich/adapt_backlins_and_toc
adapt design, change photo
2 parents 5ac9ee1 + adeab0c commit 4ae073f

File tree

10 files changed

+47
-34
lines changed

10 files changed

+47
-34
lines changed

content/index.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,22 @@ date: 2024-11-15
55

66
<h2>Welcome to my personal website and digital garden !</h2>
77
<div class="welcome">
8-
<img src="/static/og-image.png" alt="My Photo"/>
9-
<p>
10-
My name is Evgeny. I’m passionate about data science, mathematics, and philosophy.
11-
<br/> <br/>
12-
This site is a collection of my thoughts, notes, in-depth articles and projects I’ve worked on or found inspiring over the years. What started as a simple digital repository has evolved into a multilingual mix of English, French, and Russian content. I hope you find something here that sparks your curiosity or inspires your own explorations.
13-
<br/> <br/>
14-
In my free time I enjoy running🏃, climbing🧗, and playing the piano🎹.
15-
</p>
8+
<div class="image-container">
9+
<img src="/static/og-image.jpeg" alt="My Photo"/>
10+
<p class="portrait-credit">Portrait Credit: <a href="https://www.deviantart.com/butjok/art/Best-friend-188254432">butjok 2010 &copy;</a></p>
11+
</div>
12+
<div class="text-container">
13+
<p>
14+
My name is Evgeny. I’m passionate about data science, mathematics, and philosophy.
15+
<br/> <br/>
16+
This site is a collection of my thoughts, notes, in-depth articles and projects I’ve worked on or found inspiring over the years. What started as a simple digital repository has evolved into a multilingual mix of English, French, and Russian content. I hope you find something here that sparks your curiosity or inspires your own explorations.
17+
<br/> <br/>
18+
In my free time I enjoy running🏃, climbing🧗, and playing the piano🎹.
19+
</p>
20+
</div>
1621
</div>
1722

23+
1824
This site is a living project and is always evolving. Here's how it's organized:
1925
- [🌍 Blog](/🌍-Blog) - A curated selection of my longer-form writing and reflections
2026
- [🌐 Topics](/🌐-Topics) - Pages that organize my notes by subject

quartz.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const config: QuartzConfig = {
7070
}),
7171
Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: false }),
7272
Plugin.GitHubFlavoredMarkdown(),
73-
Plugin.TableOfContents(),
73+
Plugin.TableOfContents({ collapseByDefault: true }),
7474
Plugin.CrawlLinks({ markdownLinkResolution: "shortest" }),
7575
Plugin.Description(),
7676
Plugin.Latex({ renderEngine: "katex" }),

quartz.layout.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,7 @@ export const defaultContentPageLayout: PageLayout = {
3434
Component.ArticleTitle(),
3535
Component.ContentMeta(),
3636
Component.TagList(),
37-
Component.MobileOnly(Component.TableOfContents({
38-
showByDefault: false,
39-
collapseByDefault: true
40-
}))
37+
Component.TableOfContents()
4138
],
4239
left: [
4340
Component.PageTitle(),
@@ -50,12 +47,6 @@ export const defaultContentPageLayout: PageLayout = {
5047
Component.Search(),
5148
Component.Darkmode(),
5249
Component.Graph(),
53-
Component.DesktopOnly(Component.TableOfContents({
54-
showByDefault: false,
55-
collapseByDefault: true
56-
}))
57-
],
58-
afterBody: [
5950
Component.BacklinksCustom()
6051
]
6152
}

quartz/components/Head.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ export default (() => {
121121
const path = url.pathname as FullSlug
122122
const baseDir = fileData.slug === "404" ? path : pathToRoot(fileData.slug!)
123123

124-
const iconPath = joinSegments(baseDir, "static/icon.png")
124+
const iconPath = joinSegments(baseDir, "static/icon.jpeg")
125125

126-
const ogImageDefaultPath = `https://${cfg.baseUrl}/static/og-image.png`
126+
const ogImageDefaultPath = `https://${cfg.baseUrl}/static/og-image.jpeg`
127127
// "static/social-images/slug-filename.md.webp"
128128
const ogImageGeneratedPath = `https://${cfg.baseUrl}/${fileDir.replace(
129129
`${ctx.argv.output}/`,

quartz/static/icon.jpeg

5.14 KB
Loading

quartz/static/icon.png

-1.69 KB
Binary file not shown.

quartz/static/og-image.jpeg

82.8 KB
Loading

quartz/static/og-image.png

-13.8 KB
Binary file not shown.

quartz/styles/custom.scss

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,37 @@ article > ul:first-child {
5656
}
5757

5858
.welcome {
59-
display: flex;
60-
justify-content: center;
61-
}
62-
63-
.welcome p,img {
64-
padding: 10px;
65-
padding-left: 0;
66-
}
67-
68-
.welcome img {
69-
max-width: 30%;
59+
display: flex;
60+
gap: 20px; /* Space between the image and text */
61+
}
62+
63+
.image-container {
64+
display: flex;
65+
flex-direction: column;
66+
max-width: 30%; /* Adjust as needed */
67+
}
68+
69+
.image-container img {
70+
max-width: 100%;
7071
height: auto;
7172
object-fit: contain;
7273
object-position: top;
73-
}
74+
}
75+
76+
.portrait-credit {
77+
font-size: 0.8rem;
78+
color: #8e8888;
79+
text-align: center;
80+
margin-top: -15px;
81+
}
82+
83+
.text-container {
84+
max-width: 60%; /* Adjust as needed */
85+
}
86+
87+
.text-container p {
88+
line-height: 1.6; /* Improve readability */
89+
}
7490

7591
.recent-ul {
7692
padding: 0;

quartz/util/og.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export const defaultImage: SocialImageOptions["imageStructure"] = (
146146
const useSmallerFont = title.length > fontBreakPoint
147147

148148
// Setup to access image
149-
const iconPath = `https://${cfg.baseUrl}/static/icon.png`
149+
const iconPath = `https://${cfg.baseUrl}/static/icon.jpeg`
150150
return (
151151
<div
152152
style={{

0 commit comments

Comments
 (0)