Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion post.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ years.forEach(year => {
.filter(Boolean);
}

const titleMatch = content.match(/^title:\s*(.*)$/m);

const fileName = file.replace('.md', '');
const parts = fileName.split('-');

Expand All @@ -42,7 +44,7 @@ years.forEach(year => {
slug,
tags,
originalName : fileName,
title : slug.replace(/-/g, ' '),
title : titleMatch ? titleMatch[1].trim() : slug.replace(/-/g, ' '),
date : `${y}-${m}-${d}`
});
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
tags: AoCO2025, Compiler, x86
title: Advent of Compiler Optimisations Study Notes 01
---

## Study Notes: Why xor eax, eax?, Advent of Compiler Optimisations 2025
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
tags: AoCO2025, Compiler, x86
title: Advent of Compiler Optimisations Study Notes 02
---

## Study Notes: Addressing the adding situation, Advent of Compiler Optimisations 2025
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
tags: AoCO2025, Compiler, arm
title: Advent of Compiler Optimisations Study Notes 03
---

## Study Notes: You can't fool the optimiser, Advent of Compiler Optimisations 2025
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
tags: AoCO2025, Compiler, x86
title: Advent of Compiler Optimisations Study Notes 04
---

## Study Notes: Multiplying with a constant, Advent of Compiler Optimisations 2025
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
tags: AoCO2025, Compiler, arm
title: Advent of Compiler Optimisations Study Notes 05
---

## Study Notes: ARM's barrel shifter tricks, Advent of Compiler Optimisations 2025
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
tags: AoCO2025, Compiler, x86, arm
title: Advent of Compiler Optimisations Study Notes 06
---

## Study Notes: Division, Advent of Compiler Optimisations 2025
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
tags: AoCO2025, Compiler, x86
title: Advent of Compiler Optimisations Study Notes 07
---

## Study Notes: Division by a Constant, Advent of Compiler Optimisations 2025
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
tags: AoCO2025, Compiler, x86
title: Advent of Compiler Optimisations Study Notes 08
---

## Study Notes: Going loopy, Advent of Compiler Optimisations 2025
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
tags: AoCO2025, Compiler, x86
title: Advent of Compiler Optimisations Study Notes 09
---

## Study Notes: Induction variables and loops, Advent of Compiler Optimisations 2025
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
tags: AoCO2025, Compiler, x86
title: Advent of Compiler Optimisations Study Notes 10
---

## Study Notes: Unrolling loops, Advent of Compiler Optimisations 2025
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
tags: AoCO2025, Compiler, x86
title: Advent of Compiler Optimisations Study Notes 11
---

## Study Notes: Counting Bits, Advent of Compiler Optimisations 2025
Expand Down
2 changes: 1 addition & 1 deletion src/components/Analytics.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function Analytics() {
script.async = true;

document.head.appendChild(script);
}, [trackingId, siteConfig.analytics.anonymizeIp]);
}, [trackingId]);

return null;
}
16 changes: 7 additions & 9 deletions src/components/Footer/Footer.css
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
.site-footer {
margin-top: 4rem;
padding: 2rem 1rem;
border-top: 1px solid #333;
margin-top: 64px;
padding: 32px 16px;
border-top: 1px solid var(--color-border);
text-align: center;
color: #888;
font-size: 0.9rem;
color: var(--color-text-faint);
font-size: 14.4px;
}

.footer-content a {
color: #ff7875;
text-decoration: none;
color: var(--color-accent);
}

.footer-content a:hover {
color: #ff4d4f;
text-decoration: underline;
color: var(--color-accent-strong);
}
30 changes: 14 additions & 16 deletions src/components/Header/Header.css
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
.site-header {
width: 100%;
border-bottom: 1px solid #333;
padding: 1.5rem 0 0.5rem 0;
border-bottom: 1px solid var(--color-border);
padding: 24px 0 8px;
margin-bottom: 10px;
}

.header-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
max-width: 800px;
margin: 0 auto;
padding: 0 0px;
box-sizing: border-box;
align-items: center;
gap: 8px 20px;
}

