clean templates
This commit is contained in:
parent
a7bb324de9
commit
9bf5ff1e92
|
|
@ -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>
|
||||
8
src/_includes/hero.liquid
Normal file
8
src/_includes/hero.liquid
Normal 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>
|
||||
|
|
@ -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>
|
||||
|
|
@ -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 %}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
@ -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>
|
||||
10
src/_includes/partials/socials.liquid
Normal file
10
src/_includes/partials/socials.liquid
Normal 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>
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
<section id="{{ subpage.data.title | slug }}" class="{{ subpage.data.classes }}">
|
||||
<h1>{{ subpage.data.title }}</h1>
|
||||
{{ subpage.templateContent }}
|
||||
</section>
|
||||
Loading…
Reference in a new issue