index.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. <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. </div>
  25. <div class="col-12 col-lg-3 mt-5 pt-5 mt-lg-0 pt-lg-0">
  26. {{ partial "news-featured.html" . }}
  27. </div>
  28. </div>
  29. {{ partial "news-tab.html" . }}
  30. <div class="row mt-5 pt-5">
  31. <div class="col-12 col-lg-9">
  32. {{ partial "news-all.html" . }}
  33. {{ partial "paginator" . }}
  34. </div>
  35. <div class="col-12 col-lg-3">
  36. {{ partial "news-featured.html" . }}
  37. </div>
  38. </div>
  39. </div>
  40. <div class="top-btn">
  41. <button>
  42. <svg xmlns="http://www.w3.org/2000/svg" width="35" height="35" fill="currentColor" class="bi bi-arrow-up-short" viewBox="0 0 16 16">
  43. <path fill-rule="evenodd" 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"/>
  44. </svg>
  45. </button>
  46. </div>
  47. <!-- {{ partial "paginator" . }} -->
  48. {{ end }}
  49. {{ end }}