<section class="col s12 m3 l3 text-center blogsidebar">
  {{ if isset .Site.Taxonomies "tags" }}
  {{ if not (eq (len .Site.Taxonomies.tags) 0) }}
    <div class="tags">
    <h4 class="text-center">{{ i18n "tags" }}</h4>
    <small>
      {{ $current_path := .RelPermalink}}
      {{ range $name, $item := .Site.Taxonomies.tags }}
          {{ $pagepath := $name | urlize | lower | printf "%s%s" "/tags/"}}
          
          {{ $p := $.Site.GetPage $pagepath}}
          {{ $path := $p.RelPermalink }}
  
          {{ if eq $current_path $path }}
              {{ $p.Title }}
          {{ else }}
              <a href="{{ $path }}">{{ $p.Title }}</a>
          {{ end }}
      {{ end }}
    </small>
    </div>
  {{ end }}
  {{ end }}


  {{ $projects := first 4 ((where .Site.RegularPages "Type" "blog").ByParam "LastmodDate") }}
  {{ with $projects }}
  <div class="row articles" >
  <h4 class="text-center">{{ i18n "latest_articles" }}</h4>
  {{ range . }}

  <div class="col s12 m12 l12 article" style="text-align: center">
  {{ partial "widgets/article.html" . }}
  </div>
  
  {{ end }}
  </div>
  {{ end }}

</section>