Compare commits

...

4 commits

Author SHA1 Message Date
TheThomaas 2b4b43b225 Rework front matter data 2023-09-13 23:07:34 +02:00
TheThomaas 42278e5338 Create about.liquid file 2023-09-13 23:07:22 +02:00
TheThomaas f10753a499 Add image from front matter 2023-09-13 23:07:09 +02:00
TheThomaas a3e9e978d6 Create settings.json 2023-09-13 23:06:34 +02:00
5 changed files with 51 additions and 4 deletions

22
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,22 @@
{
"workbench.colorCustomizations": {
"activityBar.activeBackground": "#968349",
"activityBar.background": "#968349",
"activityBar.foreground": "#15202b",
"activityBar.inactiveForeground": "#15202b99",
"activityBarBadge.background": "#94cbbd",
"activityBarBadge.foreground": "#15202b",
"commandCenter.border": "#e7e7e799",
"sash.hoverBorder": "#968349",
"statusBar.background": "#746538",
"statusBar.foreground": "#e7e7e7",
"statusBarItem.hoverBackground": "#968349",
"statusBarItem.remoteBackground": "#746538",
"statusBarItem.remoteForeground": "#e7e7e7",
"titleBar.activeBackground": "#746538",
"titleBar.activeForeground": "#e7e7e7",
"titleBar.inactiveBackground": "#74653899",
"titleBar.inactiveForeground": "#e7e7e799"
},
"peacock.color": "#746538"
}

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

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

View file

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

View file

@ -2,9 +2,12 @@
title: About me title: About me
pageOrderId: 1 pageOrderId: 1
classes: 'wrapper about-section' classes: 'wrapper about-section'
img: test.jpg sectionType: 'about'
img:
src: https://placehold.co/400
alt: This is a placeholder
socials: socials:
github: https://github.com github: https://github.com
--- ---
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Velit culpa dignissimos laborum, dolor voluptatem perspiciatis earum placeat modi minus officia perferendis rerum alias maiores deleniti et quia provident quo doloribus.</p> <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Velit culpa dignissimos laborum, dolor voluptatem perspiciatis earum placeat modi minus officia perferendis rerum alias maiores deleniti et quia provident quo doloribus.</p>