You are here

social-tagging-split.html.twig in Open Social 8.3

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.

File

modules/social_features/social_tagging/templates/social-tagging-split.html.twig
View source
  1. {#
  2. /**
  3. * @file post.html.twig
  4. * Default theme implementation to present Post data.
  5. *
  6. * This template is used when viewing Post pages.
  7. *
  8. *
  9. * Available variables:
  10. * - content: A list of content items. Use 'content' to print all content, or
  11. * - attributes: HTML attributes for the container element.
  12. *
  13. * @see template_preprocess_post()
  14. *
  15. * @ingroup themeable
  16. */
  17. #}
  18. <div class="card__block">
  19. {% for content in taghierarchy %}
  20. <p><strong>{{ content.title }}</strong></p>
  21. {% for tag in content.tags %}
  22. <a class="badge badge-default badge--large badge--pill" href="{{ tag.url }}">{{ tag.name }}</a>
  23. {% endfor %}
  24. {% endfor %}
  25. </div>