<commit_before>{#
 # Channel index template
 # -------------------
 # A default template for channel sections to extend
 #}

{% extends "_layout" %}

{% set title = section %}
{% set body_class = section.handle|lower~" channel" %}
{% set per_page = 1 %}
{% set defaultParams = { 'section': section.handle, 'limit': per_page } %}
{#
 # Override params in sub-templates to change criteria for selecting entries
 # to appear. Otherwise the defaults are used (ie. 10 items from the section in question):
 #}
{% set params = params is defined ? params : defaultParams %}

{% block content %}
	<h2>{{ section }}</h2>

	{% block sidebar %}{% endblock %}

	{% paginate craft.entries(params) as entries %}
	{% if entries is empty %}
	<p>Nothing posted here yet...</p>
	{% else %}
	{% for entry in entries %}

	{# Individual entry: #}
	{% block entry %}
	<article>
		<h3><a href="{{ entry.url }}">{{ entry.title }}</a></h3>
		<p>Posted on {{ entry.postDate.format('F d, Y') }}</p>
		{{ entry.body.getPage(1) }}
		<p><a href="{{ entry.url }}">Continue reading</a></p>
	</article>

	{% endblock %}
	{% endfor %}
	
	{# Pagination: #}
	{% include '_partials/pagination' %}

	{% endif %}
	{% endpaginate %}
{% endblock %}
<commit_msg>Channel: oops, default number of items per page should be 10<commit_after>{#
 # Channel index template
 # -------------------
 # A default template for channel sections to extend
 #}

{% extends "_layout" %}

{% set title = section %}
{% set body_class = section.handle|lower~" channel" %}
{% set per_page = 10 %}
{% set defaultParams = { 'section': section.handle, 'limit': per_page } %}
{#
 # Override params in sub-templates to change criteria for selecting entries
 # to appear. Otherwise the defaults are used (ie. 10 items from the section in question):
 #}
{% set params = params is defined ? params : defaultParams %}

{% block content %}
	<h2>{{ section }}</h2>

	{% block sidebar %}{% endblock %}

	{% paginate craft.entries(params) as entries %}
	{% if entries is empty %}
	<p>Nothing posted here yet...</p>
	{% else %}
	{% for entry in entries %}

	{# Individual entry: #}
	{% block entry %}
	<article>
		<h3><a href="{{ entry.url }}">{{ entry.title }}</a></h3>
		<p>Posted on {{ entry.postDate.format('F d, Y') }}</p>
		{{ entry.body.getPage(1) }}
		<p><a href="{{ entry.url }}">Continue reading</a></p>
	</article>

	{% endblock %}
	{% endfor %}
	
	{# Pagination: #}
	{% include '_partials/pagination' %}

	{% endif %}
	{% endpaginate %}
{% endblock %}

{'fraction_non_alphanumeric': 0.2003218020917136, 'fraction_numerical': 0.007642799678197908, 'mean_word_length': 3.530054644808743, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '4881418', 'n_tokens_mistral': 901, 'n_tokens_neox': 783, 'n_words': 246}