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.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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" itemprop="image" content="{{og_image|default(url_for('static', filename='hashtag.png', _external=True))}}">
  10. <meta property="og:type" content="website" />
  11. </head>
  12. <body>
  13. <div class="container">
  14. <div class="row" id="entries">
  15. {% for entry in feed.entries %}
  16. <div class="col-12 col-sm-6 col-md-4 g-1">
  17. <div class="card h-100">
  18. <div class="card-body">
  19. <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>
  20. {{ entry.description|safe }}
  21. </div>
  22. {% if entry.images %}
  23. <ul class="list-group h-100">
  24. {% for image in entry.images %}
  25. <li class="list-group-item"><a target="_blank" href="{{image.url}}"><img class="w-100" src="{{image.url}}" alt="{{image.media_description}}" /></a></li>
  26. {% endfor %}
  27. </ul>
  28. {% endif %}
  29. {% if entry.videos %}
  30. <ul class="list-group h-100">
  31. {% for video in entry.videos %}
  32. <li class="list-group-item"><video controls loop class="w-100" src="{{video.url}}" /></li>
  33. {% endfor %}
  34. </ul>
  35. {% endif %}
  36. </div>
  37. </div>
  38. {% endfor %}
  39. </div>
  40. </div>
  41. </body>
  42. </html>