diff options
Diffstat (limited to 'layouts/partials/app.html')
-rw-r--r-- | layouts/partials/app.html | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/layouts/partials/app.html b/layouts/partials/app.html index 541f053..3f029bf 100644 --- a/layouts/partials/app.html +++ b/layouts/partials/app.html @@ -1,21 +1,18 @@ <div class="card"> <div class="info"> - {{- with (printf "asset/icons/%s.png" .id | resources.Get) -}} + {{- with (printf "asset/packages/%s.png" .id | resources.Get | default ( + resources.Get "asset/icons/package.png" + )) -}} <div class="icon"> - <img src="{{ .RelPermalink }}" alt="logo"> + <img src="{{ (.Fit `128x128`).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"> {{- .data.name | safeHTML -}} <span> <a {{ printf `href=%q` .data.url | safeHTMLAttr }} targer="_blank" style="padding"> + {{/* url icon as svg */}} <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" |