This commit is contained in:
giles 2024-09-25 22:35:48 +01:00
parent ae6d1c1b3f
commit b78200d5a9
5 changed files with 33 additions and 3 deletions

View File

@ -29,6 +29,7 @@
transform: scale(1.1);
}
</style>
{{> "shop/scripts"}}
</head>
<body class="{{body_class}}{{{block "body_class"}}} is-head-{{#match @custom.navigation_layout "Logo on the left"}}left-logo{{else match @custom.navigation_layout "Logo in the middle"}}middle-logo{{else}}stacked{{/match}}{{#match @custom.title_font "=" "Elegant serif"}} has-serif-title{{/match}}{{#match @custom.body_font "=" "Elegant serif"}} has-serif-body{{/match}}{{^is "home"}}{{#if @site.cover_image}} is-head-brand{{/if}}{{/is}}">

View File

@ -23,7 +23,7 @@
<h1 class="single-title">{{title}}</h1>
<div class="kg-width-{{width}}">
{{> "shop-top"}}
{{> "shop/top"}}
</div>
{{#if custom_excerpt}}
<div class="single-excerpt">
@ -94,8 +94,8 @@
{{/next_post}}
</div>
</footer>
<div id="configure-product" name="configure-product" hx-get="shop/configure?embed" hx-trigger="load">
</div>
{{> "shop/configure-product"}}
</div>
{{/is}}

View File

@ -0,0 +1,2 @@
<div id="configure-product" name="configure-product" hx-get="shop/configure?embed" hx-trigger="load">
</div>

27
partials/shop/scripts.hbs Normal file
View File

@ -0,0 +1,27 @@
<script src="https://unpkg.com/htmx.org@2.0.2"></script>
<script src="https://unpkg.com/htmx.org@1.9.12/dist/ext/response-targets.js"></script>
<script src="https://unpkg.com/htmx.org@1.9.12/dist/ext/ws.js"></script>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"
></script>
<script src=" https://cdn.jsdelivr.net/npm/bootstrap-alerts@1.2.2/bootstrap-alerts.min.js "></script>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"
crossorigin="anonymous"
>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.4.2/css/fontawesome.min.css"
integrity="sha384-BY+fdrpOd3gfeRvTSMT+VUZmA728cfF9Z2G42xpaRkUGu2i3DyzpTURDo5A6CaLK" crossorigin="anonymous">
<script
type="text/javascript"
src="https://gateway.sumup.com/gateway/ecom/card/v2/sdk.js"
></script>