<commit_before>include /src/includes/post.jade
include /src/includes/category-list.jade

mixin streamIndex(streamType, baseURL, featuredCategories)
	.h-feed
		//- Index title
		if indexType === 'main'
			h2.p-name= streamType
			p#postsFrom Show only posts from 
				each year in includedYears
					a(href=baseURL + year + '/')= year
					| 
				if featuredCategories
					| or categorized in 
					+categoryList(featuredCategories, baseURL, 'or')
		else if indexType === 'year'
			h2.p-name Posts from #{year}
			p#postsFrom Show only posts from 
				each month in includedMonths
					- var monthName = new Date(1970, month).toLocaleString('en-us', {month: 'long'});
					- var monthStr = month + 1;
					- monthStr = monthStr < 10 ? '0' + monthStr.toString() : monthStr.toString();
					a(href=baseURL + year + '/' + monthStr + '/')= monthName
					| 
		else if indexType === 'month'
			- var monthName = new Date(1970, month).toLocaleString('en-us', {month: 'long'});
			h2.p-name Posts from #{monthName + ' ' + year}
		else if indexType === 'category'
			h2.p-name Posts categorized as "#{category}"

		//- Posts
		each post, index in posts
			+renderPost(post, baseURL, true)

			if index < posts.length - 1
				hr

		hr

		//- Pages
		- function pageUrl(cur, next) {
		- 	if (cur === 2 && next === -1) return '../..';
		- 	return '../' + (cur + next);
		- 	}

		#pages-footer
			if pageCount !== 1
				if page === 1
					p
						span.disabled-arrow ←
						|  ⋅ Page #{page} out of #{pageCount} ⋅ 
						a(href='page/2/') →
				else if page === pageCount
					p
						a(href=pageUrl(page, -1)) ←
						|  ⋅ Page #{page} out of #{pageCount} ⋅ 
						span.disabled-arrow →
				else
					p
						a(href=pageUrl(page, -1)) ←
						|  ⋅ Page #{page} out of #{pageCount} ⋅ 
						a(href=pageUrl(page, 1)) →
			else
				p Page 1 of 1
<commit_msg>Fix broken blog page links (for real)<commit_after>include /src/includes/post.jade
include /src/includes/category-list.jade

mixin streamIndex(streamType, baseURL, featuredCategories)
	.h-feed
		//- Index title
		if indexType === 'main'
			h2.p-name= streamType
			p#postsFrom Show only posts from 
				each year in includedYears
					a(href=baseURL + year + '/')= year
					| 
				if featuredCategories
					| or categorized in 
					+categoryList(featuredCategories, baseURL, 'or')
		else if indexType === 'year'
			h2.p-name Posts from #{year}
			p#postsFrom Show only posts from 
				each month in includedMonths
					- var monthName = new Date(1970, month).toLocaleString('en-us', {month: 'long'});
					- var monthStr = month + 1;
					- monthStr = monthStr < 10 ? '0' + monthStr.toString() : monthStr.toString();
					a(href=baseURL + year + '/' + monthStr + '/')= monthName
					| 
		else if indexType === 'month'
			- var monthName = new Date(1970, month).toLocaleString('en-us', {month: 'long'});
			h2.p-name Posts from #{monthName + ' ' + year}
		else if indexType === 'category'
			h2.p-name Posts categorized as "#{category}"

		//- Posts
		each post, index in posts
			+renderPost(post, baseURL, true)

			if index < posts.length - 1
				hr

		hr

		//- Pages
		- function pageUrl(cur, next) {
		- 	if (cur === 2 && next === -1) return '../..';
		- 	return '../' + (cur + next) + '/';
		- 	}

		#pages-footer
			if pageCount !== 1
				if page === 1
					p
						span.disabled-arrow ←
						|  ⋅ Page #{page} out of #{pageCount} ⋅ 
						a(href='page/2/') →
				else if page === pageCount
					p
						a(href=pageUrl(page, -1)) ←
						|  ⋅ Page #{page} out of #{pageCount} ⋅ 
						span.disabled-arrow →
				else
					p
						a(href=pageUrl(page, -1)) ←
						|  ⋅ Page #{page} out of #{pageCount} ⋅ 
						a(href=pageUrl(page, 1)) →
			else
				p Page 1 of 1

{'fraction_non_alphanumeric': 0.15376344086021507, 'fraction_numerical': 0.014516129032258065, 'mean_word_length': 2.4517625231910944, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4796295', 'n_tokens_mistral': 1660, 'n_tokens_neox': 1300, 'n_words': 374}