diff options
author | XhmikosR <xhmikosr@gmail.com> | 2021-02-08 08:33:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-08 08:33:17 +0300 |
commit | 79a9da1d33e7c825005fb40aee183ed8bd91fc3d (patch) | |
tree | 07e69697a7cee9609f74edfc77e09b642c53a10f | |
parent | 6d8e3a47bd672f8c6cef8e39935758de68ca6886 (diff) |
Move icons to assets/icons (#730)
-rw-r--r-- | config.yml | 2 | ||||
-rw-r--r-- | docs/layouts/icons/single.html | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/config.yml b/config.yml index 55cadb595..d69fed23b 100644 --- a/config.yml +++ b/config.yml @@ -34,7 +34,7 @@ module: - source: bootstrap-icons.svg target: static/bootstrap-icons.svg - source: icons - target: static/icons + target: static/assets/icons - source: font target: static/font diff --git a/docs/layouts/icons/single.html b/docs/layouts/icons/single.html index 39c47e6c8..33016a2b7 100644 --- a/docs/layouts/icons/single.html +++ b/docs/layouts/icons/single.html @@ -27,8 +27,9 @@ <hr class="my-4"> - {{- $svgPath := printf "/icons/%s.svg" .File.TranslationBaseName -}} - {{- $svgHtml := readFile $svgPath | chomp | safeHTML -}} + {{- $localSvgPath := printf "/icons/%s.svg" .File.TranslationBaseName -}} + {{- $svgPath := path.Join "/assets/" $localSvgPath -}} + {{- $svgHtml := readFile $localSvgPath | chomp | safeHTML -}} <div class="row gx-lg-5"> <div class="col-lg-8 mb-4"> |