iframeable display of all posts by a matodon @user@instance account that contain a #hashtag
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!DOCTYPE html>
  2. <html lang="{{lang}}"{% if is_rtl %} dir="rtl"{% endif %}>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>{{title|safe}}</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
  8. <link rel="stylesheet" href="{{ url_for('static', filename='css') }}/bootstrap{% if is_rtl %}-rtl{% endif %}.min.css">
  9. <meta property="og:image" content="{{og_image|default(url_for('static', filename='hashtag.png', _external=True))}}">
  10. </head>
  11. <body>
  12. <div class="container">
  13. <div class="row" id="entries">
  14. {% for entry in feed.entries %}
  15. <div class="col-12 col-sm-6 col-md-4 g-1">
  16. <div class="card h-100">
  17. <div class="card-body">
  18. <div class="float-end ms-1"><span class="badge bg-info"><a target="_blank" class="link-light text-decoration-underline" href="{{entry.link}}">{{ entry.date }}</a></span></div>
  19. {{ entry.description|safe }}
  20. </div>
  21. {% if entry.images %}
  22. <ul class="list-group h-100">
  23. {% for image in entry.images %}
  24. <li class="list-group-item"><a target="_blank" href="{{image.url}}"><img class="w-100" src="{{image.url}}" alt="{{image.media_description}}" /></a></li>
  25. {% endfor %}
  26. </ul>
  27. {% endif %}
  28. {% if entry.videos %}
  29. <ul class="list-group h-100">
  30. {% for video in entry.videos %}
  31. <li class="list-group-item"><video controls loop class="w-100" src="{{video.url}}" /></li>
  32. {% endfor %}
  33. </ul>
  34. {% endif %}
  35. </div>
  36. </div>
  37. {% endfor %}
  38. </div>
  39. </div>
  40. </body>
  41. </html>