Debut de test pour afficher la liste des tisseurs

This commit is contained in:
Mickael 2019-05-11 21:14:50 +02:00
parent e71ccd9305
commit 6904758ebd
4 changed files with 28 additions and 4 deletions

View file

@ -64,6 +64,11 @@ pygmentCodeFences = true
url = "/code_honneur/"
weight = 2
[[menu.main]]
name = "Tisseurs"
url = "/tisseurs/"
weight = 2
# [[menu.main]]
# identifier = "tutos"
# name = "Tutos"

View file

@ -2,6 +2,6 @@
nom: 12b
github: Lab-8916100448256
gitlab: lab.8916100448256
crapaud-fou: 12b
crapaudfou: 12b
youtube: Lab 8916100448256
instagram: farm.8916100448256

View file

@ -2,4 +2,4 @@
nom: mckmonster
github: mckmonster
gitlab: mckmonster
crapaud-fou: trenty
crapaudfou: trenty

View file

@ -2,9 +2,28 @@
<div role="main" class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
{{ with .Content }}
{{ range $tisseur := .Site.Data.tisseurs }}
<div class="well">
{{.}}
<div>{{ $tisseur.nom }}</div>
<ul class="list-inline">
{{ range $social := $.Site.Data.beautifulhugo.social.social_icons }}
{{- if isset $tisseur $social.id }}
<li>
<a href="{{ printf .url (index $tisseur $social.id) }}" title="{{ .title }}">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="{{ .icon }} fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
{{- end -}}
{{ end }}
{{ if .crapaudfou }}
<li>
<a href="https://coa.crapaud-fou.org/direct/{{ .crapaudfou }}">crapaud-fou</a>
</li>
{{ end }}
</ul>
</div>
{{ end }}
</div>