{#
/**
 * @file post.html.twig
 * Default theme implementation to present Post data.
 *
 * This template is used when viewing Post pages.
 *
 *
 * Available variables:
 * - content: A list of content items. Use 'content' to print all content, or
 * - attributes: HTML attributes for the container element.
 *
 * @see template_preprocess_post()
 *
 * @ingroup themeable
 */
#}
<div{{ attributes.addClass('card', 'post') }}>

  {% if content.user_id %}
    {{- content.user_id -}}
  {% endif %}

  {{ date }}

  {% if visibility_icon and visibility_label %}
    <svg class="margin-left-s icon-visibility">
      <use xlink:href="#icon-{{ visibility_icon }}"></use>
    </svg>
    <strong>{{ visibility_label }}</strong>
  {% endif %}

  {% if content.field_post_image %}
    {{- content.field_post_image -}}
  {% endif %}

  {% if content.field_post %}
    {{- content.field_post -}}
  {% endif %}

  {% if content.like_and_dislike %}
    {{- content.like_and_dislike -}}
  {% endif %}

  {% if content.field_post_comments %}
    {{- content.field_post_comments -}}
  {% endif %}

</div>
