Skip to content

Commit

Permalink
Speculative tag template
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-bernhardt committed Aug 31, 2023
1 parent 2d9fad2 commit 834627f
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
2 changes: 1 addition & 1 deletion web/app/themes/mitlib-news/style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Theme Name: MITlib News
Author: MIT Libraries
Version: 0.2.0
Version: 0.3.0
Description: A child theme of the MIT Libraries' parent, focused on News features and content.
Template: mitlib-parent
Expand Down
34 changes: 34 additions & 0 deletions web/app/themes/mitlib-news/tag.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php
/**
* The template for displaying all content with a single tag.
*
* @package MITlib_News
* @since 0.3.0
*/

namespace Mitlib\News;

get_header();
?>

<?php get_template_part( 'inc/sub-header' ); ?>

<div id="content" role="main">
<?php if ( have_posts() ) : ?>
<div class="container container-fluid">
<div class="row">
<h1 class="lib-header">Tag: <strong><?php echo esc_html( single_tag_title( '', false ) ); ?></strong></h1>
<?php
while ( have_posts() ) :
the_post();
get_template_part( 'content', 'single' );
endwhile;
?>
<p>This would be the pagination.</p>
</div>
</div>
<?php endif; ?>
</div><!-- #content -->

<div class="container">
<?php get_footer(); ?>

0 comments on commit 834627f

Please sign in to comment.