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

list.html « portfolio « layouts - github.com/wileybaba/hugo-theme-robotico.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 77decb373fc9ed43c493c42844fa3cd1ac5a2914 (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
{{ define "main" }}
  {{ partial "header" . }}

  <div class="col-sm-12">
    <div class="card-columns">
      {{ if .Site.Params.portfolio }}
        {{ range .Site.Params.portfolio }}
          <div class="card">
            <a href="{{ .link | relURL }}" data-toggle="lightbox" data-gallery="gallery">
              <img src="{{ .link | relURL }}" class="card-image img-fluid rounded">
            </a>
          </div>
        {{ end }}
      {{ end }}
    </div>
  </div>

  <script>
    $(document).on("click", '[data-toggle="lightbox"]', function(event) {
      event.preventDefault();
      $(this).ekkoLightbox({
        alwaysShowClose: true
      });
    });
  </script>

  {{ partial "footer" }}
{{ end }}