Create about.liquid file
This commit is contained in:
parent
f10753a499
commit
42278e5338
18
src/_includes/about.liquid
Normal file
18
src/_includes/about.liquid
Normal 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>
|
||||
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue