<commit_before><?php ///////////////////////////////////////////////////////
// ----------------------------------------------------------
// SNIPPET
// ----------------------------------------------------------
/////////////////////////////////////////////////////////////

// Find the open/active page on the first level
$open  = $pages->findOpen();
$pages = ($open) ? $open->children()->visible() : false;

////////////////////////////////////////////////////////// ?>

<?php if($pages && $pages->count()): ?>
	<nav role="navigation" class="copy copy--contain">
		<h2>Sub navigation</h2>
		<ul class="list list--links">
			<?php foreach($pages as $page): ?>
				<li class="list__item"<?php echo ($page->isOpen()) ? ' aria-current="page"' : ''; ?>><a href="<?php echo $page->url(); ?>"><?php echo $page->title()->smartypants(); ?></a></li>
			<?php endforeach; ?>
		</ul>
	</nav>
<?php endif; ?><commit_msg>Move `aria-current="page"` to anchor instead of list item.<commit_after><?php ///////////////////////////////////////////////////////
// ----------------------------------------------------------
// SNIPPET
// ----------------------------------------------------------
/////////////////////////////////////////////////////////////

// Find the open/active page on the first level
$open  = $pages->findOpen();
$pages = ($open) ? $open->children()->visible() : false;

////////////////////////////////////////////////////////// ?>

<?php if($pages && $pages->count()): ?>
	<nav role="navigation" class="copy copy--contain">
		<h2>Sub navigation</h2>
		<ul class="list list--links">
			<?php foreach($pages as $page): ?>
				<li class="list__item"><a href="<?php echo $page->url(); ?>"<?php echo ($page->isOpen()) ? ' aria-current="page"' : ''; ?>><?php echo $page->title()->smartypants(); ?></a></li>
			<?php endforeach; ?>
		</ul>
	</nav>
<?php endif; ?>
{'fraction_non_alphanumeric': 0.49221685453569514, 'fraction_numerical': 0.0021470746108427268, 'mean_word_length': 1.235011990407674, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 55, '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': '1043072', 'n_tokens_mistral': 476, 'n_tokens_neox': 457, 'n_words': 109}