From 502803a8d4e74232d2a52ccd3a3b834cc8049488 Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Mon, 23 Jan 2023 16:22:31 +0000
Subject: [PATCH] refactor template

---
 layouts/_default/single.html                  |    2 +-
 layouts/partials/functions/getCodeConfig.html |    2 +-
 layouts/partials/sidebar.html                 |    2 +-
 layouts/partials/sprites.html                 |    4 ++--
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 5fe6602..d300530 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,7 +1,7 @@
 {{- define "main" }}
 <div class="content">
 	<h1>{{ .Title }}</h1>
-	{{ with .Params.description }}<div>{{ . | markdownify }}</div>{{ end }}
+	{{ with .Params.description }}<div>{{ markdownify . }}</div>{{ end }}
   {{- .Content }}
 </div>
 {{- end }}
diff --git a/layouts/partials/functions/getCodeConfig.html b/layouts/partials/functions/getCodeConfig.html
index caaae6b..2c30dc8 100644
--- a/layouts/partials/functions/getCodeConfig.html
+++ b/layouts/partials/functions/getCodeConfig.html
@@ -1,5 +1,5 @@
 <!-- will return an array holding 1) Whether to show line numbers or not 2) maximum number of lines per code block -->
-{{- $s := .Site.Params }}
+{{- $s := site.Params }}
 {{- $p := .Params }}
 {{- $maxCodeLines := default 100 $s.codeMaxLines }}
 {{- with $p.codeMaxLines }}
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index cf82166..94d8cba 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -1,6 +1,6 @@
 <aside class="aside menu">
   <div>
-    <label class="aside_toggle toggle" title='{{ T "docs_menu" }}' role="button">{{ T "docs_menu" }} {{ partial "sprite" (dict "icon" "harmburger") }}</label>
+    <label class="aside_toggle toggle" title='{{ T "docs_menu" }}' role="button">{{ T "docs_menu" }} {{ partial "sprite" (dict "icon" "carly") }}</label>
   </div>
   {{- template "tree" (dict "page" . "section" .FirstSection)  }}
   {{- define "tree" }}
diff --git a/layouts/partials/sprites.html b/layouts/partials/sprites.html
index 4ab018d..2cc8da3 100644
--- a/layouts/partials/sprites.html
+++ b/layouts/partials/sprites.html
@@ -42,8 +42,8 @@
   <symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 612 612" id="arrow">
     <path d="M604.501 440.509L325.398 134.956c-5.331-5.357-12.423-7.627-19.386-7.27-6.989-.357-14.056 1.913-19.387 7.27L7.499 440.509c-9.999 10.024-9.999 26.298 0 36.323s26.223 10.024 36.222 0l262.293-287.164L568.28 476.832c9.999 10.024 26.222 10.024 36.221 0 9.999-10.023 9.999-26.298 0-36.323z"></path>
   </symbol>
-  <symbol viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg" id="carly">
-    <path d="M504.971 239.029L448 182.059V84c0-46.317-37.682-84-84-84h-44c-13.255 0-24 10.745-24 24s10.745 24 24 24h44c19.851 0 36 16.149 36 36v108c0 6.365 2.529 12.47 7.029 16.971L454.059 256l-47.029 47.029A24.002 24.002 0 0 0 400 320v108c0 19.851-16.149 36-36 36h-44c-13.255 0-24 10.745-24 24s10.745 24 24 24h44c46.318 0 84-37.683 84-84v-98.059l56.971-56.971c9.372-9.372 9.372-24.568 0-33.941zM112 192V84c0-19.851 16.149-36 36-36h44c13.255 0 24-10.745 24-24S205.255 0 192 0h-44c-46.318 0-84 37.683-84 84v98.059l-56.971 56.97c-9.373 9.373-9.373 24.568 0 33.941L64 329.941V428c0 46.317 37.682 84 84 84h44c13.255 0 24-10.745 24-24s-10.745-24-24-24h-44c-19.851 0-36-16.149-36-36V320c0-6.365-2.529-12.47-7.029-16.971L57.941 256l47.029-47.029A24.002 24.002 0 0 0 112 192z"></path>
+  <symbol aria-hidden="true" viewBox="0 0 24 24" id="carly">
+    <path fill="currentColor" d="M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"></path>
   </symbol>
   <symbol viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" id="copy" fill="currentColor">
     <path d="M23 2.75A2.75 2.75 0 0 0 20.25 0H8.75A2.75 2.75 0 0 0 6 2.75v13.5A2.75 2.75 0 0 0 8.75 19h11.5A2.75 2.75 0 0 0 23 16.25zM18.25 14.5h-7.5a.75.75 0 0 1 0-1.5h7.5a.75.75 0 0 1 0 1.5zm0-3h-7.5a.75.75 0 0 1 0-1.5h7.5a.75.75 0 0 1 0 1.5zm0-3h-7.5a.75.75 0 0 1 0-1.5h7.5a.75.75 0 0 1 0 1.5z"></path>

--
Gitblit v1.10.0