Create new data file
This commit is contained in:
parent
ad174007b2
commit
cba8134261
13
src/_data/author.json
Normal file
13
src/_data/author.json
Normal 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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -1,16 +1,10 @@
|
||||||
module.exports = {
|
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(),
|
buildTime: new Date(),
|
||||||
isProduction: process.env.NODE_ENV === 'production',
|
isProduction: process.env.NODE_ENV === 'production',
|
||||||
title: "TheThomaas",
|
title: "TheThomaas",
|
||||||
description: "A blog built with Eleventy",
|
description: "A blog built with Eleventy",
|
||||||
lang: "fr",
|
lang: "fr",
|
||||||
|
repository: "https://github.com/TheThomaas",
|
||||||
|
repoSrc: "Github",
|
||||||
url: "http://localhost:8080"
|
url: "http://localhost:8080"
|
||||||
}
|
}
|
||||||
|
|
@ -10,9 +10,9 @@
|
||||||
<h2>{{ subpage.data.title }}</h2>
|
<h2>{{ subpage.data.title }}</h2>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ subpage.templateContent }}
|
{{ subpage.templateContent }}
|
||||||
{% if site.socials %}
|
{% if author.socials %}
|
||||||
<ul class="list-inline">
|
<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>
|
<li><a href="{{ social.link }}" class="{{ social.icon }}" title="{{ social.title }}" target="_blank"></a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
{% include "partials/footer.html" %}
|
{% include "partials/footer.liquid" %}
|
||||||
|
|
||||||
<script src="/js/main.js"></script>
|
<script src="/js/main.js"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
||||||
|
|
@ -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>
|
|
||||||
8
src/_includes/partials/footer.liquid
Normal file
8
src/_includes/partials/footer.liquid
Normal 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>
|
||||||
|
|
@ -1 +1 @@
|
||||||
<a href="#main-content" class="btn">Main content</a>
|
<a href="#main-content" class="btn">Skip to main content</a>
|
||||||
Loading…
Reference in a new issue