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

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