[SOCIAL] Ajoute une liste de liens sociaux en bas de la front page

This commit is contained in:
Gregory Trolliet 2020-04-27 17:31:00 +02:00
parent 360f7ecd96
commit 3753f06161
18 changed files with 45 additions and 0 deletions

View file

@ -1,4 +1,5 @@
{{ define "main" }}
{{ partial "front.html" . }}
{{ partial "sections.html" . }}
{{ partial "social.html" . }}
{{ end }}

View file

@ -0,0 +1,14 @@
{{ if $.Site.Params.social }}
{{ $len := (len $.Site.Params.social) }}
{{ if gt $len 0 }}
<div id="social">
{{ range $network, $link := $.Site.Params.social }}
{{ if $link }}
<a href="{{ $link }}" alt="{{ $network }}">
<img class="social-icon" src="/svg/{{ $network }}.svg"/>
</a>
{{ end }}
{{ end }}
</div>
{{ end}}
{{ end }}