progress on styling news/blog listing & content

This commit is contained in:
Adam Piontek 2021-07-27 19:12:18 -04:00
parent ae29e9d98d
commit 64598f4aad
15 changed files with 282 additions and 135 deletions
content-templates

View file

@ -9,8 +9,8 @@
namespace WP_RDNYC;
?>
<article class="post border-bottom border-gray pb-4 mb-3" itemscope itemtype="https://schema.org/CreativeWork">
<header>
<article <?php echo post_class( 'post border-bottom border-gray-750 pb-4 mb-two-rem' ); ?> itemscope itemtype="https://schema.org/CreativeWork">
<header class="post-header">
<h2 class="post-title fs-2 fw-600 mb-2">
<?php
if ( is_archive() || is_search() || is_home() ) {
@ -23,17 +23,15 @@ namespace WP_RDNYC;
} ?>
</h2>
<div class="post-date font-monospace text-gray-300 <?php echo (has_tag() ? '' : 'mb-3'); ?>">
<?php
// echo svg_icon_use("mdi-calendar-clock", "baseline me-2") . get_the_date('F j, Y');
// echo ' by ' . svg_icon_use("mdi-account", "baseline me-1") . get_the_author();
?>
<div class="post-date text-gray-400 mb-3" style="margin-top: -.33rem;">
<!-- inline_svg( 'bsi-clock', array( 'div_class' => 'icon baseline me-2' ) ) . -->
<?php echo get_the_date('F j, Y'); ?>
</div>
<?php
<!-- < ?php
if (has_tag()) {
echo '<div class="post-tags fs-smaller mb-4">';
// echo svg_icon_use("mdi-tag-multiple", "baseline text-gray-300 me-1");
// echo inline_svg( 'bsi-tags', array( 'div_class' => 'icon baseline text-gray-300 me-1' ) );
$tag_strings = array_map(function ($tag) {
return '<span class="text-gray-300">#</span><a href="' . get_tag_link($tag) . '">' . $tag->name . '</a>';
@ -41,7 +39,7 @@ namespace WP_RDNYC;
echo implode(", ", $tag_strings) . '</div>';
}
?>
?> -->
</header>