novel.jet.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <div class="container novel" id="checkpoint">
  2. <div class="novel-detail">
  3. <div class="novel-cover">
  4. <a href="{{ Novel.CoverURL }}">
  5. <img src="{{ Novel.CoverURL }}" alt="{{ Novel.Title }}" />
  6. </a>
  7. </div>
  8. <div class="novel-metadata">
  9. <div class="novel-title">{{ Novel.Title }}</div>
  10. <small><span>{{ Novel.WordCount }} word(s)</span>&nbsp;<span>{{ floor: Novel.ReadingTime / 60 }} min</span></small>
  11. <p class="novel-description">{{ raw: Novel.Description }}</p>
  12. <div class="illust-tags">
  13. {{ if Novel.AiType == 2 }}
  14. <span class="illust-tag">
  15. <span class="illust-tag-name" id="highlight">AI-generated</span>
  16. </span>
  17. {{ end }}
  18. {{ if Novel.IsOriginal }}
  19. <span class="illust-tag">
  20. <span class="illust-tag-name">Original</span>
  21. </span>
  22. {{ end }}
  23. {{ if Novel.Genre != "0" }}
  24. <span class="illust-tag">
  25. <span class="illust-tag-name">{{ novelGenre: Novel.Genre }}</span>
  26. </span>
  27. {{ end }}
  28. {{ range Novel.Tags.Tags }} {{ if isEmphasize(.Name) }}
  29. <span class="illust-tag">
  30. <span class="illust-tag-name" id="highlight">{{ .Name }}</span>
  31. </span>
  32. {{ else }}
  33. <span class="illust-tag">
  34. <span class="illust-tag-translation"
  35. ><a href="/tags/{{ escapeString(.Name) }}">#{{ .Name }}</a></span
  36. >
  37. </span>
  38. {{ end }} {{ end }}
  39. </div>
  40. <div class="illust-tags">
  41. <span class="illust-tag-attr">
  42. <img src="/assets/eye.png" alt="Views" />
  43. {{ Novel.Views }}
  44. </span>
  45. <span class="illust-tag-attr">
  46. <img src="/assets/heart-solid.png" alt="Bookmarks" />
  47. {{ Novel.Bookmarks }}
  48. </span>
  49. <span class="illust-tag-attr">
  50. <img src="/assets/like.png" alt="Likes" />
  51. {{ Novel.Likes }}
  52. </span>
  53. <span class="illust-tag-attr">
  54. <img src="/assets/calendar.png" alt="Date" />
  55. {{ parseTime: Novel.CreateDate }}
  56. </span>
  57. </div>
  58. </div>
  59. </div>
  60. <div class="novel-content">
  61. {{ raw: renderNovel(Novel.Content) }}
  62. </div>
  63. <div class="illust-attr">
  64. <a href="/users/{{ User.ID }}"
  65. ><img
  66. src="{{ User.Avatar }}"
  67. alt="{{ User.Name }}"
  68. class="illust-avatar"
  69. />
  70. </a>
  71. <div class="attr-wrap">
  72. <div class="illust-title">
  73. <a href="/users/{{ User.ID }}">{{ User.Name }}</a>
  74. </div>
  75. </div>
  76. </div>
  77. <div class="novel-container">
  78. {{ range NovelRelated }}
  79. {{ include "components/novel-tn" . }}
  80. {{ end }}
  81. </div>
  82. </div>