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

limage.html « _default « layouts - github.com/2-REC/hugo-myportfolio-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 62084696a3aa725ceb2d59d77ac627bc1f1e2843 (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
<div class="col-lg-4 col-sm-6">
    {{ $path := replace .Dir "\\" "/" }}
    <a href="/{{ $path }}" class="project-box project-link">
        {{ $image_file := or .Params.cover_image .Params.small_image }}
        {{ if $image_file }}
            {{ $image := .Resources.GetMatch $image_file }}
            {{ with $image }}
                <img src="{{ .Permalink }}" class="img-responsive" alt="{{ .Name }}">
            {{ end }}
        {{ end }}

        <div class="project-box-caption">
            <div class="project-box-caption-content">
                {{ with .Title }}
                    <div class="project-name">
                        {{ . }}
                    </div>
                {{ end }}
                {{ with .Params.subtitle }}
                    <div class="project-category">
                        {{ . }}
                    </div>
                {{ end }}
                {{ if .Params.startDate }}
                    <div class="project-date">
                        From {{ .Params.startDate }}
                        {{ with .Params.endDate }}
                            to {{ . }}
                        {{ end }}
                    </div>
                {{ end }}
            </div>
        </div>
    </a>
</div>