Rework pages templates
This commit is contained in:
parent
8b2fb3095d
commit
2c9dd97216
|
|
@ -6,27 +6,10 @@ permalink: /
|
|||
|
||||
{% for subpage in collections.subpages %}
|
||||
{% if subpage.data.excludeFromList != true %}
|
||||
{% if subpage.data.pageOrderId == 0 %}
|
||||
{% include 'title.liquid' %}
|
||||
{% if subpage.data.template == 'hero' %}
|
||||
{% include 'hero.liquid' %}
|
||||
{% else %}
|
||||
{% if subpage.data.sectionType == 'about' %}
|
||||
{% include 'about.liquid' %}
|
||||
{% else %}
|
||||
{% include 'page.liquid' %}
|
||||
{% endif %}
|
||||
{% include 'page.liquid' %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
<!--{ % set postslist = collections.subpages % }-->
|
||||
<!--{ % include "partials/post-list.html" % }-->
|
||||
|
||||
<!-- hero -->
|
||||
|
||||
<!-- about -->
|
||||
|
||||
<!-- projects -->
|
||||
|
||||
<!-- experiences -->
|
||||
|
||||
<!-- download -->
|
||||
{% endfor %}
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
---
|
||||
title: About me
|
||||
pageOrderId: 1
|
||||
classes: 'wrapper about-section'
|
||||
sectionType: 'about'
|
||||
img:
|
||||
src: https://placehold.co/400
|
||||
alt: This is a placeholder
|
||||
---
|
||||
|
||||
<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>
|
||||
32
src/pages/subpages/competences.liquid
Normal file
32
src/pages/subpages/competences.liquid
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
---
|
||||
title: Compétences WIP
|
||||
order: 1
|
||||
showTitle: false
|
||||
classes: 'competences-section experiences-section'
|
||||
---
|
||||
|
||||
<div style="display: flex;flex-direction: row;gap:20rem;">
|
||||
<div>
|
||||
<h2>{{title}}</h2>
|
||||
<ul style="list-style-type: initial">
|
||||
<li>HTML</li>
|
||||
<li>CSS</li>
|
||||
<li>Bootstrap</li>
|
||||
<li>Javascript</li>
|
||||
<li>jQuery</li>
|
||||
<li>Eleventy</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h2>Langues</h2>
|
||||
<ul style="list-style-type: initial">
|
||||
<li>HTML</li>
|
||||
<li>CSS</li>
|
||||
<li>Bootstrap</li>
|
||||
<li>Javascript</li>
|
||||
<li>jQuery</li>
|
||||
<li>Eleventy</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
---
|
||||
title: Contact me
|
||||
pageOrderId: 5
|
||||
classes: 'wrapper-full contact-section'
|
||||
excludeFromNav: true
|
||||
excludeFromList: true
|
||||
---
|
||||
|
||||
<p>This is some "{{ title }}" content.</p>
|
||||
<p>Please don't</p>
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
---
|
||||
title: Download
|
||||
showTitle: false
|
||||
pageOrderId: 4
|
||||
classes: 'wrapper-full download-section'
|
||||
order: 4
|
||||
classes: 'download-section'
|
||||
---
|
||||
|
||||
<div class="flex-container column">
|
||||
<div class="flex-container justify-center">
|
||||
<p>You want to print this document ?</p>
|
||||
<i></i>
|
||||
<i>--></i>
|
||||
<button type="button" onclick="window.print()" class="btn icon--right icon-download">Download as PDF</button>
|
||||
</div>
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: Experiences
|
||||
pageOrderId: 3
|
||||
classes: 'wrapper-full experiences-section'
|
||||
order: 3
|
||||
classes: 'experiences-section'
|
||||
---
|
||||
|
||||
{% assign experiences = collections.experiences %}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,8 @@
|
|||
---
|
||||
title: Hi! I'm Thomas
|
||||
description: Welcome to my website
|
||||
pageOrderId: 0
|
||||
classes: 'wrapper-full hero-section'
|
||||
excludeFromNav: true
|
||||
excludeFromList: false
|
||||
---
|
||||
|
||||
<p>{{ description }}</p>
|
||||
title: About me
|
||||
order: 0
|
||||
template: 'hero'
|
||||
eleventyComputed:
|
||||
description: "{{ author.about }}"
|
||||
displayedTitle: "Moi c'est {{ author.name }}"
|
||||
---
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: Projects
|
||||
pageOrderId: 2
|
||||
classes: 'wrapper-full projects-section'
|
||||
order: 2
|
||||
classes: 'projects-section'
|
||||
---
|
||||
|
||||
{% assign projects = collections.projects %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue