From 335d0be3f02051a94d1dc05177aa8675a9b2f72a Mon Sep 17 00:00:00 2001 From: 3daddict Date: Mon, 8 Mar 2021 21:57:17 -0800 Subject: [PATCH 1/2] changed include to render on simple compnents, updated readme with SSL cheat --- config.yml.example | 2 ++ readme.md | 2 ++ src/components/layout/theme.liquid | 2 +- src/components/sections/header/header.liquid | 2 +- src/components/sections/product/product.liquid | 2 +- src/components/templates/collection.liquid | 4 ++-- src/components/templates/list-collections.liquid | 4 ++-- 7 files changed, 11 insertions(+), 7 deletions(-) diff --git a/config.yml.example b/config.yml.example index 8735cd5..6ab15de 100644 --- a/config.yml.example +++ b/config.yml.example @@ -9,6 +9,8 @@ development: store: storefront_api_key: directory: dist/ + # Note: when first deploying to a new theme you may have to comment out the ignore files. + # Then after first upload uncomment them. ignore_files: - config/settings_data.json - "*.js" diff --git a/readme.md b/readme.md index 75f0f88..144f6e5 100644 --- a/readme.md +++ b/readme.md @@ -77,6 +77,8 @@ This project uses [TailwindCSS](https://tailwindcss.com/) `v2` a utility-first C In the event that you find the HMR assets are not loading and the requests to localhost:9000 are 404 you will need to approve or pass a valid certificate. To solve this issue you can open a new browser window and approve the SSL Certificate or pass a valid certificate as mentioned here [devServer.https](https://webpack.js.org/configuration/dev-server/#devserverhttps). +**Note:** a quick fix with Chrome `chrome://flags/#allow-insecure-localhost` change to enable + ## HMR (Hot Module Reloading) When in development mode `yarn start` hot module reloading is enabled. It watches for changes to `JavaScript`, `CSS` and `Liquid` files. When JS or CSS is changes the browser will change without the need to refresh. When changes are made to liquid files a manual browser reload may be required. diff --git a/src/components/layout/theme.liquid b/src/components/layout/theme.liquid index b9bded0..3670e39 100644 --- a/src/components/layout/theme.liquid +++ b/src/components/layout/theme.liquid @@ -30,7 +30,7 @@ {%- comment -%}Varibles{%- endcomment -%} {{ content_for_header }} - {% include 'global-css' %} + {% render 'global-css' %} {{ 'tailwind.min.css' | asset_url | stylesheet_tag }} {{ 'bundle.global-css.css' | asset_url | stylesheet_tag }} diff --git a/src/components/sections/header/header.liquid b/src/components/sections/header/header.liquid index 91c183f..14c1a29 100644 --- a/src/components/sections/header/header.liquid +++ b/src/components/sections/header/header.liquid @@ -29,7 +29,7 @@ {%- for link in linklists[section.settings.menu].links -%} {%- if link.links != blank -%}
  • - {{ link.title }}{%- include 'icon-arrow-down' -%} + {{ link.title }}