Skip to content
Snippets Groups Projects
Unverified Commit 3218c7fb authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

post categories jekyll

parent a55e3652
No related branches found
No related tags found
No related merge requests found
......@@ -3,10 +3,12 @@ title: "<%= @post.title %>"
date: <%= @post.published_at %> UTC
slug: "<%= @post.slug %>"
author: "<%= @post.author_id %>"
<% if @post.categories.any? %>
categories:
<% @post.categories.each do |category| %>
- "<%= category.id %>"
<% end %>
<% end %>
<% if @post.featured_image.attached? %>
image: "<%= @post.featured_image.blob.id %>"
<% end %>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment