streamline and improve styling and layout. increment version.
This commit is contained in:
parent
abbd6bb5ee
commit
c370d9c23c
193 changed files with 900 additions and 600 deletions
content-templates
|
@ -9,7 +9,14 @@
|
|||
namespace WP_73k;
|
||||
|
||||
?>
|
||||
<article class="post border-bottom border-gray pb-4 mb-3" itemscope itemtype="https://schema.org/CreativeWork">
|
||||
<article
|
||||
id="post-<?php the_ID(); ?>"
|
||||
class="<?php
|
||||
$post_class = 'post border-bottom border-gray pb-4 mb-3';
|
||||
echo esc_attr( implode( ' ', get_post_class( $post_class ) ) );
|
||||
?>"
|
||||
itemscope itemtype="https://schema.org/CreativeWork"
|
||||
>
|
||||
<header>
|
||||
<h2 class="post-title fs-2 fw-600 mb-2">
|
||||
<?php
|
||||
|
@ -23,7 +30,7 @@ namespace WP_73k;
|
|||
} ?>
|
||||
</h2>
|
||||
|
||||
<div class="post-date font-monospace text-gray-300 <?php echo (has_tag() ? '' : 'mb-3'); ?>">
|
||||
<div class="post-date font-monospace text-muted <?php echo (has_tag() ? '' : 'mb-3'); ?>">
|
||||
<?php
|
||||
echo inline_svg( 'mdi-calendar-clock', array( 'div_class' => 'icon baseline me-2' ) ) . get_the_date('F j, Y');
|
||||
echo ' by ' . inline_svg( 'mdi-account', array( 'div_class' => 'icon baseline me-1' ) ) . get_the_author();
|
||||
|
@ -33,10 +40,10 @@ namespace WP_73k;
|
|||
<?php
|
||||
if (has_tag()) {
|
||||
echo '<div class="post-tags fs-smaller mb-4">';
|
||||
echo inline_svg( 'mdi-tag-multiple', array( 'div_class' => 'icon baseline text-gray-300 me-1' ) );
|
||||
echo inline_svg( 'mdi-tag-multiple', array( 'div_class' => 'icon baseline text-muted me-1' ) );
|
||||
|
||||
$tag_strings = array_map(function ($tag) {
|
||||
return '<span class="text-gray-300">#</span><a href="' . get_tag_link($tag) . '">' . $tag->name . '</a>';
|
||||
return '<span class="text-muted">#</span><a href="' . get_tag_link($tag) . '">' . $tag->name . '</a>';
|
||||
}, get_the_tags());
|
||||
|
||||
echo implode(", ", $tag_strings) . '</div>';
|
||||
|
@ -51,6 +58,16 @@ namespace WP_73k;
|
|||
echo get_the_post_thumbnail( get_the_ID(), 'large', ['class' => 'rounded shadow-lg'] );
|
||||
}
|
||||
|
||||
the_content(); ?>
|
||||
the_content();
|
||||
|
||||
wp_link_pages(
|
||||
array(
|
||||
'before' => '<nav class="d-flex justify-content-center" aria-label="Page navigation for post ' . get_the_title() . '"><div class="d-flex align-items-center pe-2">Post pages:</div><div class="pagination">',
|
||||
'after' => '</div></nav>',
|
||||
'link_before' => '<span class="page-link">',
|
||||
'link_after' => '</span>'
|
||||
)
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
</article>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue