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