aboutsummaryrefslogblamecommitdiff
path: root/layouts/partials/list.html
blob: c9316543fa0949c80e2319d253ff1adf6209c933 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11



                                                                                              


                                                                                                                                         



                          
                                                                                                                                       





                           


                                                                                       
                 
             
                         



                                                                    
             


                                            
                                                                                                          

             
     
<div class="post">
    <h1 class="post-title fw-semibold"><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h1>
    {{ if .Date }}
    <div class="d-flex align-items-center mb-4 text-muted">
        <span class="d-flex align-items-center" title="{{- .Date | time.Format (or .Site.Params.dateFormat.published "02 Jan 2006") -}}">
            {{ partial "icon.html" "calendar" }}
            {{- .Date | time.Format (or .Site.Params.dateFormat.published "02 Jan 2006") -}}
        </span>
    </div>
    {{ end }}
    {{ if .Params.Image }}
        <img class="d-block img-fluid mb-2 rounded border shadow imgcover" loading="lazy" src="{{ .RelPermalink }}{{.Params.Image}}" />
    {{ end }}
    {{ if .Description }}
        {{ .Description }}
    {{ else }}
        {{ .Summary }}
        {{ if .Truncated }}
            <div class="truncated">
                <a class="btn btn-primary" href="{{ .RelPermalink }}">Далее...</a>
            </div>
        {{ end }}
    {{ end }}
    {{ if .Params.Tags }}
    <div class="p-tags">
        {{ partial "icon.html" "tag" }}
        {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
    </div>
    {{ end }}
    {{ if .Params.Location }}
    <div class="p-location">
        {{ partial "icon.html" "location" }}
        <a href="https://www.openstreetmap.org/search?query={{.Params.Location}}">{{.Params.Location}}</a>
    </div>
    {{ end }}
</div>