<commit_before><?php snippet_detect('html-head', array(
	// 'criticalcss' => 'other_than_default',
)); ?>

	<?php snippet('banner'); ?>
	<?php // snippet('breadcrumb'); ?>

	<?php $main_image = ($page->images()->filterBy('filename','*=','main')->first()) ? $page->images()->filterBy('filename','*=','main')->first() : $page->images()->sortBy('sort', 'asc')->first(); ?>

	<div class="hero bg-image bg-image--cover">
		<?php echo $main_image->imageset('hero', ['output' => 'bgimage']); ?>
		<span class="hero__title"><?php echo $page->title()->smartypants(); ?></span>
		<span class="hero__meta"><?php echo $page->images()->count(); ?> photos</span>
	</div>

	<main class="copy copy--contain">

		<h1 class="is-hidden-visually"><?php echo $page->title()->smartypants()->widont(); ?></h1>

		<?php if($page->date($format=true)): ?>
			<p><small>
				Published on <?php snippet('datetime', ['format' => 'j F Y']); ?>
			</small></p>
		<?php endif; ?>

		<?php echo $page->intro()->kirbytext(); ?>

		<?php if($page->photos()->isNotEmpty()): ?>

			<?php echo $page->photos()->kirbytext(); ?>

		<?php else: ?>

			<?php /* foreach ($page->images()->sortBy('sort', 'asc')->not($main_image) as $image): */ ?>
			<?php foreach ($page->images()->sortBy('sort', 'asc') as $image) : ?>
				<figure class="figure-image">
					<?php echo $image->imageset('default'); ?>
					<?php if($image->caption()->isNotEmpty()): ?>
						<figcaption><?php echo $image->caption()->smartypants(); ?></figcaption>
					<?php endif; ?>
				</figure>
			<?php endforeach; ?>

		<?php endif; ?>

	</main>

	<?php snippet('nav-prevnext'); ?>

<?php snippet_detect('footer'); ?>
<commit_msg>(Also) add widont to blog post titles on blog post page.<commit_after><?php snippet_detect('html-head', array(
	// 'criticalcss' => 'other_than_default',
)); ?>

	<?php snippet('banner'); ?>
	<?php // snippet('breadcrumb'); ?>

	<?php $main_image = ($page->images()->filterBy('filename','*=','main')->first()) ? $page->images()->filterBy('filename','*=','main')->first() : $page->images()->sortBy('sort', 'asc')->first(); ?>

	<div class="hero bg-image bg-image--cover">
		<?php echo $main_image->imageset('hero', ['output' => 'bgimage']); ?>
		<span class="hero__title"><?php echo $page->title()->smartypants()->widont(); ?></span>
		<span class="hero__meta"><?php echo $page->images()->count(); ?> photos</span>
	</div>

	<main class="copy copy--contain">

		<h1 class="is-hidden-visually"><?php echo $page->title()->smartypants()->widont(); ?></h1>

		<?php if($page->date($format=true)): ?>
			<p><small>
				Published on <?php snippet('datetime', ['format' => 'j F Y']); ?>
			</small></p>
		<?php endif; ?>

		<?php echo $page->intro()->kirbytext(); ?>

		<?php if($page->photos()->isNotEmpty()): ?>

			<?php echo $page->photos()->kirbytext(); ?>

		<?php else: ?>

			<?php /* foreach ($page->images()->sortBy('sort', 'asc')->not($main_image) as $image): */ ?>
			<?php foreach ($page->images()->sortBy('sort', 'asc') as $image) : ?>
				<figure class="figure-image">
					<?php echo $image->imageset('default'); ?>
					<?php if($image->caption()->isNotEmpty()): ?>
						<figcaption><?php echo $image->caption()->smartypants(); ?></figcaption>
					<?php endif; ?>
				</figure>
			<?php endforeach; ?>

		<?php endif; ?>

	</main>

	<?php snippet('nav-prevnext'); ?>

<?php snippet_detect('footer'); ?>

{'fraction_non_alphanumeric': 0.28296296296296297, 'fraction_numerical': 0.0011851851851851852, 'mean_word_length': 4.673949579831933, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 0, '>': 164, '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': '4412893', 'n_tokens_mistral': 1245, 'n_tokens_neox': 1107, 'n_words': 214}