<!-- Content -->
  <div class="container pt-4 pb-4">
    <div class="row">
      <div class="col-md-9">
        <!-- Card -->
        <?php Theme::plugins('pageBegin'); ?>
        <div class="col-md-12 pb-4">
        <div class="card border-0">
          <?php if ($page->coverImage()): ?>
          <img src="<?php echo $page->coverImage(); ?>" class="card-img-top" alt="<?php echo $page->title(); ?>">
          <?php endif ?>
          <div style="position:absolute;left:12;top:0;">
            <span class="badge bg-danger text-light ms-2 mt-2 fs-6 text"><?php echo $page->category() ?></span>
          </div>
          <div class="card-body">
            <p class="text-muted"><small><?php echo $page->custom('figure'); ?></small></p>
            <h2 class="card-title fw-bold pb-2"><a class="text-dark text-decoration-none" href="#"> <?php echo $page->title(); ?></a></h2>
            <small><img src="<?php echo ($page->user('profilePicture')?$page->user('profilePicture'):Theme::src('img/noimage.png')) ?>" alt="mdo" width="40" height="40" class="rounded-circle">&nbsp; <?php echo $page->user('nickname'); ?> | <?php echo $page->date(); ?></small>
            <hr class="bg-secondary">
            <p class="card-text"><?php echo $page->content(); ?></p>
          </div>
        </div>
        </div>
        <!--/ Card -->
        <div class="col-md-12">
         <?php if (!empty($page->tags(true))): ?>
          <?php foreach ($page->tags(true) as $tagKey=>$tagName): ?>
          <a class="btn btn-light btn-sm mb-2" href="<?php echo DOMAIN_TAGS.$tagKey ?>" role="button"><?php echo $tagName; ?></a> &nbsp;
          <?php endforeach ?>
          <?php endif; ?>
        </div>
        <div class="col-md-12 pt-3">
          <?php Theme::plugins('pageEnd'); ?>
        </div>
      </div>
      <div class="col-md-3">
        <?php include('sidebar.php'); ?>
      </div>
    </div>
  </div>
<!--/ Content -->