Skip to content

Commit

Permalink
feat: WebSocket Website ( Fixes #19 )
Browse files Browse the repository at this point in the history
Adding workflow step
  • Loading branch information
James Brundage authored and James Brundage committed Nov 27, 2024
1 parent 05e4de5 commit 5407594
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions _includes/ImportMap.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{% if page.imports %}
{% assign importMap = page.imports %}
{% elsif page.importMap %}
{% assign importMap = page.importMap %}
{% elsif site.imports %}
{% assign importMap = site.imports %}
{% elsif site.importMap %}
{% assign importMap = site.importMap %}
{% elsif site.data.imports %}
{% assign importMap = site.data.imports %}
{% elsif site.data.importMap %}
{% assign importMap = site.data.importMap %}
{% endif %}
{% if importMap %}
<script type="importmap">
{
"imports": {
{% for eachImport in importMap %}
"{{eachImport[0]}}": "{{eachImport[1]}}"{% unless forloop.last %},
{% endunless %}
{% endfor %}
}
}
</script>
{% endif %}

0 comments on commit 5407594

Please sign in to comment.