<div class="col-md-3">
    <div class="well well-lg" align="center"> 
        <div class="list-group mb-2" >
            <span class="list-group-item active">HEL.L.U.G Meetups!</span>
            {{- $counter := 0 }}
            {{- range first 3 (index .Site.Taxonomies.draseis "meetups") }}
            {{- if .Params.meetupdate }}
            {{- $meetuptime := time .Params.meetupdate }}
            {{- $meetuptimeunix := add $meetuptime.Unix 86400 }}
            {{- if ge $meetuptimeunix now.Unix }}
            {{- $counter = add $counter 1 }}
            <a class="list-group-item" href="{{ .Permalink}}">
                <span class="label label-default">Nέο</span>
                {{ dateFormat "02/01/2006" $meetuptime }} - {{ .Params.meetuplocation }}
            </a>
            {{- end }}
            {{- end }}
            {{- end }}
            {{- if eq $counter 0 }}
            <a class="list-group-item">Δεν υπάρχουν</a>
            {{- end }}
        </div>
        <div class="list-group mb-4">
            <span class="list-group-item active"> Εκδηλώσεις </span>
            {{- $counter = 0 }}
            {{- $newlimit := (sub now.Unix 604800 ) }}
            {{- range first 5 (index .Site.Taxonomies.draseis "event") }}
            {{- if .Params.eventdate }}
            {{- $eventtime := time .Params.eventdate }}
            {{- if ge $eventtime.Unix now.Unix }}
            {{- $counter = add $counter 1 }}
            <a class="list-group-item" href="{{ .Permalink }}">
                {{- if lt .Date.Unix $newlimit }}
                <span class="label label-default">Nέο</span>
                {{- end }}
                {{- dateFormat "02/01/2006" $eventtime }} - {{ .Title }}
            </a>
            {{- end }}
            {{- end }}
            {{- end }}
            {{- if eq $counter 0 }}
            <a class="list-group-item">Δεν υπάρχουν</a>
            {{ end }}
        </div>
        <div class="list-group mb-2">
            <div class="list-group-item active">
                <h6>HEL.L.U.G. Sites</h6>
            </div>

        
                    {{- range .Site.Data.sidebar.links.hellug }}
                    <div class="list-group-item">
                    <a class="dropdown-item" href={{ .url }}>{{ .name }}</a>
                    </div>
                    {{- end }}

        </div>
        <div class="card card-info">
            <div class="card-header">
                <h4 class="card-title">Ακολουθήστε τον HEL.L.U.G.</h4>
            </div>
            <div class="card-body" align="left">
                <div class="btn-group flex-wrap">
                    <a href="https://mastodon.social/@hellug/"><button type="button" class="btn btn-default" style="padding-top:1px; padding-bottom:1px;margin-bottom:4px;"><img alt="" src="/media/Mastodon.png">Mastodon</button></a>
                    <a href="https://twitter.com/hellug"><button type="button" class="btn btn-default" style="padding-top:1px; padding-bottom:1px; margin-bottom:4px;"><img alt="" src="/media/Twitter.png">Twitter</button></a>
                    <a href="http://www.linkedin.com/groups/HELLUG-108292/about"><button type="button" class="btn btn-default" style="padding-top:1px; padding-bottom:1px; margin-bottom:4px;"><img alt="" src="/media/LinkedIn.png">LinkedIn</button></a>
                    <a href="https://www.facebook.com/groups/hellug/"><button type="button" class="btn btn-default" style="padding-top:1px; padding-bottom:1px;margin-bottom:4px;"><img alt="" src="/media/Facebook.png">Facebook</button></a>
                    <a href="https://www.hellug.gr/index.xml"><button type="button" class="btn btn-default" style="padding-top:1px; padding-bottom:1px; margin-bottom:4px;"><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="currentColor" class="bi bi-rss" viewBox="0 0 16 16"><path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"/><path d="M5.5 12a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m-3-8.5a1 1 0 0 1 1-1c5.523 0 10 4.477 10 10a1 1 0 1 1-2 0 8 8 0 0 0-8-8 1 1 0 0 1-1-1m0 4a1 1 0 0 1 1-1 6 6 0 0 1 6 6 1 1 0 1 1-2 0 4 4 0 0 0-4-4 1 1 0 0 1-1-1"/></svg>RSS</button></a>
                </div>
            </div>
        </div>
    </div>
</div>

