Inital layout of home page

This commit is contained in:
2019-01-06 13:29:25 +00:00
parent 7769bf9f16
commit e8f563b196
12 changed files with 167 additions and 88 deletions

View File

@@ -0,0 +1,42 @@
<?php
global $excerpt;
?>
<div class="excerpt">
<div class="excerpt__head">
<div class="excerpt__title">
<a class="link" href="<?php echo $excerpt['url'] ?>">
<?php echo $excerpt['title'] ?>
</a>
</div>
</div>
<div class="excerpt__body">
<?php echo $excerpt['content'] ?>
</div>
<div class="excerpt__foot">
<p class="excerpt__metadata">
<span class="excerpt__icon">
<svg class="icon icon--extra-small" aria-hidden="true">
<use xlink:href="#icon-profile"></use>
</svg>
</span>
<span class="excerpt__text"><?php echo $excerpt['author'] ?></span>
<span class="excerpt__icon">
<svg class="icon icon--extra-small" aria-hidden="true">
<use xlink:href="#icon-calendar"></use>
</svg>
</span>
<span class="excerpt__text"><?php echo $excerpt['date'] ?></span>
<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>
</p>
</div>
</div>

View File

@@ -40,6 +40,7 @@ function format_link($link) {
return $link;
}
if (count($links) > 1) :
?>
<div class="pagination">
<?php if ($current > 1) : ?>
@@ -71,3 +72,4 @@ function format_link($link) {
</div>
<?php endif; ?>
</div>
<?php endif; ?>