tag.html 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. {{ $len := len .articles }}
  2. <section class="page">
  3. <div class="container">
  4. <div class="row">
  5. <div class="page-content col-md-12">
  6. <div class="col-md-12 bottom_30">
  7. <a href="/" class="blog-link-to-main">&larr; на главную</a>
  8. </div>
  9. </div>
  10. </div>
  11. <div class="row">
  12. <div class="page-content col-md-12">{{ range $index, $article := .articles }}
  13. <div class="col-md-4">
  14. <div class="blog-box grid-blog">
  15. {{ if $article.Image }}<img src="{{ $article.Image }}">{{ end }}
  16. <div class="col-md-12 blog-info">
  17. <span class="data">{{ $article.PublishTime }}</span>
  18. <h4>{{ $article.Title }}</h4>
  19. {{ if $article.PreviewText }}<p>{{ noescape $article.PreviewText }}</p>{{ end }}
  20. <a href="/article/{{ $article.URL }}" class="blog-link">Читать дальше</a>
  21. </div>
  22. </div>
  23. </div>
  24. {{ if gridsep $index $len }}</div>
  25. </div>
  26. <div class="row">
  27. <div class="page-content col-md-12">
  28. {{ end }}
  29. {{ end }}
  30. </div>
  31. </div>
  32. </div>
  33. </section>