clean templates

This commit is contained in:
TheThomaas 2024-02-04 22:50:28 +01:00
parent a7bb324de9
commit 9bf5ff1e92
8 changed files with 31 additions and 53 deletions

View file

@ -1,22 +0,0 @@
<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 author.socials %}
<ul class="list-inline">
{% for social in author.socials %}
<li><a href="{{ social.link }}" class="{{ social.icon }}" title="{{ social.title }}" target="_blank"></a></li>
{% endfor %}
</ul>
{% endif %}
</div>
</div>
</section>

View file

@ -0,0 +1,8 @@
<section id="{{ subpage.data.title | slug }}" class="{{ subpage.data.classes }} wrapper-full hero-section">
<div>
<h1 class="hero-title">{% if subpage.data.displayedTitle %}{{ subpage.data.displayedTitle }}{% else %}{{ subpage.data.title }}{% endif %}</h1>
<p>{{subpage.data.description}}</p>
{{ subpage.templateContent }}
{% include "partials/socials.liquid" %}
</div>
</section>

View file

@ -1,19 +0,0 @@
<!DOCTYPE html>
<html lang={{ site.lang }} class="no-js">
<head>
{% include "partials/metas.html" %}
</head>
<body>
{% include "partials/header.html" %}
<main tabindex="-1" id="main-content">
{% block content %}
{{ content }}
{% endblock %}
</main>
{% include "partials/footer.html" %}
<script src="/js/main.js"></script>
</body>
</html>

View file

@ -1,4 +1,4 @@
<section id="{{ subpage.data.title | slug }}" class="{{ subpage.data.classes }}">
<section id="{{ subpage.data.title | slug }}" class="{{ subpage.data.classes }} wrapper-full">
{% if subpage.data.img %}
<img src="{{subpage.data.img.src}}" alt="{{subpage.data.img.alt}}">
{% endif %}

View file

@ -2,7 +2,8 @@
{%- for experience in experiences -%}
<li>
<h3><time datetime="{{ experience.data.startDate }}">{{ experience.data.startDate }}</time><span>-</span><time datetime="{{ experience.data.endDate }}">{{ experience.data.endDate }}</time></h3>
<p>{{ experience.data.description }}, {{ experience.data.title }}</p>
<p><strong>{{ experience.data.title }}</strong>, {{ experience.data.location }}</p>
<p>{{ experience.data.description }}</p>
</li>
{%- endfor -%}
</ol>

View file

@ -1,8 +1,12 @@
<footer class="wrapper-full">
<div>
<ul class="list-inline">
<li>Built with <a href='https://11ty.dev/' target='_blank' rel='nofollow'>Eleventy</a></li>
{% if site.repository and site.repository != "" %}
<li>Source on <a href="{{site.repository}}" target="_blank" rel="nofollow">{{site.repoSrc}}</a></li>
{% endif %}
</ul>
{% include "partials/socials.liquid" %}
</div>
</footer>

View file

@ -0,0 +1,10 @@
<ul class="list-inline socials-list">
{% if author.socials %}
{% for social in author.socials %}
<li><a href="{{ social.link }}" class="{{ social.icon }}" title="{{ social.title }}" target="_blank"></a></li>
{% endfor %}
{% if author.mail %}
<li><a href="mailto:{{ author.mail }}" class="icon-mail" title="Send me an e-mail" target="_blank"></a></li>
{% endif %}
{% endif %}
</ul>

View file

@ -1,4 +0,0 @@
<section id="{{ subpage.data.title | slug }}" class="{{ subpage.data.classes }}">
<h1>{{ subpage.data.title }}</h1>
{{ subpage.templateContent }}
</section>