rearranged social icon handling, implemented shortcodes, front-page now uses page content

This commit is contained in:
Adam Piontek 2021-07-09 12:20:38 -04:00
parent 573dcbf799
commit d29641d700
12 changed files with 250 additions and 147 deletions

View file

@ -10,29 +10,26 @@ namespace WP_73k;
get_header('', array('fixednav'=>true)); ?>
<main class="container-fluid h-100 d-flex justify-content-center align-items-center">
<div class="d-flex flex-column-reverse flex-lg-row align-items-lg-end mt-5">
<div class="d-flex flex-column-reverse flex-lg-row align-items-lg-end mt-5" id="front-page">
<?php
if ( have_posts() ) {
while ( have_posts() ) {
the_post(); ?>
<div class="col-auto mt-3 mt-lg-0">
<img src="<?php echo get_stylesheet_directory_uri() . '/dist/images/cat-roof_portrait.webp'; ?>"
class="img-fluid border border-20 border-gray-900 rounded-2"
alt="My cat Babka, stuck on a roof when she was still just a stray."
title="My cat Babka, stuck on a roof when she was still just a stray."
/>
<?php echo get_the_post_thumbnail( get_the_ID(), 'large' ); ?>
</div>
<!-- the_content(); -->
<div class="col-auto justify-content-start ms-lg-3">
<h2 class="fs-2 fw-600 mb-0">
<?php echo svg_icon_use("mdi-account", "icon baseline") . ' <span>Adam Piontek</span>'; ?>
</h2>
<div class="font-monospace text-gray-300 fs-5">Desktop Systems Engineer. Human.</div>
<?php echo socials_str(socials()); ?>
<?php the_content(); ?>
</div>
<?php }
}
?>
</div>
</main>
<?php