<?php
  $categories = get_the_category();
  foreach( $categories as $category ) {
    echo "<a href= '" . esc_url( get_category_link( $category->term_id ) ) . "' class='btn-small btn-info'><i class='fa fa-folder'></i> " . $category->cat_name . "</a>";
  }
  
  $tags = get_the_tags();
  if ($tags) {
    foreach( $tags as $tag ) {
      echo "<a href= '" . esc_url( get_tag_link( $tag->term_id ) ) . "' class='btn-small btn-primary'><i class='fa fa-tag'></i> " . $tag->name . "</a> ";
    }
  }
?>