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:
authorLeonid Evdokimov <leon@darkk.net.ru>2018-01-28 21:29:51 +0300
committerLeonid Evdokimov <leon@darkk.net.ru>2018-01-28 21:29:51 +0300
commita4803d7bb5257c82adb2b80b6033b6b175d78fad (patch)
treeed410282ede350148412360e0757460304179f58
parent18398f84e2508243d0ae599b9d2f57074021949b (diff)
Do not generate modal block that is never shown
-rw-r--r--layouts/partials/projects.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/projects.html b/layouts/partials/projects.html
index 946bc86..af87a3f 100644
--- a/layouts/partials/projects.html
+++ b/layouts/partials/projects.html
@@ -39,7 +39,7 @@
<!-- End Projects container -->
<!-- Projects modals -->
-{{ range sort .Pages }} {{ if eq .Section "projects" }}
+{{ range sort .Pages }} {{ if eq .Section "projects" }} {{ if not .Params.external_link }}
<div class="modal" id="modal{{.Title | urlize}}">
<div class="modal-background"></div>
<div class="modal-card">
@@ -67,7 +67,7 @@
$('#modal{{.Title | urlize}}').removeClass('is-active');
});
</script>
-{{ end }} {{ end }}
+{{ end }} {{ end }} {{ end }}
<div class="container has-text-centered top-pad">