Oblique metadata text

Make excerpt comments a link
This commit is contained in:
2019-01-19 15:03:39 +00:00
parent e83f7c4eb8
commit 84882ce8c0
7 changed files with 68 additions and 58 deletions

View File

@@ -31,17 +31,19 @@ global $excerpt;
<span class="excerpt__text"><?php echo $excerpt['date'] ?></span>
</li>
<li class="excerpt__list-item">
<span class="excerpt__icon">
<svg class="icon icon--extra-small" aria-hidden="true">
<use xlink:href="#icon-comments"></use>
</svg>
</span>
<span class="excerpt__text">
<?php
$number = $excerpt['comments'];
echo $number === '1' ? '1 comment' : $number . ' comments';
?>
</span>
<a class="excerpt__list-link" href="<?php the_permalink() ?>#comments">
<span class="excerpt__icon">
<svg class="icon icon--extra-small" aria-hidden="true">
<use xlink:href="#icon-comments"></use>
</svg>
</span>
<span class="excerpt__text">
<?php
$number = $excerpt['comments'];
echo $number === '1' ? '1 comment' : $number . ' comments';
?>
</span>
</a>
</li>
</ul>
</div>