Fun With Front Matter: Part 4 – Featured Posts / / No Comments It’s been a few days since my last post in this series. I’d like to blame something in specific but honestly, it’s just life. Today’s tip will – again – be short and sweet but hopefully helpful. The idea of a "featured" post is that there may be content that, no matter the age or view count in your stats, you want to highlight. It could be your first blog post. A post announcing a new job or life event. Or anything really. How can we use front matter to support this? Marking Featured Content # One approach to marking content as featured could be to simply add a featured value to the front matter, like so: ---layout: posttitle: Gamma Post 7tags: postsdate:... more → Posted in: JavaScript Tagged with: Featured, Front, Matter, part, posts
Quick LiquidJS + Eleventy Example – All Posts / / No Comments So, on a whim today I decided to add a page to my blog to display every single post, separated by year. This was not meant to be used by anyone (hence me not linking to it in the nav), but something I’ve wanted around for a while. I’ve got a nice search form here, but sometimes I want to search for something I blogged a few weeks ago and having a simple list of posts would be useful. I didn’t want to build "proper" pagination, just one giant list in on an HTML page. That’s not the best UX but as I’m building this for me, I approve. I thought it would be a quick little script, but as I built it, I ran into a few interesting... more → Posted in: JavaScript Tagged with: Eleventy, example, LiquidJS, posts, Quick
App tracks public social media posts to create real-time map of flu – MLive.com / / No Comments MLive.com App tracks public social media posts to create real-time map of fluMLive.com"Everyday thousands of people around the globe update social media sites like Facebook and Twitter when they (or someone close to them) get sick," the app explains on its website. "Just as Doppler radar scans the skies for indicators of bad weather … map app – Google News… more → Posted in: Interactive Maps Tagged with: create, Media, MLive.com, posts, public, realtime, Social, tracks