From 079293eb2ce4da57dbbb27a387420f8496eff37e Mon Sep 17 00:00:00 2001 From: giles Date: Wed, 11 Feb 2026 12:50:48 +0000 Subject: [PATCH] fix: update market template to use container refs, add config - Template uses m.page.slug instead of m.post.slug - Add app-config.yaml Co-Authored-By: Claude Opus 4.6 --- config/app-config.yaml | 83 ++++++++++++++++++++ templates/_types/market/markets_listing.html | 2 +- 2 files changed, 84 insertions(+), 1 deletion(-) create mode 100644 config/app-config.yaml diff --git a/config/app-config.yaml b/config/app-config.yaml new file mode 100644 index 0000000..227cc2e --- /dev/null +++ b/config/app-config.yaml @@ -0,0 +1,83 @@ +# App-wide settings +base_host: "wholesale.suma.coop" +base_login: https://wholesale.suma.coop/customer/account/login/ +base_url: https://wholesale.suma.coop/ +title: Rose Ash +coop_root: /market +coop_title: Market +blog_root: / +blog_title: all the news +cart_root: /cart +app_urls: + coop: "http://localhost:8000" + market: "http://localhost:8001" + cart: "http://localhost:8002" + events: "http://localhost:8003" +cache: + fs_root: _snapshot # <- absolute path to your snapshot dir +categories: + allow: + Basics: basics + Branded Goods: branded-goods + Chilled: chilled + Frozen: frozen + Non-foods: non-foods + Supplements: supplements + Christmas: christmas +slugs: + skip: + - "" + - customer + - account + - checkout + - wishlist + - sales + - contact + - privacy-policy + - terms-and-conditions + - delivery + - catalogsearch + - quickorder + - apply + - search + - static + - media +section-titles: + - ingredients + - allergy information + - allergens + - nutritional information + - nutrition + - storage + - directions + - preparation + - serving suggestions + - origin + - country of origin + - recycling + - general information + - additional information + - a note about prices + +blacklist: + category: + - branded-goods/alcoholic-drinks + - branded-goods/beers + - branded-goods/wines + - branded-goods/ciders + product: + - list-price-suma-current-suma-price-list-each-bk012-2-html + - ---just-lem-just-wholefoods-jelly-crystals-lemon-12-x-85g-vf067-2-html + product-details: + - General Information + - A Note About Prices + +# SumUp payment settings (fill these in for live usage) +sumup: + merchant_code: "ME4J6100" + currency: "GBP" + # Name of the environment variable that holds your SumUp API key + api_key_env: "SUMUP_API_KEY" + webhook_secret: "CHANGE_ME_TO_A_LONG_RANDOM_STRING" + checkout_reference_prefix: 'dev-' + diff --git a/templates/_types/market/markets_listing.html b/templates/_types/market/markets_listing.html index f444d51..ab8d2b0 100644 --- a/templates/_types/market/markets_listing.html +++ b/templates/_types/market/markets_listing.html @@ -7,7 +7,7 @@ {% if markets %}
{% for m in markets %} -

{{ m.name }}

{% if m.description %}