-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
56 lines (44 loc) · 1.58 KB
/
single.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
* The template for displaying all single posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package WordPress
* @subpackage Twenty_Twenty_One
* @since Twenty Twenty-One 1.0
*/
get_header();
/* Start the Loop */
while (have_posts()) :
the_post();
?>
<div id="content">
<div class="d-flex p-4 p-md-5 align-items-center bg-gov-green bg-gradient" style="height: 12vh; min-height: 100px;">
<div class="container-lg py-4 py-md-5">
<div class="gov-yellow h4 mb-1">Recent News</div>
<h1 class="text-white h2"><?php the_title() ?></h1>
</div>
</div>
<div class="bg-secondary-subtle">
<div class="container-lg p-lg-5 p-4 bg-light-subtle">
<div class="row mx-0">
<div class="col-lg-8">
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-content">
<?php //the_post_thumbnail('large')
?>
<?php the_content() ?>
</div><!-- .entry-content -->
</article><!-- #post-<?php the_ID(); ?> -->
</div>
<div class="col-lg-4">
<?php get_template_part('template-parts/sidebar/taxonomies') ?>
</div>
</div>
</div>
</div>
</div>
<?php
endwhile; // End of the loop.
get_footer();