aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2019-07-16 11:32:51 +0300
committerXhmikosR <[email protected]>2019-07-17 16:21:47 +0300
commit8bc6692082207e661a6a8606f3ff28e389110090 (patch)
tree1222fb0c9b9e48c14fa44f54a74ecedac5bff9d8
parent3898df1f5a827ecd66f3a7f9b3b143a8863bad2f (diff)
downloadbootstrap-8bc6692082207e661a6a8606f3ff28e389110090.tar.xz
bootstrap-8bc6692082207e661a6a8606f3ff28e389110090.zip
Move the icon to a partial and optimize it.
-rw-r--r--site/layouts/partials/docs-sidebar.html2
-rw-r--r--site/layouts/partials/icons/arrow.svg1
2 files changed, 2 insertions, 1 deletions
diff --git a/site/layouts/partials/docs-sidebar.html b/site/layouts/partials/docs-sidebar.html
index 63714ec78..200f8cd41 100644
--- a/site/layouts/partials/docs-sidebar.html
+++ b/site/layouts/partials/docs-sidebar.html
@@ -17,7 +17,7 @@
<li class="bd-sidenav-group my-1{{ if $active_group }} active{{ end }} js-sidenav-group">
<a class="d-inline-flex align-items-center bd-sidenav-group-link" href="/docs/{{ $.Site.Params.docs_version }}/{{ $group_slug }}/{{ if $group.pages }}{{ $link_slug }}/{{ end }}">
- <svg class="bd-sidenav-group-link-icon" width="16" height="16" viewbox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path stroke="currentColor" stroke-width="2" d="M5 14l6-6-6-6" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"/></svg>
+ {{- partial "icons/arrow.svg" (dict "class" "bd-sidenav-group-link-icon" "width" "16" "height" "16") -}}
<div>{{- $group.title -}}</div>
</a>
diff --git a/site/layouts/partials/icons/arrow.svg b/site/layouts/partials/icons/arrow.svg
new file mode 100644
index 000000000..097c1a2d5
--- /dev/null
+++ b/site/layouts/partials/icons/arrow.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg"{{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{ . }}"{{ end }} viewBox="0 0 16 16"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 14l6-6-6-6"/></svg>