Updated socials system to be more dynamic
This commit is contained in:
parent
8c7ca4d909
commit
ad174007b2
|
|
@ -4,9 +4,9 @@ module.exports = {
|
||||||
mail: "",
|
mail: "",
|
||||||
about: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio doloribus, iure eum nostrum error tempora facilis ea."
|
about: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Distinctio doloribus, iure eum nostrum error tempora facilis ea."
|
||||||
},
|
},
|
||||||
socials: {
|
socials: [
|
||||||
github: "https://github.com/TheThomaas"
|
{ 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",
|
||||||
|
|
|
||||||
|
|
@ -10,13 +10,11 @@
|
||||||
<h2>{{ subpage.data.title }}</h2>
|
<h2>{{ subpage.data.title }}</h2>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ subpage.templateContent }}
|
{{ subpage.templateContent }}
|
||||||
{% if subpage.data.socials %}
|
{% if site.socials %}
|
||||||
<ul class="list-inline">
|
<ul class="list-inline">
|
||||||
{% if subpage.data.socials.github %}
|
{% for social in site.socials %}
|
||||||
<li>
|
<li><a href="{{ social.link }}" class="{{ social.icon }}" title="{{ social.title }}" target="_blank"></a></li>
|
||||||
<a href="{{subpage.data.socials.github}}" class="icon-github" title="Github"></a>
|
{% endfor %}
|
||||||
</li>
|
|
||||||
{% endif %}
|
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,9 @@
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<span></span>
|
<span></span>
|
||||||
<div class="links">
|
<div class="links">
|
||||||
{% if project.data.website.link %}
|
{%- for link in project.data.links -%}
|
||||||
<a href="{{ project.data.website.link }}" target="_blank" title="{{ project.data.website.title }}" class="icon-internet"></a>
|
<a href="{{ link.link }}" target="_blank" title="{{ link.title }}" class="{{ link.icon }}"></a>
|
||||||
{% endif %}
|
{%- endfor -%}
|
||||||
{% if project.data.github.link %}
|
|
||||||
<a href="{{ project.data.github.link }}" target="_blank" title="{{ project.data.github.title }}" class="icon-github"></a>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,6 @@ sectionType: 'about'
|
||||||
img:
|
img:
|
||||||
src: https://placehold.co/400
|
src: https://placehold.co/400
|
||||||
alt: This is a placeholder
|
alt: This is a placeholder
|
||||||
socials:
|
|
||||||
github: https://github.com
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<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>
|
<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>
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
---
|
---
|
||||||
title: Cancre Simulator
|
title: Cancre Simulator
|
||||||
description: Un jeu fait pour les Portes Ouvertes 2020
|
description: Un jeu fait pour les Portes Ouvertes 2020
|
||||||
github:
|
links:
|
||||||
title: Voir sur Github
|
- title: Voir sur Github
|
||||||
link: https://github.com
|
link: https://github.com
|
||||||
|
icon: icon-github
|
||||||
---
|
---
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
---
|
---
|
||||||
title: Qui est-ce ?
|
title: Qui est-ce ?
|
||||||
description: Un "Qui est-ce ?" fait en Python et avec des LEGO Mindstorms
|
description: Un "Qui est-ce ?" fait en Python et avec des LEGO Mindstorms
|
||||||
github:
|
links:
|
||||||
title: Voir sur Github
|
- title: Voir sur Github
|
||||||
link: https://github.com
|
link: https://github.com
|
||||||
|
icon: icon-github
|
||||||
---
|
---
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
---
|
---
|
||||||
title: LDAP
|
title: LDAP
|
||||||
description: Ajouter, voir et se connecter à des utilisateurs LDAP depuis un site
|
description: Ajouter, voir et se connecter à des utilisateurs LDAP depuis un site
|
||||||
github:
|
links:
|
||||||
title: Voir sur Github
|
- title: Voir le site
|
||||||
link: https://github.com
|
link: https://google.com
|
||||||
website:
|
icon: icon-internet
|
||||||
title: Voir sur Github
|
- title: Voir sur Github
|
||||||
link: https://github.com
|
link: https://github.com
|
||||||
|
icon: icon-github
|
||||||
---
|
---
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
---
|
---
|
||||||
title: Sigfox Temperature
|
title: Sigfox Temperature
|
||||||
description: Des capteurs de température affichés sur un tableau de bord
|
description: Des capteurs de température affichés sur un tableau de bord
|
||||||
github:
|
links:
|
||||||
title: Voir sur Github
|
- title: Voir le site
|
||||||
link: https://github.com
|
|
||||||
website:
|
|
||||||
title: Voir le site
|
|
||||||
link: https://google.com
|
link: https://google.com
|
||||||
|
icon: icon-internet
|
||||||
|
- title: Voir sur Github
|
||||||
|
link: https://github.com
|
||||||
|
icon: icon-github
|
||||||
---
|
---
|
||||||
|
|
@ -2,7 +2,8 @@
|
||||||
title: Snake
|
title: Snake
|
||||||
description: Un snake réalisé en Java
|
description: Un snake réalisé en Java
|
||||||
background: rgb(255, 143, 143)
|
background: rgb(255, 143, 143)
|
||||||
github:
|
links:
|
||||||
title: Voir le site
|
- title: Voir sur Github
|
||||||
link: https://google.com
|
link: https://github.com
|
||||||
|
icon: icon-github
|
||||||
---
|
---
|
||||||
Loading…
Reference in a new issue