Create about.liquid file

This commit is contained in:
TheThomaas 2023-09-13 23:07:22 +02:00
parent f10753a499
commit 42278e5338
2 changed files with 23 additions and 1 deletions

View file

@ -0,0 +1,18 @@
<section id="{{ subpage.data.title | slug }}" class="{{ subpage.data.classes }}">
<div class="about">
{% if subpage.data.img %}
<div>
<img src="{{subpage.data.img.src}}" alt="{{subpage.data.img.alt}}">
</div>
{% endif %}
<div>
{% if subpage.data.showTitle != false %}
<h2>{{ subpage.data.title }}</h2>
{% endif %}
{{ subpage.templateContent }}
{% if subpage.data.socials %}
<strong>socials here</strong>
{% endif %}
</div>
</div>
</section>

View file

@ -9,7 +9,11 @@ permalink: /
{% if subpage.data.pageOrderId == 0 %}
{% include 'title.liquid' %}
{% else %}
{% include 'page.liquid' %}
{% if subpage.data.sectionType == 'about' %}
{% include 'about.liquid' %}
{% else %}
{% include 'page.liquid' %}
{% endif %}
{% endif %}
{% endif %}
{% endfor %}