--- layout: default ---
{%- assign category = 'Category' -%} {%- if site.data.text-for.tCategory -%}{%- assign category = site.data.text-for.tCategory -%}{%- endif %} {%- assign found = false -%} {%- for post in site.posts -%} {%- if post.categories -%} {%- for cat in post.categories -%} {%- if cat == page.title -%} {%- assign found = true %}

{{ post.title }}

{%- if post.tags.size > 0 -%} {%- assign tags = 'Tags' -%} {%- if site.data.text-for.tTags -%} {%- assign tags = site.data.text-for.tTags -%} {%- endif %} {%- endif -%} {%- assign more = 'more' -%} {%- if site.data.text-for.tMore -%} {%- assign more = site.data.text-for.tMore -%} {%- endif %}

{{ post.excerpt | remove: '

' | remove: '

' }}{{ more }}...

{%- endif -%} {%- endfor -%} {%- endif -%} {%- endfor -%} {%- if found == false -%} {%- assign message = 'No blogposts found for this category' -%} {%- if site.data.text-for.tNoBlogpostFound -%} {%- assign message = site.data.text-for.tNoBlogpostFound -%} {%- endif %}

{{ message }}

{%- endif %}