<div class="col-md-4 p-4 border-start">
    <div class="border-bottom pb-5 text-center pt-5">
        <p class="text-dark fw-light pb-2"><?php echo $site->description(); ?></p>
        <p><a class="btn btn-outline-light text-secondary fw-light rounded-pill" href="#" role="button" target="_blank"><i class="fab fa-twitter text-info"></i>&nbsp;Don’t miss what’s happening</a></p>
    </div>
    <div class="pt-5">
        <p class="fw-bold pb-1">Recommended topics</p>
            <?php
                $items = getTags();
                foreach ($items as $tag) {
                echo '<a class="btn btn-sm rounded-pill btn-info text-white mt-2 me-2 fw-light" href="'.$tag->permalink().'" role="button"> '.$tag->name().'</a>';
                }
            ?>
      </div>
      <div class="pt-5">
        <p class="fw-bold pb-1">Search by categories</p>
        <ul class="list-group list-group-flush">
          <?php foreach ($categories->db as $key=>$fields):
            if($fields['list']):  ?>
            <li class="list-group-item border-0 ps-0"><a class="text-decoration-none text-dark fw-light" href="<?php echo DOMAIN_CATEGORIES.$key; ?>"><?php echo $fields['name']; ?></a></li>
            <?php
            endif;
            endforeach; ?>
        </ul>
      </div>
    </div>
  </div>
</div>