-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
42 lines (36 loc) · 1.18 KB
/
archive.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php get_header(); ?>
<div class="hero">
<div class="full-container">
<div class="relative py-12">
<div class="site-container mt-24">
<article class="lead">
<h1><?php the_archive_title(); ?></h1>
<?php $desc = the_archive_description();
if ($desc) : ?>
<p><?php the_archive_description(); ?></p>
<?php endif; ?>
</article>
</div>
</div>
<?php if ( have_posts() ) : ?>
<div class="site-container py-10 mb-12">
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-x-6">
<?php while ( have_posts() ) : the_post(); ?>
<div class="">
<?php get_template_part( 'loop' ); ?>
</div>
<?php endwhile; ?>
</div>
</div>
<?php endif; ?>
<?php
$prev_link = get_previous_posts_link(__('« Older'));
$next_link = get_next_posts_link(__('Newer »'));
if ($prev_link || $next_link) : ?>
<div class="pt-8 pb-4">
<?php client_pagination(); ?>
</div>
<?php endif; ?>
</div>
</div>
<?php get_footer();