baca.njk 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {% include './../layouts/header.njk' %}
  2. <h3 class="judul">{{ title }}</h3>
  3. <p class="subtitle">{{ subtitle or ringkasan }}</p>
  4. <div class="selayang">
  5. <div class="selayang__cover">
  6. <img class="layang" src="{{ coverImg }}" alt="">
  7. </div>
  8. <div class="selayang__meta">
  9. <dl>
  10. <dt>Penulis</dt>
  11. <dd>{{ penulis }}</dd>
  12. <dt>Bahasa</dt>
  13. <dd>{{ bahasa }}</dd>
  14. <dt>Format</dt>
  15. <dd>{{ format }}</dd>
  16. <dt>ISBN</dt>
  17. <dd>{{ isbn }}∷ {{ tahun }}</dd>
  18. <dt>Rating</dt>
  19. <dd><a href="/baca/rating">{{ rating }} dari 5</a></dd>
  20. <dt>Beli dimana?</dt>
  21. <dd><a href="{{ beli }}" target="_blank">{{ dimana }}</a></dd>
  22. </dl>
  23. </div>
  24. </div>
  25. {{ content | safe }}
  26. <div class="post-navigation">
  27. <div class="nav_kiri">
  28. {%- set previousPost = search.previousPage(url, "jurnal") %}
  29. {%- if previousPost %}
  30. <strong>← <a href="{{ previousPost.data.url }}" rel="prev">{{ previousPost.data.title }}</a></strong>
  31. {% endif %}
  32. </div>
  33. <div class="nav_kanan">
  34. {%- set nextPost = search.nextPage(url, "jurnal") %}
  35. {%- if nextPost %}
  36. <strong><a href="{{ nextPost.data.url }}" rel="next">{{ nextPost.data.title }}</a> →</strong>
  37. {% endif %}
  38. </div>
  39. </div>
  40. {% include './../content/subs.njk' %}
  41. {% include './../layouts/footer.njk' %}