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

github.com/wileybaba/hugo-theme-robotico.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwileybaba <wileymckayconte@gmail.com>2018-11-02 20:39:41 +0300
committerwileybaba <wileymckayconte@gmail.com>2018-11-02 20:39:41 +0300
commit63469b8532a4fa46da14dc8a4d07c248f69d3971 (patch)
tree2047a525452242c04f445cf5ea5860dfc9b53cdb
parent2431f60ae300654f0f8857d9c3f4d08c666d1438 (diff)
lightbox script fix, footer dot fix
-rw-r--r--layouts/_default/baseof.html2
-rw-r--r--layouts/portfolio/list.html8
2 files changed, 7 insertions, 3 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 4ad0190..1f7ecb0 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -63,6 +63,8 @@
}
});
</script>
+{{ block "lightbox" . }}{{ end }}
+
{{ if .Site.Params.highlightjs }}
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js" integrity="sha256-/BfiIkHlHoVihZdc6TFuj7MmJ0TWcWsMXkeDFwhi0zw=" crossorigin="anonymous"></script>
diff --git a/layouts/portfolio/list.html b/layouts/portfolio/list.html
index 77decb3..9b5c575 100644
--- a/layouts/portfolio/list.html
+++ b/layouts/portfolio/list.html
@@ -15,6 +15,10 @@
</div>
</div>
+ {{ partial "footer" . }}
+{{ end }}
+
+{{ define "lightbox" }}
<script>
$(document).on("click", '[data-toggle="lightbox"]', function(event) {
event.preventDefault();
@@ -23,6 +27,4 @@
});
});
</script>
-
- {{ partial "footer" }}
-{{ end }}
+{{ define "lightbox" }}