Do not generate modal block that is never shown

This commit is contained in:
Leonid Evdokimov 2018-01-28 21:29:51 +03:00
parent 18398f84e2
commit a4803d7bb5

View file

@ -39,7 +39,7 @@
<!-- End Projects container --> <!-- End Projects container -->
<!-- Projects modals --> <!-- 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" id="modal{{.Title | urlize}}">
<div class="modal-background"></div> <div class="modal-background"></div>
<div class="modal-card"> <div class="modal-card">
@ -67,7 +67,7 @@
$('#modal{{.Title | urlize}}').removeClass('is-active'); $('#modal{{.Title | urlize}}').removeClass('is-active');
}); });
</script> </script>
{{ end }} {{ end }} {{ end }} {{ end }} {{ end }}
<div class="container has-text-centered top-pad"> <div class="container has-text-centered top-pad">