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

1234567891011121314151617181920212223242526272829303132333435363738394041
  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="/static/css/bootstrap{% if is_rtl %}-rtl{% endif %}.min.css">
  9. </head>
  10. <body>
  11. <div class="container">
  12. <div class="row" id="entries">
  13. {% for entry in feed.entries %}
  14. <div class="col-12 col-sm-6 col-md-4 col-lg-3 g-1">
  15. <div class="card">
  16. <div class="card-body">
  17. <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>
  18. {{ entry.description|safe }}
  19. </div>
  20. {% if entry.images %}
  21. <ul class="list-group">
  22. {% for image in entry.images %}
  23. <li class="list-group-item"><a target="_blank" href="{{image.url}}"><img class="w-100" src="{{image.url}}" alt="{{image.media_description}}" /></a></li>
  24. {% endfor %}
  25. </ul>
  26. {% endif %}
  27. {% if entry.videos %}
  28. <ul class="list-group">
  29. {% for video in entry.videos %}
  30. <li class="list-group-item"><video controls loop class="w-100" src="{{video.url}}" /></li>
  31. {% endfor %}
  32. </ul>
  33. {% endif %}
  34. </div>
  35. </div>
  36. {% endfor %}
  37. </div>
  38. </div>
  39. </body>
  40. </html>