We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5974a7 commit b3226c4Copy full SHA for b3226c4
docs/_includes/ImportMap.html
@@ -0,0 +1,25 @@
1
+{% if page.imports %}
2
+ {% assign importMap = page.imports %}
3
+{% elsif page.importMap %}
4
+ {% assign importMap = page.importMap %}
5
+{% elsif site.imports %}
6
+ {% assign importMap = site.imports %}
7
+{% elsif site.importMap %}
8
+ {% assign importMap = site.importMap %}
9
+{% elsif site.data.imports %}
10
+ {% assign importMap = site.data.imports %}
11
+{% elsif site.data.importMap %}
12
+ {% assign importMap = site.data.importMap %}
13
+{% endif %}
14
+{% if importMap %}
15
+<script type="importmap">
16
+{
17
+ "imports": {
18
+ {% for eachImport in importMap %}
19
+ "{{eachImport[0]}}": "{{eachImport[1]}}"{% unless forloop.last %},
20
+ {% endunless %}
21
+ {% endfor %}
22
+ }
23
+}
24
+</script>
25
0 commit comments