.logo {
font-size: 2.0rem;
font-size: clamp(20px, 6vw, 32px);
font-weight: bold;
text-decoration: none;
color: #fff;
line-height: 1;
white-space: nowrap;
color: var(--color-text-strong);
text-decoration: none;
}

.nav-menu {
Expand All @@ -35,12 +33,12 @@
.nav-menu a {
display: flex;
align-items: center;
text-decoration: none;
color: #aaa;
transition: color 0.2s;
line-height: 1;
white-space: nowrap;
color: var(--color-text-muted);
text-decoration: none;
}

.nav-menu a:hover {
color: #646cff;
}
color: var(--color-link);
}
113 changes: 91 additions & 22 deletions src/components/MarkdownRenderer/MarkdownRenderer.css
Original file line number Diff line number Diff line change
@@ -1,43 +1,112 @@
.post-metadata {
margin: 0;
--tag-gap: 10px;
padding: 15px 0;
display: flex;
align-items: center;
}

.post-tags-row {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin: 0;
line-height: 1;
}

.blog-post-tags {
font-family: 'SFMono-Regular', Consolas, monospace;
font-size: 0.8rem;
background: #252525;
color: #c04d4d;
display: inline-flex;
align-items: center;
font-family: var(--font-mono);
font-size: 12.8px;
line-height: 1;
background: var(--color-surface);
color: var(--color-accent);
padding: 4px 10px;
border-radius: 4px;
text-decoration: none;
display: inline-flex;
align-items: center;
}

.blog-post-tags:hover {
background: #121212;
color: #ff4d4f;
text-decoration: none;
background: var(--color-bg-sunken);
color: var(--color-accent-strong);
font-weight: bold;
}

.markdown-body {
font-size: 17.6px;
overflow-wrap: break-word;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
color: var(--color-text-strong);
margin-top: 16px;
margin-bottom: 0.5em;
}

.markdown-body h2 {
margin-top: 0px !important;
margin-top: 0;
}

.markdown-body > :is(h1, h2, h3, p):first-child {
margin-top: 8px;
}

.markdown-body hr {
margin: 0;
border: 0;
border-top: 1px solid var(--color-border);
}

.markdown-body img {
max-width: 100%;
height: auto;
}

.markdown-body table {
display: block;
border-collapse: collapse;
margin: 20px 0;
font-size: 15.2px;
overflow-x: auto;
}

.markdown-body th,
.markdown-body td {
border: 1px solid var(--color-border);
padding: 12px;
text-align: left;
}

.markdown-body th {
background-color: var(--color-surface);
color: var(--color-text-strong);
}

.markdown-body tr:nth-child(even) {
background-color: var(--color-surface-subtle);
}

.markdown-body code {
font-family: var(--font-code);
background-color: var(--color-surface-raised);
padding: 0.2em 0.4em;
border-radius: 4px;
font-size: 85%;
color: var(--color-accent);
}

.markdown-body pre {
overflow-x: auto;
}

.markdown-body pre code {
background-color: transparent;
padding: 0;
color: var(--color-text);
}

.markdown-body :is(pre, pre div, table) {
scrollbar-width: none;
}

.markdown-body :is(pre, pre div, table)::-webkit-scrollbar {
display: none;
}

.katex {
color: #e0e0e0;
color: var(--color-text);
font-size: 1.1em;
}

Expand Down
14 changes: 6 additions & 8 deletions src/components/MarkdownRenderer/MarkdownRenderer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,12 @@ export default function MarkdownRenderer({ content }) {
return (
<article className="markdown-body">
{tags.length > 0 && (
<div className="post-metadata">
<div className="post-tags-row">
{tags.map(tag => (
<a key={tag} href={`/tag/${tag}`} className="blog-post-tags">
#{tag}
</a>
))}
</div>
<div className="tag-list post-metadata">
{tags.map(tag => (
<a key={tag} href={`/tag/${tag}`} className="blog-post-tags">
#{tag}
</a>
))}
</div>
)}

Expand Down
Loading
Loading