<commit_before><?php
$pageTitle = __('Items');
echo head(array('title'=>$pageTitle,'bodyclass' => 'items browse'));
?>

<h1><?php echo $pageTitle;?></h1>

<?php if ($total_results > 0): ?>
<?php echo item_search_filters(); ?>

<div class="browse-list-links">
<div class="pagination-links-container"><?php echo pagination_links(); ?></div>
<?php
$sortLinks[__('Title')] = 'Dublin Core,Title';
$sortLinks[__('Creator')] = 'Dublin Core,Creator';
$sortLinks[__('Date Added')] = 'added';
?>
<div class="sort-links">
    <span class="sort-label"><?php echo __('Sort by: '); ?></span><?php echo browse_sort_links($sortLinks); ?>
</div>

</div>


<?php endif; ?>

<?php foreach (loop('items') as $item): ?>
<div class="item hentry">
    <?php if($date = metadata('item', array('Dublin Core', 'Date'))): ?>
    <em class="eyebrow dc-date"><?php echo $date; ?></em>
    <?php endif; ?>
    <h2><?php echo link_to_item(metadata('item', array('Dublin Core', 'Title')), array('class'=>'permalink')); ?></h2>
    <div class="item-meta">
    <?php if (metadata('item', 'has files')): ?>
    <div class="item-img">
        <?php echo link_to_item(item_image('square_thumbnail')); ?><commit_msg>Simpler display of item date above heading.<commit_after><?php
$pageTitle = __('Items');
echo head(array('title'=>$pageTitle,'bodyclass' => 'items browse'));
?>

<h1><?php echo $pageTitle;?></h1>

<?php if ($total_results > 0): ?>
<?php echo item_search_filters(); ?>

<div class="browse-list-links">
<div class="pagination-links-container"><?php echo pagination_links(); ?></div>
<?php
$sortLinks[__('Title')] = 'Dublin Core,Title';
$sortLinks[__('Creator')] = 'Dublin Core,Creator';
$sortLinks[__('Date Added')] = 'added';
?>
<div class="sort-links">
    <span class="sort-label"><?php echo __('Sort by: '); ?></span><?php echo browse_sort_links($sortLinks); ?>
</div>

</div>


<?php endif; ?>

<?php foreach (loop('items') as $item): ?>
<div class="item hentry">
    <?php if($date = metadata('item', array('Dublin Core', 'Date'))): ?>
    <em class="eyebrow dc-date"><?php echo date('Y', strtotime($date)); ?></em>
    <?php endif; ?>
    <h2><?php echo link_to_item(metadata('item', array('Dublin Core', 'Title')), array('class'=>'permalink')); ?></h2>
    <div class="item-meta">
    <?php if (metadata('item', 'has files')): ?>
    <div class="item-img">
        <?php echo link_to_item(item_image('square_thumbnail')); ?>
{'fraction_non_alphanumeric': 0.24667774086378738, 'fraction_numerical': 0.004152823920265781, 'mean_word_length': 5.863247863247863, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 77, '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': '1497723', 'n_tokens_mistral': 849, 'n_tokens_neox': 850, 'n_words': 187}