layout.jet.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="description" content="View this page on PixivFE." />
  6. <meta name="viewport" content="width=device-width, initial-scale=1" />
  7. {{ title := "" }} {{ if isset(Title) }} {{ title = Title }} {{ else }} {{
  8. title = "PixivFE" }} {{ end }}
  9. <title>{{ title }} - PixivFE</title>
  10. <link href="/css/style.css" rel="stylesheet" />
  11. <meta name="htmx-config" content='{"includeIndicatorStyles":false}'>
  12. <script src="/js/htmx@1.9.10.min.js" integrity="sha384-D1Kt99CQMDuVetoL1lrYwg5t+9QdHe7NLX/SoJYkXDFfX37iInKRy5xLSi8nO7UC"></script>
  13. {{ if PageURL }}
  14. <meta property="og:title" content="{{ title }}" />
  15. <meta property="og:url" content="{{ PageURL }}" />
  16. <meta property="og:site_name" content="PixivFE" />
  17. <meta property="og:type" content="article" />
  18. <meta content="summary_large_image" name="twitter:card" />
  19. {{ if isset(MetaDescription) }}
  20. <meta
  21. property="og:description"
  22. content="{{MetaDescription}}"
  23. />
  24. {{end}}
  25. {{ if isset(MetaDescription) }}
  26. <meta property="og:image" content="{{ MetaImage }}" />
  27. {{ end }}
  28. {{ end }}
  29. </head>
  30. <body data-hx-boost="true" data-hx-swap="outerHTML" data-hx-target="main" data-hx-select="main" data-hx-indicator="#loading-indicator">
  31. <div id="loading-indicator"></div>
  32. <nav>
  33. <div class="navigation-wrapper">
  34. <span class="navbar-entry">
  35. <span class="sidebar-container">
  36. <input type="checkbox" class="sidebar-toggler" id="sidebar-toggler" />
  37. <label for="sidebar-toggler" class="sidebar-label">
  38. <img
  39. src="/assets/menu-thin.png"
  40. alt="Menu"
  41. width="30"
  42. height="30"
  43. />
  44. </label>
  45. <div class="sidebar">
  46. <ul class="sidebar-list">
  47. <a class="sidebar-item" href="/discovery">
  48. <img src="/assets/compass.png" alt="compass" />Discovery</a
  49. >
  50. <a class="sidebar-item" href="/ranking">
  51. <img src="/assets/crown.png" alt="crown" />Ranking</a
  52. >
  53. <a class="sidebar-item" href="/rankingCalendar">
  54. <img src="/assets/calendar.png" alt="calendar" />Ranking history</a
  55. >
  56. <a class="sidebar-item" href="/newest">
  57. <img src="/assets/sparkling.png" alt="sparkling" />Newest</a
  58. >
  59. <br />
  60. <a class="sidebar-item" href="/self/followingWorks">
  61. <img src="/assets/users.png" alt="users" />Latest by followed</a
  62. >
  63. <a class="sidebar-item" href="/self/bookmarks">
  64. <img src="/assets/heart.png" alt="heart" />Your bookmarks</a
  65. >
  66. <a class="sidebar-item" href="/self">
  67. <img src="/assets/user.png" alt="user" />Your profile</a
  68. >
  69. <br />
  70. <a class="sidebar-item" href="/settings">
  71. <img src="/assets/settings.png" alt="settings" />Settings</a
  72. >
  73. <a class="sidebar-item" href="/about">
  74. <img src="/assets/about.svg" alt="about" />About</a
  75. >
  76. <br />
  77. <a
  78. class="sidebar-item"
  79. href="https://codeberg.org/vnpower/pixivfe"
  80. >
  81. <img src="/assets/globe.png" alt="globe" />Source code</a
  82. >
  83. </ul>
  84. </div>
  85. </span>
  86. <a class="navbar-brand" href="/">
  87. <img src="/assets/favicon.ico" alt="PixivFE icon" />
  88. <span>PixivFE</span>
  89. </a>
  90. </span>
  91. <span class="navbar-entry">
  92. <form action="/tags" method="post"
  93. class="search-form"
  94. autocomplete="off"
  95. >
  96. <input
  97. type="text"
  98. name="name"
  99. required="true"
  100. class="search-form-text"
  101. placeholder="⌕ Search artworks..."
  102. />
  103. <label class="navbar-entry"
  104. ><img src="/assets/search.svg" alt="Search"
  105. /><input type="submit" hidden
  106. /></label>
  107. </form>
  108. </span>
  109. <a class="navbar-entry" href="/settings">
  110. <img src="/assets/cog.svg" alt="Settings" />
  111. </a>
  112. </div>
  113. <div class="navbar-shadow"></div>
  114. </nav>
  115. <script src="/js/on-page-load.js"></script>
  116. <main>
  117. {{ embed() }}
  118. </main>
  119. </body>
  120. </html>