123456789101112131415161718192021222324252627 |
- <!-- 趨勢日報內容 -->
- {{ if isset .Site.Params "trends" }}
- {{ if .Site.Params.trends.enable }}
- {{ if gt (len .Site.Data.trends) 0 }}
- <section class="bar background-gray mb-0">
- <div class="container">
- <div class="heading text-center">
- <h2>趨勢排行</h2>
- </div>
- <div class="col-md-12">
- <div class="row row__rank">
- {{ range $index, $element := sort .Site.Data.trends "weight" }}
- <div class="col-6 col-md-3 rank">
- <div class="box-simple rank__box">
- <span class="rank__num">{{ $element.weight | markdownify }}</span>
- <h3 class="rank__word">{{ $element.name | markdownify }}</h3>
- </div>
- </div>
- {{ end }}
- </div>
- </div>
- </div>
- </section>
- {{ end }}
- {{ end }}
- {{ end }}
|