redstrate.com/themes/red/layouts/_default/art.html

41 lines
1.5 KiB
HTML
Raw Normal View History

2024-09-30 17:40:46 -04:00
{{/* Page layout used for the main art gallery page. */}}
2022-12-20 19:16:53 -05:00
{{ define "main" }}
<h2>{{ .Title }}</h2>
2023-02-23 17:39:20 -05:00
<hr>
{{ $paginator := .Paginate (where .RegularPagesRecursive "Type" "art") }}
2022-12-20 19:16:53 -05:00
{{ if eq $paginator.PageNumber 1}}
2023-06-12 22:03:57 -04:00
<div class="art-outer">
<div class="art-inner">
{{ $alertimg := resources.Get "alert.png" }}
{{ with $.Params.new_banner }}
<div class="new-banner"><img alt="Alert Icon" width="16" height="16" class="banner-alert-icon" src="{{ $alertimg.RelPermalink }}"><b>{{ . }}</b><img alt="Alert Icon" width="16" height="16" class="banner-alert-icon" src="{{ $alertimg.RelPermalink }}"></div>
{{ end }}
2024-09-30 17:40:46 -04:00
{{ .Content }}
2023-06-12 22:03:57 -04:00
</div>
2023-06-12 22:03:57 -04:00
{{ with resources.Get "pics/pic-gallery.png" }}
2024-02-21 17:54:24 -05:00
<img class="gallery-img page-pic" alt="Drawing of an art gallery with several people standing around a piece hanging on the wall." width="{{ .Width }}" height="{{ .Height }}" src="{{ .RelPermalink }}">
2023-06-12 22:03:57 -04:00
{{ end }}
</div>
2022-12-27 21:47:12 -05:00
2023-06-12 22:03:57 -04:00
<div class="art-button-container">
<a class="art-button" href="/art/characters">Characters</a>
<a class="art-button" href="/art/tags">Tags</a>
2024-02-21 17:54:24 -05:00
<a class="art-button" href="/art/stats">Statistics</a>
2023-07-02 22:24:51 -04:00
<a class="art-button" href="/art/guest">Guest Art</a>
<a class="art-button" href="/commission">Commission</a>
2023-06-12 22:03:57 -04:00
</div>
2022-12-20 19:16:53 -05:00
{{ end }}
2022-12-27 21:47:12 -05:00
2022-12-27 22:34:31 -05:00
{{ partial "art-gallery" . }}
2024-02-21 17:54:24 -05:00
{{ partial "art-years" . }}
2024-09-30 17:40:46 -04:00
{{ partial "gallery-js" . }}
2022-12-20 19:16:53 -05:00
{{ end }}