<div class="col-lg-4"> <div class="widgets"> {{ $currentPage := . }} {{ $currentPageName := .Page.Name | urlize | lower }} {{ if or (eq $currentPage.Type "blog") (eq $currentPage.Section "tags") }} <!-- category <div class="widget"> <h4 class="widget-title">Category</h4> {{- if isset .Site.Taxonomies "categories" }} {{- if not (eq (len .Site.Taxonomies.categories) 0) }} <ul class="list-unstyled"> {{- range $name, $items := .Site.Taxonomies.categories }} <li><a href="{{ `categories/` | relLangURL }}{{ $name | urlize | lower }}/">{{ $name | title | humanize }}</a> </li> {{- end }} </ul> {{- end }} {{- end }} </div>--> <!-- Tags --> <div class="widget"> <h4 class="widget-title">{{ i18n "tags" }} </h4> {{- if isset .Site.Taxonomies "tags" }} {{- if not (eq (len .Site.Taxonomies.tags) 0) }} <ul class="list-inline"> {{- range $name, $items := .Site.Taxonomies.tags }} <span class="tag d-inline-block my-2"> <a {{ if eq $currentPageName $name }}class="active"{{ end }} href="{{ `tags/` | relLangURL }}{{ $name | urlize | lower }}/">{{ $name }}</a> </span> {{- end }} </ul> {{- end }} {{- end }} </div> {{ end }} <!-- about --> <div class="widget"> {{ with .Site.GetPage "/about" }} <h4 class="widget-title">{{ .Title | markdownify }}</h4> {{ if .Params.Image }} <img src="{{ .Params.Image | absURL }}" alt="" class="img-fluid author-thumb-sm d-block mx-auto rounded-circle mb-4"> {{ end }} <p>{{ .Summary }}</p> <a href="{{ .Permalink }}" class="btn btn-outline-primary">{{ i18n "readMore" }}</a> {{ end }} </div> <!-- social --> <div class="widget"> <h4 class="widget-title">{{ i18n "social" }}</h4> <ul class="list-inline social-links"> {{- range sort .Site.Params.social "weight" "asc" -}} <li class="list-inline-item"> <a aria-label="{{ .title }}" target="_blank" rel="noopener" href="{{ .link | safeURL }}"> <i class="{{ .icon }}"></i> </a> </li> {{- end -}} <li class="list-inline-item"> <a aria-label="rss" target="_blank" rel="noopener" href="{{ "/index.xml" | absLangURL }}"> <i class="fa-solid fa-rss"></i> </a> </li> </ul> </div> </div> </div>