list.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <!DOCTYPE html>
  2. <html lang="{{ .Site.LanguageCode }}">
  3. {{ partial "head.html" . }}
  4. <body>
  5. <div id="all">
  6. {{ partial "nav.html" . }}
  7. {{ partial "breadcrumbs.html" . }}
  8. <div id="content">
  9. <div class="container">
  10. <div class="row">
  11. <!-- *** LEFT COLUMN *** -->
  12. <div class="col-md-9" id="blog-listing-medium">
  13. {{ $paginator := .Paginate (where .Data.Pages "Type" "blog") }}
  14. {{ range $paginator.Pages }}
  15. <section class="post">
  16. <div class="row">
  17. <div class="col-md-4">
  18. <div class="image">
  19. <a href="{{ .Permalink }}">
  20. {{ if .Params.banner }}
  21. <img src="{{ .Params.banner | relURL }}" class="img-responsive" alt="">
  22. {{ else }}
  23. <img src="{{ "img/placeholder.png" | relURL }}" class="img-responsive" alt="">
  24. {{ end }}
  25. </a>
  26. </div>
  27. </div>
  28. <div class="col-md-8">
  29. <h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
  30. <div class="clearfix">
  31. <p class="author-category">
  32. {{ if isset .Params "author" }}
  33. {{ i18n "authorBy" }} <a href="#">{{ .Params.author }}</a>
  34. {{ end }}
  35. {{ if isset .Params "categories" }}
  36. {{ if gt (len .Params.categories) 0 }}
  37. in <a href="{{ "categories/" | relURL }}{{ index .Params.categories 0 | urlize | lower }}">{{ index .Params.categories 0 }}</a>
  38. {{ end }}
  39. {{ end }}
  40. </p>
  41. {{ if isset .Params "date" }}
  42. <p class="date-comments">
  43. <a href="{{ .Permalink }}"><i class="far fa-calendar"></i> {{ .Date.Format .Site.Params.date_format }}</a>
  44. </p>
  45. {{ end }}
  46. </div>
  47. <p class="intro">{{ .Summary }}</p>
  48. <p class="read-more"><a href="{{ .Permalink }}" class="btn btn-template-main">{{ i18n "continueReading" }}</a>
  49. </p>
  50. </div>
  51. </div>
  52. </section>
  53. {{ end }}
  54. <ul class="pager">
  55. {{ if .Paginator.HasPrev }}
  56. <li class="previous"><a href="{{ .Paginator.Prev.URL | relURL }}">&larr; {{ i18n "newer" }}</a></li>
  57. {{ else }}
  58. <li class="previous disabled"><a href="#">&larr; {{ i18n "newer" }}</a></li>
  59. {{ end }}
  60. {{ if .Paginator.HasNext }}
  61. <li class="next"><a href="{{ .Paginator.Next.URL | relURL }}">{{ i18n "older" }} &rarr;</a></li>
  62. {{ else }}
  63. <li class="next disabled"><a href="#">{{ i18n "older" }} &rarr;</a></li>
  64. {{ end }}
  65. </ul>
  66. </div>
  67. <!-- /.col-md-9 -->
  68. <!-- *** LEFT COLUMN END *** -->
  69. <!-- *** RIGHT COLUMN ***
  70. _________________________________________________________ -->
  71. <div class="col-md-3">
  72. <!-- *** MENUS AND WIDGETS *** -->
  73. {{ partial "sidebar.html" . }}
  74. <!-- *** MENUS AND FILTERS END *** -->
  75. </div>
  76. <!-- /.col-md-3 -->
  77. <!-- *** RIGHT COLUMN END *** -->
  78. </div>
  79. <!-- /.row -->
  80. </div>
  81. <!-- /.container -->
  82. </div>
  83. <!-- /#content -->
  84. {{ partial "LP_components/Footer.html" . }}
  85. </div>
  86. <!-- /#all -->
  87. {{ partial "scripts.html" . }}
  88. </body>
  89. </html>