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

item.html « project « partials « layouts - github.com/chipsenkbeil/grid-side.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 17067608f307c46c576f07dfff52a247ebe0a179 (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

{{ $url := $.Site.BaseURL }}
{{ if isset .Params "image" }}
    {{ $.Scratch.Set "image" .Params.image }}
{{ else }}
    {{ $.Scratch.Set "image" "/img/placeholder.jpg" }}
{{ end }}
{{ $image := $.Scratch.Get "image" | urlize }}
{{ $title := .Title }}
{{ $summary := .Summary }}
{{ $link := .Permalink }}
<!-- TODO: Figure out why line height causes issues here -->
<div class="flex-item flex-item-spacing no-line-height">
    <div class="relative lazyload" data-noscript="">
        <noscript>
            <a href="{{ $link }}">
                <div class="project-container rounded-corners z-depth-1">
                    <div class="project-container-image rounded-corners-top">
                        <img src="{{ $image }}" class="fill-container-width rounded-corners-top" />
                    </div>
                    <div class="rounded-corners-bottom center-text project-container-title">
                        <h4 class="white-text">{{ $title }}</h4>
                        {{ partial "extra/categories.html" . }}
                        <span class="separator">|</span>
                        {{ partial "extra/tags.html" . }}
                    </div>
                </div>
            </a>
        </noscript>
    </div>
</div>