forked from Shopify/dawn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update from Shopify for theme New Theme Who Dis?
Committed from shop: Misha & Puff
- Loading branch information
1 parent
058b7dd
commit abff8dc
Showing
5 changed files
with
94 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{% comment %} | ||
Auto-generated by Shogun. | ||
This file can be re-written at any time. | ||
{% endcomment %} | ||
|
||
{% assign template_suffix = template.suffix %} | ||
|
||
{% if article %} | ||
{% assign content = article %} | ||
{% elsif page %} | ||
{% assign content = page %} | ||
{% elsif product %} | ||
{% assign content = product %} | ||
{% elsif collection %} | ||
{% assign content = collection %} | ||
|
||
{% endif %} | ||
|
||
{% capture content_for_header %} | ||
{{ content_for_header }} | ||
{% render 'shogun-products', content: content %} | ||
{% endcapture %} | ||
|
||
{% if content.metafields.shogun.json_template_snippets %} | ||
{% capture content_for_header %} | ||
{{ content_for_header }} | ||
{{ content.metafields.shogun.json_template_snippets.value['head'][template_suffix] }} | ||
{% endcapture %} | ||
|
||
{% capture content_for_body %} | ||
{{ content_for_layout }} | ||
{{ content.metafields.shogun.json_template_snippets.value['body'][template_suffix] }} | ||
{% endcapture %} | ||
{% endif %} | ||
|
||
{% if content.metafields.shogun.json_template_html_wrapper %} | ||
{% assign json_template_config = content.metafields.shogun.json_template_html_wrapper.value %} | ||
{% capture content_for_layout %} | ||
{{ | ||
json_template_config.html | ||
| replace: json_template_config.content_for_layout_placeholder, content_for_layout | ||
| replace: json_template_config.page_variant_id_placeholder, json_template_config.template_suffix_to_variant_id_map[template_suffix] | ||
}} | ||
{% endcapture %} | ||
{% endif %} | ||
|
||
{% if content.metafields.shogun.json_template_optimizer %} | ||
{% capture content_for_header %} | ||
<template id="shogun-variant-head"> | ||
{{ content_for_header }} | ||
</template> | ||
{{ content.metafields.shogun.json_template_optimizer.value['head'] }} | ||
{% endcapture %} | ||
|
||
{% capture content_for_layout %} | ||
<template id="shogun-variant-body"> | ||
{{ content_for_layout }} | ||
</template> | ||
{{ content.metafields.shogun.json_template_optimizer.value['body'] }} | ||
{% endcapture %} | ||
{% endif %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{% comment %} | ||
Auto-generated by Shogun. | ||
This file can be re-written at any time. | ||
{% endcomment %} | ||
|
||
{% if product and product.metafields.shogun.head %} | ||
{{product.metafields.shogun.head}} | ||
Check notice on line 7 in snippets/shogun-head.liquid GitHub Actions / Theme Check Reportsnippets/shogun-head.liquid#L7
|
||
{% endif %} | ||
|
||
{% if collection and collection.metafields.shogun.head %} | ||
{{collection.metafields.shogun.head}} | ||
Check notice on line 11 in snippets/shogun-head.liquid GitHub Actions / Theme Check Reportsnippets/shogun-head.liquid#L11
|
||
{% endif %} | ||
|
||
{% if page and page.metafields.shogun.head %} | ||
{{page.metafields.shogun.head}} | ||
Check notice on line 15 in snippets/shogun-head.liquid GitHub Actions / Theme Check Reportsnippets/shogun-head.liquid#L15
|
||
{% endif %} | ||
|
||
{% if article and article.metafields.shogun.head %} | ||
{{article.metafields.shogun.head}} | ||
Check notice on line 19 in snippets/shogun-head.liquid GitHub Actions / Theme Check Reportsnippets/shogun-head.liquid#L19
|
||
{% endif %} | ||
|