Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7725057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:50:38+00:00 2026-06-01T04:50:38+00:00

I am wondering if someone could explain how I can utilise tags in an

  • 0

I am wondering if someone could explain how I can utilise tags in an article.

The documentation states that by default the blog extension should allow you to access tagged articles via tags/blogging.html. http://middlemanapp.com/guides/blog
I guess I’m not sure if I need to create this dir (tags/blogging.html) or if its generated for me?

Then I’m wondering how to create a list of tags, each with a URL that points to this tag template.

I’ve added this example tag data to the front matter of a few of my articles.

--- 
title: My Middleman Blog Post
date: 2011/10/18
category: music
tags: blogging, middleman, hello, world
---

my index.html.erb looks like this:

<section class="article-index music">
    <% data.blog.articles.each_with_index do |article, i| %>
        <% if article.category == 'music' %>
            <article>
            <h2><a href="<%= article.url.sub('.html','') %>"><%= article.title %></a></h2>
            <time pubdate><%= article.date.strftime('%b %e') %></time>
            <span class="categories"><%= article.tags %></span>
            <%= article.summary %>
            </article>
        <% end %>
    <% end %>
</section>

This is outputting all my articles, with a title, date, all tags and a summary.

I’m assuming you need to loop through all the tags and output each in a URL of its own, but I’m not really sure of the best way to do this.

At a guess I’m assuming its something like:

<% article.tags.each do |tag| %>
    <a href="/tags/#{tag}.html">tag</a>
<% end %>

Any help is appreciated.
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T04:50:39+00:00Added an answer on June 1, 2026 at 4:50 am

    Not supported in 2.0. Possibly in upcoming 3.0

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just wondering if someone could explain this to me? I have a program that
I was wondering if someone could explain to me how to create views that
I was wondering if someone could explain to me how to make a simple
Wondering if someone could please explain the difference between these two queries and advise
I was wondering if someone could tell me what I am doing wrong that
I was wondering if someone could explain to me how I might be able
I was wondering if someone could explain how the following code works: public interface
I was wondering if someone could explain to me what the #pragma pack preprocessor
I was wondering if someone could explain this to me: In [400]: poz0='' In
I am just wondering if someone could explain what the following jQuery script does:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.