12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <div class="news-featured">
- <h3 class="post-block-title">
- <span>為您精選</span>
- </h3>
- {{ range first 5 (where .Site.Pages "Params.type" "featured") }}
- <a href="{{ .Permalink }}">
- <img class="img-fluid" src="{{ .Params.image | relURL }}" alt="" />
- </a>
- <section class="news-info">
- {{ range (.GetTerms "categories") }}
- <a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
- {{ end }}
- <small>{{ .Date | time.Format ":date_long" }}</small>
- </section>
- <h2 class="post-title mb-3">
- <a href="{{ .Params.url }}">{{ .Params.title }}</a>
- </h2>
-
- {{ end }}
- </div>
|