postbox.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334
  1. <!-- begin post -->
  2. <div class="col-lg-4 col-md-6 mb-30px card-group">
  3. <div class="card h-100">
  4. <div class="maxthumb">
  5. <a href="{{ .Permalink }}">
  6. {{$images := .Resources.ByType "image"}}
  7. {{with $images.GetMatch "*cover*" }}
  8. <img class="img-fluid" src="{{ .Permalink }}" alt="A thumbnail image">
  9. {{end}}
  10. </a>
  11. </div>
  12. <div class="card-body">
  13. <h2 class="card-title"><a class="text-dark" href="{{ .Permalink }}">{{ .Title }}</a></h2>
  14. <h4 class="card-text">{{ .Summary }}</h4>
  15. </div>
  16. <div class="card-footer bg-white">
  17. <div class="wrapfooter">
  18. {{if isset .Site.Params "author"}}
  19. {{if isset .Site.Params "author_thumb"}}
  20. <span class="meta-footer-thumb">
  21. <img class="author-thumb" src="{{ .Site.Params.author_thumb | urlize | relURL }}" alt="{{ .Site.Params.author }}">
  22. </span>
  23. <span class="author-meta">
  24. <span class="post-name">{{ .Site.Params.author }}</a></span><br/>
  25. {{end}}
  26. {{end}}
  27. <span class="post-date">{{ dateFormat "Jan 2, 2006" .PublishDate }} - {{ .ReadingTime }} min read </span>
  28. <span class="post-read-more"><a href="{{ .Permalink }}" title="Read Story"><svg class="svgIcon-use" width="25" height="25" viewbox="0 0 25 25"><path d="M19 6c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v14.66h.012c.01.103.045.204.12.285a.5.5 0 0 0 .706.03L12.5 16.85l5.662 4.126a.508.508 0 0 0 .708-.03.5.5 0 0 0 .118-.285H19V6zm-6.838 9.97L7 19.636V6c0-.55.45-1 1-1h9c.55 0 1 .45 1 1v13.637l-5.162-3.668a.49.49 0 0 0-.676 0z" fill-rule="evenodd"></path></svg></a></span>
  29. <div class="clearfix"></div>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. <!-- end post -->