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

li.html « _default « layouts - github.com/fourtyone11/origin-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dc7a053df46fb87c2429629b228f9151c46d99b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<article class="post-item">
        <div class="post-item-flex">
            <a class="{{if not (isset .Params "tags")}}no-tag{{end}} post-item__meta post-item--left" href="{{.Permalink}}">
            <h2 class="post-item__title">{{.Title}}</h2>
            <time class="post-item__date" datetime="{{.Date.Format "2006-01-02"}}">{{.Date.Format "2006-01-02"}}</time>
        {{if isset .Params "description"}}
            <div class="post-item__description">{{.Description}}</div>
        {{end}}
        </a>
        {{if isset .Params "image"}}
        <a class="post-item--right post-item__image" href="{{.Permalink}}">
            <img src="{{printf "%s%s" .File.Dir .Params.image | absURL}}" alt="{{.Title}}" />
        </a>
        {{end}}
        {{if isset .Params "tags"}}
        <a href="/tags/{{index .Params.tags 0 | urlize}}" class="post-item__tag">
            {{index .Params.tags 0}}
        </a>
        {{end}}
    </div>
</article>