Welcome to mirror list, hosted at ThFree Co, Russian Federation.

eachpost.html « home « components « partials « layouts - github.com/ThemeTony/hugo-theme-tony.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f2989240aa39bf1c1657a1af469c3c565230ef0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{{ if or (.Params.Categories) (.Params.statusCate) }}
    {{ if .Params.buy }}
        <div>
            <div class="buy-list-item">
                <div class="buy-left-img-noborder">
                    <img src="{{ .Params.buyImage }}">
                </div>
                <div class="buy-right-info">
                    <div>
                        <a href="{{ .Params.buyLink }}" target="_blank">
                            <h3>
                                {{ .Params.buyName }}
                            </h3>
                        </a>
                        <p>
                            {{ .Params.buyInfo }}
                       </p>
                   </div>
                   <div>
                        <a href="{{ .Params.buyLink }}" target="_blank">
                            {{ .Params.buyButtonText }}
                            <span>
                                <i class="ri-arrow-right-up-line">
                                </i>
                            </span>
                        </a>
                    </div>
                </div>
            </div>
        </div>
        {{ if .Params.categoryLink }}
            <div>
                <a href="{{ .Params.categoryLink }}" class="img-cate list-normal-tag" style="color: rgba(255, 152, 0, 0.83) !important;">
                    <b>{{ delimit .Params.Categories " | " }}</b>
                </a>
            </div>
        {{ else if not .Params.statusCate }}
            <div>
                <em class="article-list-type1">
                    <b>{{ delimit .Params.Categories " | " }}</b>
                </em>
            </div>
        {{ end }}
    {{ end }}
{{ end }}
<div>
    {{ if not .Params.status }}
        <a href="{{ .Permalink | relURL }}" class="" style="text-decoration: none;">
            <h5 style="margin: 15px 0px 0px; padding: 0px;">{{.Title}}</h5>
        </a>
        <p>{{ .Summary }}...</p>
    {{ else }}
        <h3 class="article-list-content article-status">{{ .Content | plainify}}</h3>
    {{ end }}
    <div class="article-list-footer">
        <span class="article-list-date">{{ .Date.Format "02-01-06" }}</span>
        {{ if .Params.buy }}
            {{ if .Params.Categories }}
                <span class="article-list-divider">-</span>
                <a class="article-list-date" style="margin: 0px;">{{ delimit .Params.Categories " | " }}</a>
            {{ end }}
        {{ end }}
        {{ if .Params.status}}
            <span class="article-list-divider">-</span>
            <span class="article-list-minutes">
                <i class="ri-contrast-2-line"></i>
                状态 | {{ .Params.statusCate }}
            </span>
        {{ end }}
    </div>
</div>