Skip to content

Commit 8a1eb4a

Browse files
committed
Clean up
1 parent 6002a5b commit 8a1eb4a

5 files changed

Lines changed: 5 additions & 11 deletions

File tree

.eleventy.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
const yaml = require("js-yaml");
22

33
module.exports = function (eleventyConfig) {
4+
eleventyConfig.addShortcode("currentYear", function () {
5+
return new Date().getFullYear();
6+
});
47
// Add this line to copy your external assets
58
eleventyConfig.addPassthroughCopy("src/assets");
69
// 1. Recognize YAML as a template format

src/_includes/bio.njk

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,8 @@
66
<title>{{ name }} | {{ role }}</title>
77
<script src="https://cdn.tailwindcss.com"></script>
88
<link rel="stylesheet" href="/assets/css/style.css">
9-
<script>
10-
const saved = localStorage.getItem('theme');
11-
if (saved === 'dark') document.documentElement.classList.add('dark');
12-
</script>
139
</head>
14-
<body class="min-h-screen">
10+
<body class="min-h-screen scroll-smooth bg-[var(--bg-page)] text-[var(--text-main)] transition-colors duration-300"">
1511
1612
{% include "header.njk" %}
1713

src/_includes/footer.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</p>
88

99
<p class="mt-1 text-[var(--text-muted)] text-[10px] font-mono uppercase tracking-[0.15em]">
10-
&copy; <span id="current-year">2026</span> Built with
10+
&copy; <span id="current-year">{% currentYear %}</span> Built with
1111
<span id="footer-heart" class="transition-colors duration-500">❤️</span>
1212
by the Open-Source Community
1313
</p>

src/assets/img/next.jpeg

2.99 KB
Loading

src/index.njk

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,6 @@ layout: false
6464
</div>
6565
</main>
6666

67-
<div id="matrix-overlay" class="fixed inset-0 bg-black hidden z-[9999]">
68-
<canvas id="matrix-canvas"></canvas>
69-
<button onclick="closeMatrix()" class="fixed top-8 right-8 z-[10000] bg-white/10 text-white px-4 py-2 rounded-full border border-white/20 backdrop-blur-md text-xs">EXIT [ESC]</button>
70-
</div>
71-
7267
{% include "footer.njk" %}
7368

7469
</body>

0 commit comments

Comments
 (0)