Create new data file

This commit is contained in:
TheThomaas 2024-01-27 07:37:23 +01:00
parent ad174007b2
commit cba8134261
7 changed files with 27 additions and 18 deletions

13
src/_data/author.json Normal file
View file

@ -0,0 +1,13 @@
{
"name": "Thomas",
"mail": "",
"phone": "",
"about": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio doloribus, iure eum nostrum error tempora facilis ea.",
"socials": [
{
"title": "My personal Github",
"icon": "icon-github",
"link": "https://github.com/TheThomaas"
}
]
}

View file

@ -1,16 +1,10 @@
module.exports = {
author: {
name: "Thomas",
mail: "",
about: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio doloribus, iure eum nostrum error tempora facilis ea."
},
socials: [
{ title: 'My personal Github', icon: 'icon-github', link: 'https://github.com/TheThomaas'},
],
buildTime: new Date(),
isProduction: process.env.NODE_ENV === 'production',
title: "TheThomaas",
description: "A blog built with Eleventy",
lang: "fr",
repository: "https://github.com/TheThomaas",
repoSrc: "Github",
url: "http://localhost:8080"
}

View file

@ -10,9 +10,9 @@
<h2>{{ subpage.data.title }}</h2>
{% endif %}
{{ subpage.templateContent }}
{% if site.socials %}
{% if author.socials %}
<ul class="list-inline">
{% for social in site.socials %}
{% for social in author.socials %}
<li><a href="{{ social.link }}" class="{{ social.icon }}" title="{{ social.title }}" target="_blank"></a></li>
{% endfor %}
</ul>

View file

@ -12,7 +12,7 @@
{% endblock %}
</main>
{% include "partials/footer.html" %}
{% include "partials/footer.liquid" %}
<script src="/js/main.js"></script>
</body>

View file

@ -1,6 +0,0 @@
<footer class="wrapper-full">
<ul class="list-inline">
<li>Built with <a href="https://11ty.dev/" target="_blank" rel="nofollow">Eleventy</a></li>
<li>Source on <a href="https://github.com/TheThomaas" target="_blank" rel="nofollow">Github</a></li>
</ul>
</footer>

View file

@ -0,0 +1,8 @@
<footer class="wrapper-full">
<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>
</footer>

View file

@ -1 +1 @@
<a href="#main-content" class="btn">Main content</a>
<a href="#main-content" class="btn">Skip to main content</a>