index.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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="w-90 my-5 flex-grow-1">
  18. <div class="row justify-content-evenly">
  19. <div class="col-12 col-lg-3">
  20. {{ partial "focus.html" . }}
  21. </div>
  22. <div class="col-12 col-lg-6">
  23. {{ partial "news-main.html" . }}
  24. {{partial "new-post.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 class="col-12 col-lg-12">
  30. {{ partial "post.html" . }}
  31. </div> -->
  32. </div>
  33. {{ partial "news-tab.html" . }}
  34. <div class="row mt-5 pt-5">
  35. <div class="col-6 col-lg-9">
  36. {{ partial "news-all.html" . }}
  37. {{ partial "paginator" . }}
  38. </div>
  39. <div class="col-12 col-lg-3">
  40. {{ partial "news-featured.html" . }}
  41. </div>
  42. </div>
  43. </div>
  44. <div class="top-btn">
  45. <button>
  46. <svg xmlns="http://www.w3.org/2000/svg" width="35" height="35" fill="currentColor" class="bi bi-arrow-up-short"
  47. viewBox="0 0 16 16">
  48. <path fill-rule="evenodd"
  49. 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" />
  50. </svg>
  51. </button>
  52. </div>
  53. <!-- {{ partial "paginator" . }} -->
  54. {{ end }}
  55. {{ end }}