<div class="filter ml-5">
    <div>
        <h5>Type</h5>
        <div>
            <input id="video" type="checkbox" name="resource_filter" value="video">
            <label for="video">Video</label>
        </div>
        <div>
            <input id="article" type="checkbox" name="resource_filter" value="article">
            <label for="article">Article</label>
        </div>
    </div>
    <div class="mt-5">
        <h5>Year</h5>
        {{ $resources := $.Site.Data.resources.resources }}
        {{ $years := slice }}
        {{ range $resources }}
            {{ $years = $years | append (time.Format "2006" .date) }}
            {{ $years = uniq $years }}
        {{ end }}
        {{ range $years }}
        {{ $year := . }}
         <div>
            <input id="{{ . }}" type="checkbox" name="resource_filter" value="{{ . }}">
            <label for="{{ . }}">{{ . }}</label>
        </div>
        {{ end }}
    </div>
</div>