From 8f27e4fee2bff7201667fb3c90da657755c92c34 Mon Sep 17 00:00:00 2001
From: alexanderdavide <alexeble1998@gmail.com>
Date: Thu, 10 Feb 2022 21:37:48 +0000
Subject: [PATCH] refactor: sidebar

---
 layouts/partials/sidebar.html |   44 +++++++++++++++++++++++---------------------
 1 files changed, 23 insertions(+), 21 deletions(-)

diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index 9bf8c2c..4c3271a 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -1,30 +1,32 @@
-<div
-  class="sidebar{{ with .Site.Params.doNotLoadAnimations }}
-    .
+<aside class="sidebar-wrapper">
+  <div
+    class="sidebar{{ with .Site.Params.doNotLoadAnimations }}
+      .
 
-  {{ else }}
-    animated fadeInDown
+    {{ else }}
+      animated fadeInDown
 
-  {{ end }}"
->
-  <div class="sidebar__content">
-    <div class="sidebar__title">
+    {{ end }}"
+  >
+    <div class="sidebar__content">
+      <div class="sidebar__title">
         <img src="{{ .Site.Params.profilePicture | relURL }}" alt="profile picture" />
         <h3 title=""><a href="{{ .Site.BaseURL | relLangURL }}">{{ .Site.Params.Title }}</a></h3>
         <div class="sidebar__title-description">
           <p>{{ replace .Site.Params.description "\n" "<br />" | safeHTML }}</p>
         </div>
-    </div>
-    <ul class="sidebar__list">
-      {{ range $item := .Site.Params.socialIcons }}
-        <li class="sidebar__list-item">
-          <a href="{{ $item.url }}" rel="me" aria-label="{{ $item.title }}" title="{{ $item.title }}">
-            <i class="{{ $item.icon }} fa-2x" aria-hidden="true"></i>
-          </a>
-        </li>
+      </div>
+      <ul class="sidebar__list">
+        {{ range $item := .Site.Params.socialIcons }}
+          <li class="sidebar__list-item">
+            <a href="{{ $item.url }}" rel="me" aria-label="{{ $item.title }}" title="{{ $item.title }}">
+              <i class="{{ $item.icon }} fa-2x" aria-hidden="true"></i>
+            </a>
+          </li>
 
-      {{ end }}
-    </ul>
+        {{ end }}
+      </ul>
+    </div>
+    {{- partial "footer.html" (dict "context" . "footerClassModifier" "sidebar") -}}
   </div>
-  {{- partial "footer.html" (dict "context" . "footerClassModifier" "sidebar") -}}
-</div>
+</aside>

--
Gitblit v1.10.0