[SOCIAL] Ajoute une liste de liens sociaux en bas de la front page
This commit is contained in:
parent
360f7ecd96
commit
3753f06161
18 changed files with 45 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
{{ define "main" }}
|
||||
{{ partial "front.html" . }}
|
||||
{{ partial "sections.html" . }}
|
||||
{{ partial "social.html" . }}
|
||||
{{ end }}
|
||||
|
|
14
layouts/partials/social.html
Normal file
14
layouts/partials/social.html
Normal 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 }}
|
Loading…
Add table
Add a link
Reference in a new issue