-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT] script-tags for pages #103
Labels
enhancement
New feature or request
Comments
@hayes0724 https://shopify.dev/docs/themes/liquid/reference/objects/request if request.page_type == 'page' will be more consistent than: if template == 'page' because we have templates sometimes named with page.section-my-stuff |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, Eric.
Thank you for your great tool!
We have a lot of pages (page.sections* etc), but in dist/snippets/script-tags it is only a single page script including allowed:
{%- if template == 'page' -%}
Maybe it will be creat if you can change it to something like {%- if template contains 'page' -%} for make possible to have just a single script for all pages.
The text was updated successfully, but these errors were encountered: