File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 11{{ define "main" }}
2+ {{ partial "kanvas-corner-popup.html" . }}
23{{ with .Content }}
34{{ . }}
45{{ end }}
Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments