diff options
author | 2023-08-03 18:36:01 +0600 | |
---|---|---|
committer | 2023-08-03 18:36:01 +0600 | |
commit | 5a388abf8de9e6b384fb264e6cb70c7c12fe44e0 (patch) | |
tree | 2ed66b70df656678904b369fecb904b644311d14 | |
parent | a13973cf62f3612637e71059c3ad59e85b5bc323 (diff) | |
download | store-source-5a388abf8de9e6b384fb264e6cb70c7c12fe44e0.tar.gz store-source-5a388abf8de9e6b384fb264e6cb70c7c12fe44e0.zip |
Find svg icons automatically
-rw-r--r-- | layouts/partials/app.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/partials/app.html b/layouts/partials/app.html index 84f1ac0..541f053 100644 --- a/layouts/partials/app.html +++ b/layouts/partials/app.html @@ -4,6 +4,12 @@ <div class="icon"> <img src="{{ .RelPermalink }}" alt="logo"> </div> + {{- else -}} + {{- with (printf "asset/icons/%s.svg" .id | resources.Get) -}} + <div class="icon"> + <img src="{{ .RelPermalink }}" alt="logo"> + </div> + {{- end }} {{- end }} <div class="title"> <h1 class="name"> |