-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
get_header(); ?> | ||
|
||
<div class="page-banner"> | ||
<div class="page-banner__bg-image" style="background-image: url(<?php echo get_theme_file_uri('/images/ocean.jpg') ?>);"></div> | ||
<div class="page-banner__content container container--narrow"> | ||
<h1 class="page-banner__title"><?php if (is_category()) { | ||
single_cat_title(); | ||
} | ||
if (is_author()) { | ||
echo 'Posts by '; the_author(); | ||
} ?></h1> | ||
<div class="page-banner__intro"> | ||
<p>Keep up with our latest news.</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="container container--narrow page-section"> | ||
<?php | ||
|
||
while (have_posts()) { | ||
the_post(); ?> | ||
<div class="post-item"> | ||
<h2 class="headline headline--medium headline--post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> | ||
<div class="metabox"> | ||
<p>Posted by <?php the_author_posts_link(); ?> on <?php the_time('n-j-y'); ?> in <?php echo get_the_category_list(', '); ?></p> | ||
</div> | ||
<div class="generic-content"> | ||
<?php the_excerpt(); ?> | ||
<p><a class="btn btn--blue" href="<?php the_permalink(); ?>">Continue reading »</a></p> | ||
</div> | ||
</div> | ||
<?php } | ||
echo paginate_links(); | ||
?> | ||
</div> | ||
|
||
<?php get_footer(); | ||
|
||
?> |