Last active
April 29, 2025 10:25
-
-
Save luukee/0d7729db11fa1e9d6c9d544dd6431b8d to your computer and use it in GitHub Desktop.
Revisions
-
luukee revised this gist
Apr 29, 2025 . 1 changed file with 10 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ {% comment %} Description: Snippet to dump the content of an object in the console Usage: {% render 'dump' with [OBJECT] %} {% endcomment %} <script type="text/javascript"> console.log({{ dump | json }}); </script> -
luukee revised this gist
Apr 29, 2025 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ {% comment %} Description: Snippet to dump the metafields of an objectt in the console Usage: {% render 'dump-metafields' with article.metafields.blog.sections %} or -
luukee revised this gist
Apr 29, 2025 . 1 changed file with 7 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,12 @@ {% comment %} Description: Snippet to dump the metafields of an object Usage: {% render 'dump-metafields' with article.metafields.blog.sections %} or {% render 'dump-metafields' with article.metafields.custom.sections %} {% endcomment %} <script type="text/javascript"> console.log('Metafields Data:', {{ dump-metafields | map: "value" | json }}); </script> -
luukee created this gist
Apr 29, 2025 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ {% comment %} Description: Snippet to dump the metafields of an object Usage: {% render 'dump-metafields' with article.metafields.blog.sections %} or {% render 'dump-metafields' with article.metafields.custom.sections %} {% endcomment %} <script type="text/javascript"> console.log('Metafields Data:', {{ dump-metafields | map: "value" | json }}); </script>