<commit_before>{{#partial "block-main"}}
    <div class="page-intro">
		<div class="wrapper">
			<div class="col-wrap">
				<div class="col one">
					{{> list/partials/list-page-breadcrumb label=labels.previous}}
					<h1 class="page-intro__title">{{result.results.0.description.title}} {{> type-label type_code=result.results.0.type plural=true}}</h1>
                    <p class="page-intro__content col col--md-47 col--lg-48">
						{{result.results.0.description.summary}}
					</p>
				</div>
			</div>
		</div>
	</div>
    <div class="wrapper print-links">
        <div class="col-wrap">
            <div class="col col--md-two-thirds col--lg-two-thirds">
				{{#if result.results.0.description.frequency}}
					<p>
						<strong>Frequency: </strong>{{result.results.0.description.frequency}}
					</p>
				{{/if}}
                <ul class="list--neutral">
					{{#each result.results}}
					<li {{#if @first}}class="margin-bottom--double"{{/if}}>
					{{#if @first}}
						<h3 class="flush">{{labels.previous-latest}}</h3>
						<h3 class="flush stand-out-text">
					{{else}}
						<h3 class="flush">
					{{/if}}
						<a href="{{uri}}">{{description.title}}
							{{#if description.edition}}
							{{#if_ne description.edition 'yes'}}: {{description.edition}}{{/if_ne}}
							{{/if}}
						</a>
						</h3>
						<p class="flush {{#if @first}}stand-out-text{{/if}}">
							{{labels.released}}: {{df description.releaseDate}}
						</p>
					</li>
					{{/each}}
				</ul>
				{{> list/partials/paginator}}
            </div>
            <div class="col col--md-two-thirds col--lg-two-thirds margin-bottom">
                {{> partials/archives-box}}
            </div>
        </div>
    </div>
{{/partial}}
  
{{!-- Inheriting from base list template --}}
{{> base/base}}<commit_msg>Add pagination to page. Add check so that only the latest publication is highlighted only on the first page<commit_after>{{#partial "block-main"}}
    <div class="page-intro">
		<div class="wrapper">
			<div class="col-wrap">
				<div class="col one">
					{{> list/partials/list-page-breadcrumb label=labels.previous}}
					<h1 class="page-intro__title">{{result.results.0.description.title}} {{> type-label type_code=result.results.0.type plural=true}}</h1>
                    <p class="page-intro__content col col--md-47 col--lg-48">
						{{result.results.0.description.summary}}
					</p>
				</div>
			</div>
		</div>
	</div>
    <div class="wrapper print-links">
        <div class="col-wrap">
            <div class="col col--md-two-thirds col--lg-two-thirds">
				{{#if result.results.0.description.frequency}}
					<p>
						<strong>Frequency: </strong>{{result.results.0.description.frequency}}
					</p>
				{{/if}}
                <ul class="list--neutral">
					{{#each result.results}}
					<li {{#if_all @first (eq result.paginator.currentPage 1)}}class="margin-bottom--double"{{/if_all}}>
                    {{#if_all @first (eq result.paginator.currentPage 1)}}<h3 class="flush">{{labels.previous-latest}}</h3>
						<h3 class="flush stand-out-text">
					{{else}}
						<h3 class="flush">
					{{/if_all}}
						<a href="{{uri}}">{{description.title}}
							{{#if description.edition}}
							{{#if_ne description.edition 'yes'}}: {{description.edition}}{{/if_ne}}
							{{/if}}
						</a>
						</h3>
						<p class="flush {{#if @first}}stand-out-text{{/if}}">
							{{labels.released}}: {{df description.releaseDate}}
						</p>
					</li>
					{{/each}}
				</ul>
                {{> list/partials/paginator paginator=result.paginator }}
            </div>
            <div class="col col--md-two-thirds col--lg-two-thirds margin-bottom">
                {{> partials/archives-box}}
            </div>
        </div>
    </div>
{{/partial}}
  
{{!-- Inheriting from base list template --}}
{{> base/base}}
{'fraction_non_alphanumeric': 0.20683359415753783, 'fraction_numerical': 0.008868022952529996, 'mean_word_length': 2.4394618834080717, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 87, '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': '5896710', 'n_tokens_mistral': 1582, 'n_tokens_neox': 1259, 'n_words': 229}