home.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {% extends 'themes/wayback/base.html' %}
  2. {% block head %}
  3. <title>搜索 - MikuInvidious</title>
  4. <meta name="referrer" content="never">
  5. <link rel="stylesheet" href="/static/themes/wayback/css/search.css">
  6. {% endblock %}
  7. {% block content %}
  8. <div style="margin-bottom: 2em;">
  9. <h1>嘿,这里是 MikuInvidious!<small>MikuInvidious 是自由的哔哩哔哩前端。</small></h1>
  10. <p>要把哔哩哔哩链接转换成 MikuInvidious,你需要把 <code>www.bilibili.com</code> 和 <code>b23.tv</code> 替换成 MikuInvidious 实例的域名。</p>
  11. <p>个人空间需要把 <code>space.bilibili.com</code> 后的数字粘贴到实例域名 + <code>/space/</code> 后面。</p>
  12. </div>
  13. <hr>
  14. <div class="pure-g">
  15. {% for v in i['item'] %}
  16. <div class="pure-u-1 pure-u-md-1-4">
  17. <div class="h-box">
  18. <a style="width:100%" href="/video/{{ v['bvid'] }}">
  19. <div class="thumbnail">
  20. <img width="320" height="180" loading="lazy" tabindex="-1" class="thumbnail" src="{{ "{}@320w".format(v['pic'])|pic }}" alt="">
  21. <p class="length">{{ v['duration'] }}</p>
  22. </div>
  23. <p dir="auto">
  24. {{ v['title']|safe }}
  25. </p>
  26. </a>
  27. <div class="video-card-row flexible">
  28. <div class="flex-left"><a href="/space/{{ v['owner']['mid'] }}">
  29. <p class="channel-name" dir="auto">{{ v['owner']['name'] }}</p>
  30. </a></div>
  31. <div class="flex-right">
  32. <div class="icon-buttons">
  33. <a title="在哔哩哔哩上观看" href="https://www.bilibili.com/video/{{ v['bvid'] }}">
  34. <i class="icon ion-logo-youtube"></i>
  35. </a>
  36. <a title="音频模式" href="/video/{{ v['bvid'] }}?listen=1">
  37. <i class="icon ion-md-headset"></i>
  38. </a>
  39. </div>
  40. </div>
  41. </div>
  42. <div class="video-card-row flexible">
  43. <div class="flex-left">
  44. <p class="video-data" dir="auto">{{ v['pubdate']|date }}</p>
  45. </div>
  46. <div class="flex-right">
  47. <p class="video-data" dir="auto">{{ v['stat']['view']|intsep }} 次播放</p>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. {% endfor %}
  53. </div>
  54. {% endblock %}