title = "Post" url = "/blog/post/:slug" layout = "default" is_hidden = 0 [blogPost] slug = "{{ :slug }}" categoryPage = "blog/category" ==

{{ post.title }}

{% set post = blogPost.post %}
{{ post.content_html | raw }}
{% if post.featured_images.count %} {% endif %}

{% if post.categories.count %} {% set categoryLinks = post.categories | map(c => "#{c.name}") | join(', ') %} {{ 'winter.blog::lang.post.posted_byline' | trans({ date: post.published_at | date('winter.blog::lang.post.date_format' | trans), categories: categoryLinks }) }} {% else %} {{ 'winter.blog::lang.post.posted_byline_no_categories' | trans({ date: post.published_at | date('winter.blog::lang.post.date_format'|trans) }) }} {% endif %}

{% partial 'blog/sidebar' %}