[Middleman] Read the tags assigned to a page

Created on November 30, 2026

Use current_page.data.tags to read the tags set in the page's front matter. If the front matter uses a YAML list, current_page.data.tags is an array.

tags:
  - hoge
  - moge

The template below joins the tags with a comma and a space.

<% if current_page.data.tags then %>
Tags: <%= current_page.data.tags.join(', ') %>
<% end %>

Output

Tags: hoge, moge
middleman