Add new Features:
- Block Alignments - Tables - Media with Links - Block Sizes
This commit is contained in:
@@ -26,7 +26,8 @@
|
||||
{% if site.xaymar.meta.timestamp.enabled and include.timestamp %}
|
||||
{% assign has_meta_timestamp=true %}
|
||||
{% endif %}
|
||||
{% if site.xaymar.meta.tags.enabled and include.tags != nil %}
|
||||
{% assign cnt=include.tags | size %}
|
||||
{% if site.xaymar.meta.tags.enabled and include.tags != nil and cnt > 0 %}
|
||||
{% assign has_meta_tags=true %}
|
||||
{% endif %}
|
||||
{% if site.xaymar.meta.enabled and has_meta_permalink or has_meta_tags or has_meta_date %}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
<div class="block block-{{ include.type }} {% if include.float %}float float-{{ include.float }}{% elsif include.float == "clear" %}float-clear{% endif %}">
|
||||
<div class="block block-{{ include.type }}
|
||||
{% if include.float %}float float-{{ include.float }}{% elsif include.float == "clear" %}float-clear{% endif %}
|
||||
{% if include.align %}align-{{ include.align }}{% endif %}" style="
|
||||
{% if include.width %}width: {{ include.width }};{% endif %}">
|
||||
{{ include.content }}
|
||||
</div>
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
{{ include.content }}
|
||||
</div>
|
||||
{% endcapture %}
|
||||
{% include blocks/_base.liquid type="column" content=content float=include.float %}
|
||||
{% include blocks/_base.liquid type="column" content=content float=include.float align=include.align width=include.width %}
|
||||
|
||||
@@ -6,4 +6,4 @@ style="{% if include.columns %}grid-template-columns: repeat({{ include.columns
|
||||
{{ include.content }}
|
||||
</div>
|
||||
{% endcapture %}
|
||||
{% include blocks/_base.liquid type="columns" content=content float=include.float %}
|
||||
{% include blocks/_base.liquid type="columns" content=content float=include.float align=include.align %}
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
{{ include.content }}
|
||||
</h{{ include.level | default: 1}}>
|
||||
{% endcapture %}
|
||||
{% include blocks/_base.liquid type="heading" content=content float=include.float %}
|
||||
{% include blocks/_base.liquid type="heading" content=content float=include.float align=include.align %}
|
||||
|
||||
@@ -11,4 +11,4 @@
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endcapture %}
|
||||
{% include blocks/_base.liquid type="list" content=content float=include.float %}
|
||||
{% include blocks/_base.liquid type="list" content=content float=include.float align=include.align %}
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
{% capture content %}
|
||||
{% if include.link %}
|
||||
<a href="{{ include.link }}" {% if include.caption %}alt="{{ include.caption }}"{% endif %}>
|
||||
{% endif %}
|
||||
{% if include.type == "image" %}
|
||||
<picture
|
||||
src="{{ include.url | absolute_url }}"
|
||||
@@ -33,8 +36,11 @@
|
||||
<source src="{{ include.url | absolute_url }}">
|
||||
</audio>
|
||||
{% endif %}
|
||||
{% if include.link %}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if include.caption %}
|
||||
<figcaption>{{ include.caption }}</figcaption>
|
||||
{% endif %}
|
||||
{% endcapture %}
|
||||
{% include blocks/_base.liquid type="media" content=content float=include.float %}
|
||||
{% include blocks/_base.liquid type="media" content=content float=include.float align=include.align %}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{% capture content %}
|
||||
<p class="content {% if include.align %}{{ include.align }}{% endif %}">
|
||||
<p class="content">
|
||||
{{ include.content }}
|
||||
</p>
|
||||
{% endcapture %}
|
||||
{% include blocks/_base.liquid type="paragraph" content=content float=include.float %}
|
||||
{% include blocks/_base.liquid type="paragraph" content=content float=include.float align=include.align %}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
{% capture content %}
|
||||
<table class="content">
|
||||
{{ include.content }}
|
||||
</table>
|
||||
{% if include.caption %}<figcaption>{{ include.caption }}</figcaption>{% endif %}
|
||||
{% endcapture %}
|
||||
{% include blocks/_base.liquid type="table" content=content float=include.float align=include.align %}
|
||||
@@ -6,7 +6,8 @@
|
||||
</span>
|
||||
{% if include.permalink != "/" and include.permalink != "/index.html" %}
|
||||
»
|
||||
{% if page.categories %}
|
||||
{% assign cnt=page.categories | size %}
|
||||
{% if cnt > 0 %}
|
||||
{% for entry in page.categories %}
|
||||
{% assign category=entry | slugify: site.xaymar.links.category.slugify %}
|
||||
<span class="crumb">
|
||||
|
||||
Reference in New Issue
Block a user