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

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanzei <hanzei@mailbox.org>2018-06-27 03:33:38 +0300
committerHanzei <hanzei@mailbox.org>2018-06-27 03:33:38 +0300
commitada193209735746bfe19b8d842a8776bbfa3de44 (patch)
tree77b3aefdebb052bf925068f1000cb67b7539b62a /layouts/projects
parent389a69a6e71228b536af28776156fda30d22e217 (diff)
Code cleanup
Diffstat (limited to 'layouts/projects')
-rw-r--r--layouts/projects/list.html25
1 files changed, 9 insertions, 16 deletions
diff --git a/layouts/projects/list.html b/layouts/projects/list.html
index 66a5f35..a19650a 100644
--- a/layouts/projects/list.html
+++ b/layouts/projects/list.html
@@ -16,13 +16,13 @@
<div class="container">
<div class="section is-small">
<div class="columns is-multiline">
- <!-- Ranges through content/projects/*.md -->
- {{ range .Data.Pages }}
- {{ if eq (mod (len (.Site.GetPage "section" "projects").Pages) 2) 0 }}
+ {{ $numberOfPages := len .Pages}}
+ {{ range .Pages }}
+ {{ if eq (mod $numberOfPages 2) 0 }}
<div class="column is-half">
{{ else }}
<div class="column is-one-third">
- {{ end }}
+ {{ end }}
<div class="card">
<div class="card-image">
<figure class="image is-3by2">
@@ -42,17 +42,10 @@
</div>
</div>
</div>
-
- <div class="container has-text-centered top-pad">
- <hr>
- <a href="#top">
- <i class="fa fa-arrow-up"></i>
- </a>
- <hr>
- </div>
-
+ {{ partial "top-icon-with-hr.html" . }}
{{ partial "footer.html" . }}
- </div><!-- End fade in two -->
-</div><!-- End parent section -->
-
+ </div>
+ <!-- End fade in two -->
+</div>
+<!-- End parent section -->
</body>