2023-06-12 12:33:26 +00:00
|
|
|
<div class="container">
|
|
|
|
<div class="tag-header">
|
|
|
|
{{ if Tag.Metadata.id }}
|
|
|
|
<a href="/artworks/{{ Tag.Metadata.id }}">
|
2023-06-13 13:10:08 +00:00
|
|
|
<img class="tag-thumbnail" src="{{ proxyImage(Tag.Metadata.image) }}" alt="{{ Tag.Name }}" />
|
2023-06-12 12:33:26 +00:00
|
|
|
</a>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
<div class="tag-details">
|
|
|
|
<b class="main-tag">#{{ Tag.Name }}</b>
|
|
|
|
<span class="translated-tag">{{ Tag.Metadata.tag }}</span>
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<span><b>{{ Data.Artworks.Total }}</b> works</span>
|
|
|
|
|
|
|
|
<p class="tag-description">{{ Tag.Metadata.abstract }}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="thumbnail-container">
|
|
|
|
{{ range Data.RelatedTags }}
|
|
|
|
<a class="tag-container" href="/tags/{{ . }}">#{{ . }}</a>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="switcher">
|
|
|
|
<span class="switch-title">Type</span>
|
2023-06-13 13:10:08 +00:00
|
|
|
<a href="/tags/{{ Tag.Name }}?category=artworks&order={{ Queries.Order }}&mode={{ Queries.Mode }}&page=1"
|
|
|
|
class="switch-button">All</a>
|
|
|
|
<a href="/tags/{{ Tag.Name }}?category=illustrations&order={{ Queries.Order }}&mode={{ Queries.Mode }}&page=1"
|
|
|
|
class="switch-button">Illustrations</a>
|
|
|
|
<a href="/tags/{{ Tag.Name }}?category=manga&order={{ Queries.Order }}&mode={{ Queries.Mode }}&page=1"
|
|
|
|
class="switch-button">Manga</a>
|
2023-06-12 12:33:26 +00:00
|
|
|
</div>
|
|
|
|
<div class="switcher">
|
|
|
|
<span class="switch-title">Order</span>
|
2023-06-13 13:10:08 +00:00
|
|
|
<a href="/tags/{{ Tag.Name }}?category={{ Queries.Category }}&order=date_d&mode={{ Queries.Mode }}&page=1"
|
|
|
|
class="switch-button">Newest</a>
|
|
|
|
<a href="/tags/{{ Tag.Name }}?category={{ Queries.Category }}&order=date&mode={{ Queries.Mode }}&page=1"
|
|
|
|
class="switch-button">Oldest</a>
|
2023-06-12 12:33:26 +00:00
|
|
|
</div>
|
|
|
|
<div class="switcher">
|
|
|
|
<span class="switch-title">Filter</span>
|
2023-06-13 13:10:08 +00:00
|
|
|
<a href="/tags/{{ Tag.Name }}?category={{ Queries.Category }}&order={{ Queries.Order }}&mode=all&page=1"
|
|
|
|
class="switch-button">All</a>
|
|
|
|
<a href="/tags/{{ Tag.Name }}?category={{ Queries.Category }}&order={{ Queries.Order }}&mode=safe&page=1"
|
|
|
|
class="switch-button">Safe</a>
|
|
|
|
<a href="/tags/{{ Tag.Name }}?category={{ Queries.Category }}&order={{ Queries.Order }}&mode=r18&page=1"
|
|
|
|
class="switch-button">R18</a>
|
2023-06-12 12:33:26 +00:00
|
|
|
</div>
|
|
|
|
{{ if Data.Popular.Recent }}
|
|
|
|
<h2>Popular artworks</h2>
|
|
|
|
<div class="thumbnail-container">
|
|
|
|
{{ include "small-tn-normal" Data.Popular.Recent }} {{ include
|
|
|
|
"small-tn-normal" Data.Popular.Permanent }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
<!-- Switchers here -->
|
|
|
|
<br />
|
|
|
|
<h2>Works</h2>
|
|
|
|
<div>{{ include "small-tn" Data.Artworks.Artworks }}</div>
|
|
|
|
|
|
|
|
<div class="pagination">
|
2023-06-12 13:08:32 +00:00
|
|
|
{{ if toInt (Queries.Page) == 1 }}
|
2023-06-12 12:33:26 +00:00
|
|
|
<a href="#" class="pagination-button disabled">First</a>
|
|
|
|
<a href="#" class="pagination-button disabled">Previous</a>
|
|
|
|
{{ else }}
|
2023-06-13 13:10:08 +00:00
|
|
|
<a href="/tags/{{ Tag.Name }}?category={{ Queries.Category }}&order={{ Queries.Order }}&mode={{ Queries.Mode }}&page=1"
|
|
|
|
class="pagination-button">First</a>
|
|
|
|
<a href="/tags/{{ Tag.Name }}?category={{ Queries.Category }}&order={{ Queries.Order }}&mode={{ Queries.Mode }}&page={{ dec(toInt(Queries.Page)) }}"
|
|
|
|
class="pagination-button">Previous</a>
|
2023-06-12 12:33:26 +00:00
|
|
|
{{ end }}
|
|
|
|
|
2023-06-12 13:08:32 +00:00
|
|
|
<a href="#" class="pagination-button disabled">{{ Queries.Page }}</a>
|
2023-06-12 12:33:26 +00:00
|
|
|
|
2023-06-13 13:10:08 +00:00
|
|
|
<a href="/tags/{{ Tag.Name }}?category={{ Queries.Category }}&order={{ Queries.Order }}&mode={{ Queries.Mode }}&page={{ inc(toInt(Queries.Page)) }}"
|
|
|
|
class="pagination-button">Next</a>
|
2023-06-12 12:33:26 +00:00
|
|
|
</div>
|
|
|
|
</div>
|