content.html 795 B

123456789101112131415161718192021222324252627
  1. <!-- <article class="blog-post">
  2. <header>
  3. {{ partial "post-title" . }}
  4. {{ partial "post-date" . }}
  5. {{ partial "post-tags" . }}
  6. {{ partial "post-categories" . }}
  7. </header>
  8. {{ .Content }}
  9. </article> -->
  10. <div class="news-main">
  11. {{ range (.Paginate ( where .Pages "Params.type" "post" )).Pages }}
  12. <section class="news-info">
  13. {{ range (.GetTerms "categories") }}
  14. <a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
  15. {{ end }}
  16. <small>{{ .Date | time.Format ":date_long" }}</small>
  17. </section>
  18. <h2 class="post-title my-3">
  19. <a href="{{ .Params.url }}">{{ .Params.title }}</a>
  20. </h2>
  21. <a href="{{ .Permalink }}">
  22. <img class="img-fluid" src="{{ .Params.image | relURL }}" alt="" />
  23. </a>
  24. {{ end }}
  25. {{ template "_internal/pagination.html" . }}
  26. </div>