focus.html 645 B

1234567891011121314151617181920
  1. <div class="focus-content">
  2. <h3 class="post-block-title">
  3. <span>焦點新聞</span>
  4. </h3>
  5. {{ range first 3 (where .Site.Pages "Params.type" "focus") }}
  6. <a href="{{ .Permalink }}">
  7. <img class="img-fluid" src="{{ .Params.image | relURL }}" alt="" />
  8. </a>
  9. <h2 class="post-title mt-3">
  10. <a href="{{ .Permalink }}">{{ .Params.title }}</a>
  11. </h2>
  12. <section class="news-info mb-5">
  13. {{ range (.GetTerms "categories") }}
  14. <a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
  15. {{ end }}
  16. <small>{{ .Date | time.Format ":date_long" }}</small>
  17. </section>
  18. {{ end }}
  19. </div>