I enjoyed Danila Fedorin’s post Microfeatures I Love in Blogs and Personal Websites. Here’s some stuff I think it cool is a great style of post that I wish more people did, especially since I was just poking at that. Maybe I’ll do my own one of these days, but I had so many thoughts while reading Danila’s, I figured I could turn that into a post.
I’m going to go through each feature with what goes through my brain. It is clearly noted “[these features] need not be applied indiscriminately” which I agree and want to underscore. These are mostly just nice ideas when appropriate.
Sidenotes
Danila mentions examples like this.
![](https://i0.wp.com/frontendmasters.com/blog/wp-content/uploads/2024/07/Screenshot-2024-07-15-at-3.04.38%E2%80%AFPM-1024x488.png?resize=1024%2C488&ssl=1)
Love it. Very classy. My thinking is:
- Start as semantic HTML footnotes. Put the footnotes at the bottom of the article, use numbered jump links down to them, then link back.
- Progressively enhance to a popover, probably as a drawer.
- If on a large enough screen, enhance to Nuclear Anchored Sidenotes. CSS’ upcoming anchor positioning API is going to be a godsend for this.
Easily Linkable Headings
The idea here is instead of something like this:
<h2>
<a href="#particular-header">
#
<span class="visually-hidden">Jump Link to Particular Header</a>
</a>
Particular Header
</h2>
Code language: HTML, XML (xml)
You just make the header itself a link like:
<a href="#particular-header">
<h2 id="particular-header">Particular Header</h2>
</a>
Code language: HTML, XML (xml)
Huh! I just never thought to do it that way because it feels like… I dunno they aren’t really links so it feels weird linking the whole thing. But the more I think about it the more I don’t hate it. Danila is doing it and even tosses in a little yellow fade technique for good measure I see.
To me, it’s more about an authoring experience that doesn’t make you think about it at all. All headers should be linkable, automatically. I’ve long been a fan of this itty bitty WordPress plugin that does it. Whatever you use to produce HTML from written content, automate it!
![](https://i0.wp.com/frontendmasters.com/blog/wp-content/uploads/2024/07/CleanShot-2024-07-15-at-16.12.25@2x.png?resize=774%2C270&ssl=1)
![](https://i0.wp.com/frontendmasters.com/blog/wp-content/uploads/2024/07/CleanShot-2024-07-15-at-16.13.40@2x.png?resize=734%2C366&ssl=1)
Table of Contents
I actually moved “Easily Linkable Headlines” up a few spots so that it would come before this section. My thinking is that once you have all headers linked properly, producing a table of contents is “easy”. Loop over the headers, display. The more complicated (but optional) thing could could do is nesting the headers. Meaning h4’s are nested under the preceding h3, which is nested under the preceding h2, etc.
I would think any major CMS will have some automated way of producing these things. I hand-wrote the PHP on this site to create the ones you can see in our sidebar on all posts (that have headings).
![](https://i0.wp.com/frontendmasters.com/blog/wp-content/uploads/2024/07/Screenshot-2024-07-15-at-4.16.20%E2%80%AFPM.png?ssl=1)
position: sticky
so it hangs around as you scroll down a longer article.Showing Page Progress
I actually disagree on this one. I think those horizontal bars that fill up as you scroll down the page are cheezy, unnecessary, and unhelpful. They do make for a pretty good demo on using Scroll-Driven Animations though!
But we just talked about Table of Contents and Danila mentions a Table of Contents that highlights where you are, and that is actually pretty rad. Agreed on that one! Maybe I can implement that to our Table of Contents one day.
Grouping Series of Posts
It’s actually silly to write a series of posts and then not clearly link them together. Definitely do that! As many ways as you kind. That’s just good wayfinding for users. Nobody is going to be mad at you for helping you find your way around.
I built this kind of widget here on Boost for that:
![](https://i0.wp.com/frontendmasters.com/blog/wp-content/uploads/2024/07/Screenshot-2024-07-15-at-3.24.09%E2%80%AFPM-1024x373.png?resize=1024%2C373&ssl=1)
As I mentioned, this is a WordPress site, so I used Advanced Custom Fields (very broadly useful) and the Post Object Field Type applied to a custom Block, so I can plop one of these little “Article Series” blocks where ever I want. Then I make the block a “Pattern”, so that I can re-use the exact same version of the Block all over the series. Update one, they all update, which makes it easy as you’re publishing over time. I realize that’s pretty WordPress-specific, but it’s worth building out something for this if you publish series!
Dialogs
Heck yeah! +1 to interesting post formats. We all use all sorts of messaging services, so having that available to use as a design element with posts is a great idea. We’ve done limited versions of it sort of replicating a Discord conversation a few times, but it doesn’t yet have that back-and-forth conversational feel, it’s just a list of posts.
I’d probably make a “left” custom design and a “right” custom design so I could just pick and choose them however makes the conversation look best. Oh and it would be a great use-case for text-wrap: balance
so that the actual “text bubbles” would feel rather sized to their content nicely.
Generally: art direct those articles! Make them interesting!
Code Blocks with Origin
The idea here is showing off the name of the file that you’re showing off a code block of.
![](https://i0.wp.com/frontendmasters.com/blog/wp-content/uploads/2024/07/Screenshot-2024-07-15-at-4.20.01%E2%80%AFPM.png?ssl=1)
I mean, sure. Why not. I could see that being an interesting bit of metadata you might want to have available sometimes. I’ve just written one zillion code blocks in posts in my life and have rarely wanted it. I usually don’t care what you name your file, it’s just a concept. In Danila’s case, it was based on user feedback about a pretty complex series of posts about a very technical subject, so point taken.
Here’s my list for both authors and users of code blocks:
- Syntax highlighting, server side. Subset of languages I care about.
- I don’t want to have to escape special characters myself.
- Nice design. Distinct but not distracting.
- A copy and paste button.
- Line numbers that I can turn on or off.
- Ability to highlight any lines.
I do like the idea of allowing for clickable links within code blocks. This is a good one for the list because I think it would be extra tricky to pull off and quite a nice touch. You either have to give up on having the code auto-escaped (so the HTML within could stay actual HTML) or do something really clever, like not escaping HTML within comments?? or something??
.el {
/* Try the <a href="https://scroll-driven-animations.style/tools/view-timeline/ranges/">View Timeline Visualizer</a> */
animation: reveal linear both;
animation-timeline: view(block);
animation-range: cover 0% cover 100%;
}
Code language: CSS (css)
Markers for External Links
I get the idea. The little box-with-arrow icon sorta like [⤴].
I can’t get behind it though. I’d say it’s just personal preference (I don’t really care if a link is “internal” or “external”), but I’ve also never seen data on if users find it helpful or heard any particularly strong or compelling opinions about it over my years. I do like it when links that are weird/surprising are indicated though, like:
- Email links (e.g.
mailto:
) - Links to PDFs
- Links to Media files (e.g.
.mp3
)
Those have way different behavior than just “go to new website” so a heads up is nice. And since they are all <a>
links (probably), CSS can help:
a[href$=".pdf"]::after {
content: " (PDF)";
}
a[href^="mailto"]::after {
content: " (Email)";
}
/* etc. */
Code language: CSS (css)
Danila’s idea of different markers for different destinations, while I’m personally not that into it, can be pulled off in CSS with a little indie web service.
![](https://i0.wp.com/frontendmasters.com/blog/wp-content/uploads/2024/07/Screenshot-2024-07-15-at-3.55.43%E2%80%AFPM.png?ssl=1)
Link Preview
I’d have a real light touch with this! It’s kind of unexpected behavior if you do something like make it a hover effect for a link.
Remember when posted about Standalone Web Components, I linked up David Darnes’ <link-peak>
component which could help with this.
RSS Feeds
Yes! Old man shakes fist at internet!
If you write and publish your work on your own site for free, give me that sweet sweet RSS feed. Do it just for me. I’ll subscribe to it. I carefully curate my feeds and I love it. It’s simple technology designed to connect us.
Danila almost mentions linking up other people’s sites. Sure! Go for it! Have fun with it! You could call it a “blogroll”, that’s kind of the classic term for it. Or go even older-school with a “webring”, those are coming back a smidge. If you want to show the latest posts from other sites, that ups the difficultly and has performance implications, but it’s doable and you could have fun with that.