blob: c4747a731069b8032da6a0de0663d83bb3c9f454 (
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
|
{{ $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">
{{ if or (isset .Params "video_preview_mp4") (isset .Params "video_preview_ogv") }}
{{ .Scratch.Set "class" "rounded-corners-top fill-container-width" }}
{{ partial "extra/video.html" . }}
{{ else }}
<img src="{{ $image }}" class="fill-container-width rounded-corners-top" />
{{ end }}
</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>
|