CHANGE section design to be more dynamic

This commit is contained in:
Hoernschen 2022-03-19 23:54:55 +01:00
parent 6032aebe80
commit 7239b2c45e
No known key found for this signature in database
GPG key ID: 8B027F540E7DBD58
14 changed files with 90 additions and 83 deletions

View file

@ -1,9 +1,7 @@
{{- $team := .Site.Params.team }}
{{- $team := .team }}
{{ $length := len $team.members }}
{{- $services := .Site.Params.services }}
{{ $servicesLength := len $services }}
{{ $odd := mod $servicesLength 2}}
<div id="team" class="section {{if eq $odd 0}} section-even {{end}}">
{{- $odd := .odd }}
<div id="{{ $team.id }}" class="section {{if eq $odd 0}} section-even {{end}}">
<div class="section-content team">
<div class="title">
<h1 class="content-title">{{ $team.title }}</h1>