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

projects.html « sections « partials « layouts - github.com/2-REC/hugo-myportfolio-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a6850af6697d115e1687e1b7f5068d6a3e4b8bf4 (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
{{ "<!-- PROJECTS -->" | safeHTML }}
<section class="section projects" id="projects_{{ trim .Dir "/\\" }}">
    {{ $path := replace .Dir "\\" "/" }}
    {{ with .Title }}
        <a href="/{{ $path }}" class="container-fluid padding-title">
            <div class="row">
                <div class="col-md-8 text-right">
                    <h2 class="section-heading">{{ . }}</h2>
                    <hr class="primary">
                </div>
            </div>
        </a>
    {{ end }}
    <div class="container-fluid">
        <div class="row no-gutter">
            {{ if .Sections }}
                {{/* Sort the list */}}
                {{ partial "utils/ordered-list.html" (dict "list" .Sections "params" .Params "scratch" .Scratch) }}
                {{ range (.Scratch.Get "list") }}
                    {{ .Render "limage" }}
                {{ end }}
                {{ .Scratch.Delete "list" }}
            {{ end }}
        </div>
    </div>
</section>