mirror of
https://github.com/catppuccin/catppuccin
synced 2024-11-21 11:03:05 +00:00
chore(samples): add liquid.liquid
(#2599)
This commit is contained in:
parent
95aae3360e
commit
dd469d317f
1 changed files with 51 additions and 0 deletions
51
samples/liquid.liquid
Normal file
51
samples/liquid.liquid
Normal file
|
@ -0,0 +1,51 @@
|
|||
<article>
|
||||
<header>
|
||||
<h1>{{ article.title }}</h1>
|
||||
|
||||
{%- if section.settings.blog_show_author -%}
|
||||
<span> By {{ article.author }} </span>
|
||||
{%- endif -%}
|
||||
|
||||
{%- if section.settings.blog_show_date -%}
|
||||
<span>
|
||||
{{ article.published_at | time_tag: format: 'month_day_year' }}
|
||||
</span>
|
||||
{%- endif -%}
|
||||
</header>
|
||||
|
||||
{{ article.content }}
|
||||
|
||||
{%- if article.tags.size > 0 -%}
|
||||
<footer>
|
||||
<ul aria-label="Tags">
|
||||
{%- for tag in article.tags -%}
|
||||
<li>
|
||||
<a href="{{ blog.url }}/tagged/{{ tag | handle }}">
|
||||
{{ tag }}
|
||||
</a>
|
||||
</li>
|
||||
{%- endfor -%}
|
||||
</ul>
|
||||
</footer>
|
||||
{%- endif -%}
|
||||
</article>
|
||||
|
||||
{% 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 %}
|
Loading…
Reference in a new issue