<commit_before>extends ../layouts/default

mixin post(post)
	.post(data-ks-editable=editable(user, { list: 'Post', id: post.id }))
		h2: a(href='/blog/post/' + post.slug)= post.title
		p Ver&ouml;ffentlicht 
			if post.publishedDate
				| am #{post._.publishedDate.format('MMMM Do, YYYY')} 
			if post.categories && post.categories.length
				| in 
				each cat, i in post.categories
					a(href='/blog/' + cat.key)= cat.name 
					if i < post.categories.length - 1
						| , 
					else
						|  
			if post.author
				| von #{post.author.name.first} 
		if post.image.exists
			img(src=post._.image.fit(160,160)).img.pull-right
		p!= post.content.brief
		if post.content.extended
			p.read-more: a(href='/blog/post/' + post.slug) Mehr...

block intro
	.container
		h1= data.category ? data.category.name : 'MTG Baselland'

block content
	.container: .row
		.col-sm-8.col-md-9
			if filters.category && !data.category
				h3.text-muted Ung&uuml;ltige Kategorie
			else
				if data.posts.results.length<commit_msg>made it clear, when filtered by category<commit_after>extends ../layouts/default

mixin post(post)
	.post(data-ks-editable=editable(user, { list: 'Post', id: post.id }))
		h2: a(href='/blog/post/' + post.slug)= post.title
		p.italic Ver&ouml;ffentlicht 
			if post.publishedDate
				| am #{post._.publishedDate.format('MMMM Do, YYYY')} 
			if post.categories && post.categories.length
				| in 
				each cat, i in post.categories
					a(href='/blog/' + cat.key)= cat.name 
					if i < post.categories.length - 1
						| , 
					else
						|  
			if post.author
				| von #{post.author.name.first} 
		if post.image.exists
			img(src=post._.image.fit(160,160)).img.pull-right
		p!= post.content.brief
		if post.content.extended
			p.read-more: a(href='/blog/post/' + post.slug) Mehr...

block intro
	.container
		h1= data.category ? 'Kategorie: ' + data.category.name : 'MTG Baselland'

block content
	.container: .row
		.col-sm-8.col-md-9
			if filters.category && !data.category
				h3.text-muted Ung&uuml;ltige Kategorie
			else
				if data.posts.results.length
{'fraction_non_alphanumeric': 0.15139826422372227, 'fraction_numerical': 0.011571841851494697, 'mean_word_length': 2.8640595903165735, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6687193', 'n_tokens_mistral': 906, 'n_tokens_neox': 775, 'n_words': 156}