author.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. {% extends 'themes/wayback/base.html' %}
  2. {% block head %}
  3. <title>{{ uinfo['name'] }} - MikuInvidious</title>
  4. <meta name="referrer" content="never">
  5. <meta name="description" content="{{ uinfo['sign'] }}">
  6. <meta property="og:site_name" content="MikuInvidious">
  7. <meta property="og:url" content="{{ site_url }}/space/{{ uinfo['mid'] }}">
  8. <meta property="og:title" content="{{ uinfo['name'] }}">
  9. <meta property="og:image" content="{{ uinfo['face']|pic }}">
  10. <meta property="og:description" content="{{ uinfo['sign'] }}">
  11. <meta name="twitter:card" content="summary">
  12. <meta name="twitter:url" content="{{ site_url }}/space/{{ uinfo['mid'] }}">
  13. <meta name="twitter:title" content="{{ uinfo['name'] }}">
  14. <meta name="twitter:description" content="{{ uinfo['sign'] }}">
  15. <meta name="twitter:image" content="{{ uinfo['face']|pic }}">
  16. <link rel="alternate" href="https://space.bilibili.com/{{ uinfo['mid'] }}">
  17. {% endblock %}
  18. {% block content %}
  19. <div class="pure-g h-box">
  20. <div class="pure-u-2-3">
  21. <div class="channel-profile">
  22. <img src="{{ uinfo['face']|pic }}" alt="" />
  23. <span>{{ uinfo['name'] }}</span>
  24. </div>
  25. </div>
  26. </div>
  27. <div class="h-box">
  28. <div id="descriptionWrapper">
  29. <p><span style="white-space:pre-wrap">{{ uinfo['sign'] }}</span></p>
  30. </div>
  31. </div>
  32. <div class="pure-g h-box">
  33. <div class="pure-u-1-2">
  34. <div class="pure-u-1 pure-md-1-3">
  35. <a href="https://space.bilibili.com/{{ uinfo['mid'] }}">在哔哩哔哩上浏览</a>
  36. </div>
  37. <div class="pure-u-1 pure-md-1-3">
  38. <a href="/space/{{ uinfo['mid'] }}">浏览发布的视频</a>
  39. </div>
  40. </div>
  41. </div>
  42. <div class="h-box">
  43. <hr>
  44. </div>
  45. {% if uarts['articles'] %}
  46. <div class="pure-g h-box v-box">
  47. <div class="pure-u-1 pure-u-lg-1-5">
  48. {% if uarts['pn'] > 1 %}
  49. <a href="/author/{{ uinfo['mid'] }}?i={{ uarts['pn'] - 1 }}">上一页</a>
  50. {% endif %}
  51. </div>
  52. <div class="pure-u-1 pure-u-lg-3-5"></div>
  53. <div class="pure-u-1 pure-u-lg-1-5" style="text-align:right">
  54. {% if (uarts['pn']+1)*(uarts['ps']) < uarts['count'] %}
  55. <a href="/author/{{ uinfo['mid'] }}?i={{ uarts['pn'] + 1 }}">下一页</a>
  56. {% endif %}
  57. </div>
  58. </div>
  59. <div class="pure-g">
  60. {% for a in uarts['articles'] %}
  61. <div class="pure-u-1 pure-u-md-1-4">
  62. <div class="h-box">
  63. <a style="width:100%" href="/read/cv{{ a['id'] }}">
  64. <div class="thumbnail">
  65. <img width="320" height="180" loading="lazy" tabindex="-1" class="thumbnail" src="{{ "{}@320w".format(a['image_urls'][0])|pic }}" alt="">
  66. </div>
  67. <p dir="auto">
  68. {{ a['title']|safe }}
  69. </p>
  70. </a>
  71. <div class="video-card-row flexible">
  72. <div class="flex-left"><a href="/space/{{ a['author']['mid'] }}">
  73. <p class="channel-name" dir="auto">{{ a['author']['name'] }}</p>
  74. </a></div>
  75. <div class="flex-right">
  76. <div class="icon-buttons">
  77. <a title="在哔哩哔哩上阅读" href="https://www.bilibili.com/read/cv{{ a['id'] }}">
  78. <i class="icon ion-logo-youtube"></i>
  79. </a>
  80. </div>
  81. </div>
  82. </div>
  83. <div class="video-card-row flexible">
  84. <div class="flex-left">
  85. <p class="video-data" dir="auto">{{ a['publish_time']|date }}</p>
  86. </div>
  87. <div class="flex-right">
  88. <p class="video-data" dir="auto">{{ a['stats']['view']|intsep }} 次播放</p>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. {% endfor %}
  94. </div>
  95. {% endif %}
  96. {% endblock %}