Further Microblog Revisions

Clicking on the title of my microblog entries will take you to an individual page for them now. This is for the purpose of being able to link specific microblogs and enable comments.

To get this to work, I had to do two things. First, my microblog entries weren't having individual pages generated for them at all - they were appearing on the page I set up for my microblog, but didn't exist anywhere as individual posts on the site. My understanding is that this is because they weren't in a collection. I'd filtered them from the default collection so that microblog posts wouldn't appear on my front page. This had the unintended side effect of removing them from the site entirely except as entries on my microblog post. So to remedy this, I made a microblog collection. This is what my routes.yaml file looks like now:

routes:

collections:
  /:
    permalink: /{slug}/
    template: index
    filter: tag:-[microblog]
  /microblog/:
    permalink: /microblog/{slug}/
    template: microblog
    filter: tag:microblog

taxonomies:
  tag: /tag/{slug}/
  author: /author/{slug}/

The second thing to do was make an actual link for the title in my microblog template.

<h1 class="article-title">
  {{#link href=(url)}}{{title}}{{/link}}
</h1>

So now I've got things set up how I want! 🎉