{{ if ne .quant "" }}
@@ -163,12 +228,12 @@
{{ end }} {{ if ne .deliveryPickup "" }}
- Delivery/Pickup:
+ Pickup & Delivery:
{{ .deliveryPickup }}
{{ end }} {{ if ne .installBreakdown "" }}
- Install/Breakdown:
+ Setup & Breakdown:
{{ .installBreakdown }}
{{ end }} {{ if ne .purchaseCost "" }}
@@ -276,4 +341,30 @@
}
}
});
+
+ const gallery = document.getElementById("gallery");
+ const carouselItems = gallery.querySelectorAll("[data-carousel-item]");
+ const prevButton = gallery.querySelector("[data-carousel-prev]");
+ const nextButton = gallery.querySelector("[data-carousel-next]");
+ let currentItemIndex = 0;
+ function showItem() {
+ carouselItems.forEach((item, index) => {
+ item.classList.add("hidden");
+ if (index === currentItemIndex) {
+ item.classList.remove("hidden");
+ }
+ });
+ }
+ function prevItem() {
+ currentItemIndex =
+ (currentItemIndex - 1 + carouselItems.length) % carouselItems.length;
+ showItem();
+ }
+ function nextItem() {
+ currentItemIndex = (currentItemIndex + 1) % carouselItems.length;
+ showItem();
+ }
+ prevButton.addEventListener("click", prevItem);
+ nextButton.addEventListener("click", nextItem);
+ showItem();
diff --git a/themes/gallo/static/admin/config.yml b/themes/gallo/static/admin/config.yml
index adcd6b1..3ea0f87 100644
--- a/themes/gallo/static/admin/config.yml
+++ b/themes/gallo/static/admin/config.yml
@@ -1,35 +1,29 @@
+---
backend:
name: gitea
repo: mycosystems/gallowelds.com
- branch: main
app_id: 8cf43676-cdba-4112-a981-9c1117b3d096
api_root: https://git.myco.systems/api/v1
base_url: https://git.myco.systems
- auth_endpoint: https://git.myco.systems/login/oauth/authorize
- commit_messages:
- create: Create {{collection}} {{slug}}
- update: Update {{collection}} {{slug}}
- delete: Delete {{collection}} {{slug}}
- uploadMedia: Upload {{path}}
- deleteMedia: Delete {{path}}
- openAuthoring: "{{message}}"
-# publish_mode: editorial_workflow
-media_folder: "static/img"
+media_folder: themes/gallo/static/img
site_url: https://gallo.demo.myco.systems
-logo_url: https://gallo.demo.myco.systems/img/gallo_welding.svg
-locale: "en"
+logo_url: https://gallo.demo.myco.systems/img/gallo_welding_inverted.svg
+locale: en
show_preview_links: false
search: false
-
collections:
- - name: "about"
- label: "About"
- folder: "content/about"
+ - name: about
+ label: About
+ folder: content/about
create: false
- slug: "index.md"
+ slug: index.md
fields:
- - { label: "Title", name: "title", widget: "string" }
- - { label: "Date Last Edited", name: "date", widget: "datetime" }
- - { label: "Featured Image", name: "thumbnail", widget: "image" }
- - { label: "Body", name: "body", widget: "markdown" }
- - { label: "Gallery", name: "gallery", widget: "gallery" }
+ - label: Title
+ name: title
+ widget: string
+ - label: Date Last Edited
+ name: date
+ widget: datetime
+ - label: Body
+ name: body
+ widget: markdown
diff --git a/themes/gallo/static/admin/index.html b/themes/gallo/static/admin/index.html
index 52b4b8d..fd13e52 100644
--- a/themes/gallo/static/admin/index.html
+++ b/themes/gallo/static/admin/index.html
@@ -3,10 +3,13 @@
-
+
Content Manager
-
+
+
-