Skip to content

Commit d70546c

Browse files
layouts
Signed-off-by: Rajesh-Nagarajan-11 <rajeshnagarajan36@gmail.com>
1 parent 4dfda8b commit d70546c

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

layouts/home.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{{ define "main" }}
2+
{{ partial "kanvas-corner-popup.html" . }}
23
{{ with .Content }}
34
{{ . }}
45
{{ end }}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{{/*
2+
nvas-corner-popup.html
3+
───────────────────────────────────────────────────────────────────────────
4+
go partial – drops the Kanvas corner popup onto the page.
5+
6+
Usage (in any layout file, just before </body>):
7+
{{ partial "section/kanvas-corner-popup.html" . }}
8+
9+
The popup is built and injected by the JS below. The architectural
10+
transition animation is handled by kanvas-architectural-transition.js.
11+
Both scripts must be loaded in order (transition first, popup second).
12+
*/}}
13+
14+
{{/* Load the architectural-transition helper first so the popup can call it */}}
15+
{{ with resources.Get "js/kanvas-architectural-transition.js" }}
16+
<script src="{{ .RelPermalink }}" defer></script>
17+
{{ end }}
18+
{{ with resources.Get "js/kanvas-corner-popup.js" }}
19+
<script src="{{ .RelPermalink }}" defer></script>
20+
{{ end }}

0 commit comments

Comments
 (0)