Add a cute little alert icon for banners

This commit is contained in:
Joshua Goins 2023-04-10 16:27:03 -04:00
parent 5c2f3fd789
commit 635b287511
3 changed files with 5 additions and 3 deletions

BIN
assets/alert.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 B

View file

@ -419,6 +419,7 @@ pre {
border-radius: 5px; border-radius: 5px;
padding: 5px; padding: 5px;
text-align: center; text-align: center;
margin-bottom: 10px;
} }
.no-decoration { .no-decoration {

View file

@ -6,13 +6,14 @@
{{ $paginator := .Paginate (where .RegularPagesRecursive "Type" "art") }} {{ $paginator := .Paginate (where .RegularPagesRecursive "Type" "art") }}
{{ if eq $paginator.PageNumber 1}} {{ if eq $paginator.PageNumber 1}}
{{ $alertimg := resources.Get "alert.png" }}
{{ with $.Params.new_banner }} {{ with $.Params.new_banner }}
<div class="new-banner"><b>*new*</b> {{ . }}</div> <div class="new-banner"><img width="16" height="16" style="vertical-align: middle;" src="{{ $alertimg.RelPermalink }}"/><b>{{ . }}</b><img width="16" height="16" style="vertical-align: middle;" src="{{ $alertimg.RelPermalink }}"/></div>
{{ end }} {{ end }}
<p>Welcome to my art gallery! I have saved my art since 2016, and this site contains the most complete archive of my work.</p> <div class="new-banner"><img width="16" height="16" style="vertical-align: middle;" src="{{ $alertimg.RelPermalink }}"/><b>Contains risque art, so you should probably not view this on a work computer.</b><img width="16" height="16" style="vertical-align: middle;" src="{{ $alertimg.RelPermalink }}"/></div>
<b>Contains risque art, so you should probably not view this on a work computer.</b> <p>Welcome to my art gallery! I have saved my art since 2016, and this site contains the most complete archive of my work.</p>
<p>If you want to see other cool artists and their websites, see <a href="/links">the links page</a>.</p> <p>If you want to see other cool artists and their websites, see <a href="/links">the links page</a>.</p>