Add new Features:

- Block Alignments
- Tables
- Media with Links
- Block Sizes
This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2021-12-28 19:43:39 +01:00
parent 83febcfc79
commit 6adf42d457
20 changed files with 263 additions and 27 deletions
+2 -1
View File
@@ -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 %}
+4 -1
View File
@@ -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>
+1 -1
View File
@@ -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 %}
+1 -1
View File
@@ -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 %}
+1 -1
View File
@@ -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 %}
+1 -1
View File
@@ -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 %}
+7 -1
View File
@@ -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 %}
+2 -2
View File
@@ -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 %}
+7
View File
@@ -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 %}
+2 -1
View File
@@ -6,7 +6,8 @@
</span>
{% if include.permalink != "/" and include.permalink != "/index.html" %}
&raquo;
{% 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">