From dd469d317fb3343535de5a9ac84ac459a6c90228 Mon Sep 17 00:00:00 2001 From: Hammy <58985301+sgoudham@users.noreply.github.com> Date: Fri, 8 Nov 2024 18:56:03 +0000 Subject: [PATCH] chore(samples): add `liquid.liquid` (#2599) --- samples/liquid.liquid | 51 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 samples/liquid.liquid diff --git a/samples/liquid.liquid b/samples/liquid.liquid new file mode 100644 index 0000000..00f6684 --- /dev/null +++ b/samples/liquid.liquid @@ -0,0 +1,51 @@ +
+
+

{{ article.title }}

+ + {%- if section.settings.blog_show_author -%} + By {{ article.author }} + {%- endif -%} + + {%- if section.settings.blog_show_date -%} + + {{ article.published_at | time_tag: format: 'month_day_year' }} + + {%- endif -%} +
+ + {{ article.content }} + + {%- if article.tags.size > 0 -%} + + {%- endif -%} +
+ +{% schema %} +{ + "name": "Posts", + "settings": [ + { + "type": "checkbox", + "id": "blog_show_author", + "label": "Show author", + "default": true + }, + { + "type": "checkbox", + "id": "blog_show_date", + "label": "Show date", + "default": true + } + ] +} +{% endschema %}