cards.html 764 字节
Newer Older
E
edisonxiang 已提交
1 2
{{ if isset .Site.Params "cards" }}
{{ if .Site.Params.cards.enable }}
F
freesky-edward 已提交
3
{{ if gt (len .Site.Params.card) 0 }}
E
edisonxiang 已提交
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<div class="bannernew">
    <div class="content">
        <h2>{{ i18n "main_cards_title" }}</h2>
        <p> {{ i18n "main_cards_description" }}</p>
    </div>
    <div class="cards">
        <ul>
            {{ range .Site.Params.card }}
            <a href="{{ .url }}">
                <!--<img src="{{ .image }}" alt="{{ .title }}">-->
                <li>
                    <i class="icon icon{{ .weight }}"></i>
                    <h3>{{ .title }}</h3>
                    <p>{{ .description }}</p>
                </li>
            </a>
            {{ end }}
        </ul>
    </div>
</div>
E
edisonxiang 已提交
24 25
{{ end }}
{{ end }}
E
edisonxiang 已提交
26
{{ end }}