switched to using webpack & svgo to optimize SVG files, and inline them via PHP
This commit is contained in:
parent
65810de967
commit
028efdcc67
13 changed files with 174 additions and 3693 deletions
content-templates
|
@ -25,15 +25,15 @@ namespace WP_73k;
|
|||
|
||||
<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();
|
||||
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();
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?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( 'mdi-tag-multiple', 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>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue