Website Changelog[2025.03.16]
What Did I Do Today?
- Added a sidebar (sorted by tags) for blog posts and removed the separate "Tags" page
- Added navigation buttons (Previous / Next) to both posts and gallery pages
- Started to understand the logic behind HTML (finally!)
Why Did I Do What I Did?
Sidebar (Tag-Based Navigation)
Before this, my blog posts were sorted by date only. It was hard to tell what topics I was writing about just by scrolling. For new visitors, that’s pretty confusing—they’d have no idea what kind of content I post.
So I built a sidebar that lists blog posts by tags. It helps with clarity and navigation.
I might add something similar to the gallery page too.
Navigation Buttons
This one’s simple: I wanted readers to be able to move from one post to another without going back to the homepage every time. Just a smoother reading experience overall.
What Challenges Did I Face?
Sidebar
- Positioning: At first, the sidebar showed up below the main content. I wanted it to sit side-by-side. So I wrapped both the content and the sidebar in a container, like this:
<div class="post-container">
<!-- Main content -->
<article class="post-content"></article>
<!-- Sidebar -->
<aside class="post-sidebar"></aside>
</div>
- Then I styled it in
sass/blog.scss
:
.post-container {
display: flex;
gap: 2rem;
margin: 2rem 0;
}
.post-content {
flex: 1;
}
.post-sidebar {
width: 250px;
position: sticky;
top: 2rem;
height: calc(100vh - 4rem);
overflow-y: auto;
}
-
I made sure that all templates used:
- The same class names
- A
post-container
wrapper post-content
for main contentpost-sidebar
for the sidebar
-
One hiccup: I kept getting errors because I forgot to import the
hooks
macro—needed for sidebar tag click results. Classic.
Navigation Buttons
- Initially, the "Next" and "Previous" buttons were too close together. I fixed that… in a very silly way: just added
gap: 4rem
to.post-navigation
.
.post-navigation {
display: flex;
gap: 4rem;
}
- I was worried this fixed gap might not be responsive on different devices (hello iPhone users), so I added more flexibility:
.post-navigation {
display: flex;
flex-wrap: wrap;
}
.next-post {
flex: 1;
min-width: 250px;
}
- To test responsiveness, I used the browser’s device toolbar:
- Right-click > Inspect
- Toggle device toolbar (📱 icon)
- Choose a device like iPhone or drag screen width manually
Time Spent: ~4 hours
🛠️ What’s Next?
- I really need to learn more about Markdown
- My code blocks look terrible (black background… why)
- The blog text is way too big 😅
- Fill out my About page
- Collect more website inspiration
- Add more content??
That’s all for today. Bit by bit, it’s coming together 🧩