index.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {{ define "main" }}
  2. {{ $truncate := default true .Site.Params.truncate }}
  3. {{ if .Content }}
  4. <header>
  5. <h1 class="blog-post-title">
  6. <a class="text-dark text-decoration-none" href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
  7. </h1>
  8. <hr>
  9. </header>
  10. <section class="blog-post">
  11. {{ .Content }}
  12. </section>
  13. {{ end }}
  14. {{ $paginator := .Paginate (where .Pages "Section" "in" .Site.Params.mainSections) }}
  15. {{ range $paginator.Pages }}
  16. <!-- {{ .Render "content" }} -->
  17. <div class="container my-5 flex-grow-1">
  18. <div class="row justify-content-evenly">
  19. {{ partial "news-main.html" . }}
  20. <!-- <div class="col-12 col-lg-3">
  21. {{ partial "focus.html" . }}
  22. </div>
  23. <div class="col-12 col-lg-6">
  24. {{ partial "news-main.html" . }}
  25. </div>
  26. <div class="col-12 col-lg-3 mt-5 pt-5 mt-lg-0 pt-lg-0">
  27. {{ partial "news-featured.html" . }}
  28. </div> -->
  29. </div>
  30. {{ partial "news-tab.html" . }}
  31. <div class="row mt-5 pt-5">
  32. <div class="col-12 col-lg-9">
  33. {{ partial "news-all.html" . }}
  34. {{ partial "paginator" . }}
  35. </div>
  36. <div class="col-12 col-lg-3 d-none d-lg-block">
  37. {{ partial "news-featured.html" . }}
  38. </div>
  39. </div>
  40. </div>
  41. <div class="top-btn">
  42. <button>
  43. <svg xmlns="http://www.w3.org/2000/svg" width="35" height="35" fill="currentColor" class="bi bi-arrow-up-short"
  44. viewBox="0 0 16 16">
  45. <path fill-rule="evenodd"
  46. d="M8 12a.5.5 0 0 0 .5-.5V5.707l2.146 2.147a.5.5 0 0 0 .708-.708l-3-3a.5.5 0 0 0-.708 0l-3 3a.5.5 0 1 0 .708.708L7.5 5.707V11.5a.5.5 0 0 0 .5.5z" />
  47. </svg>
  48. </button>
  49. </div>
  50. <!-- {{ partial "paginator" . }} -->
  51. {{ end }}
  52. {{ end }}