1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <div class="news-main">
- {{ range first 1 (where .Site.Pages "Params.type" "main") }}
- <div>
- <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 my-0 my-lg-3">
- <a href="{{ .Params.url }}">{{ .Params.title }}</a>
- </h2>
- </div>
- <a href="{{ .Permalink }}">
- <img class="img-fluid" src="{{ .Params.image | relURL }}" alt="" />
- </a>
-
- {{ end }}
- </div>
|