diff --git a/content/art/_index.md b/content/art/_index.md index 44c6a58..dd5ff3c 100644 --- a/content/art/_index.md +++ b/content/art/_index.md @@ -8,4 +8,4 @@ The gallery is sorted by date, but there's other sections to check out such as [ I've also been [participating in Artfight](https://artfight.net/~redstrate) since 2023. You can view my attacks and defenses [here](/art/tags/artfight). -You can follow me on [Mastodon](https://mastodon.art/@redstrate), [Pixiv](https://www.pixiv.net/en/users/58118005), [RSS](/art/index.xml)! +You can follow me on [Mastodon](https://mastodon.art/@redstrate), [Pixiv](https://www.pixiv.net/en/users/58118005), [RSS](/art/index.xml)! The RSS feed is a combination of the "Original" and "Fanart" categories. diff --git a/data/art/2011/turrets.json b/data/art/2011/turrets.json index e70ed4e..b7617fa 100644 --- a/data/art/2011/turrets.json +++ b/data/art/2011/turrets.json @@ -1,6 +1,6 @@ { "date": "2011-12-06", "title": "Turrets", - "tags": ["Animation", "Flipnote"], + "tags": ["Animation", "Flipnote", "fan art"], "type": "Animation" } diff --git a/themes/red/layouts/_default/art.html b/themes/red/layouts/_default/art.html index 0c5137f..232be1a 100644 --- a/themes/red/layouts/_default/art.html +++ b/themes/red/layouts/_default/art.html @@ -9,7 +9,7 @@
{{ $alertimg := resources.Get "alert.png" }} {{ with $.Params.new_banner }} -
{{ . }}
+
{{ . }}
{{ end }} {{ .Content }} @@ -29,6 +29,7 @@ Fanart
NSFW
Guest
+ Wallpapers
Characters {{ partial "art-years" . }} diff --git a/themes/red/layouts/_default/arttag.html b/themes/red/layouts/_default/arttag.html index 39078e9..0586a26 100644 --- a/themes/red/layouts/_default/arttag.html +++ b/themes/red/layouts/_default/arttag.html @@ -1,7 +1,12 @@ {{ define "main" }}

{{ .Title }}


- {{ $.Scratch.Set "paginator" (.Paginate (where .Pages "Type" "art")) }} + + {{ $tags := slice "fan art" "artfight" }} + {{ $artworks := (where .Pages "Type" "art") }} + {{ $nsfw_art := (where $artworks "Params.nsfw" "=" true) }} + + {{ $.Scratch.Set "paginator" (.Paginate (complement $nsfw_art $artworks)) }} {{ partial "art-gallery" . }} {{ partial "gallery-js" . }} {{ end }} diff --git a/themes/red/layouts/_default/character.html b/themes/red/layouts/_default/character.html index a64ba3d..2ce6cd9 100644 --- a/themes/red/layouts/_default/character.html +++ b/themes/red/layouts/_default/character.html @@ -27,10 +27,14 @@ {{ end }} -
{{ end }} - {{ $paginator := .Paginate (where $.Site.Pages "Type" "art") }} + {{ $tags := slice "fan art" "artfight" }} + {{ $artworks := (where .Pages "Type" "art") }} + {{ $nsfw_art := (where $artworks "Params.nsfw" "=" true) }} + {{ $guest_art := (where $artworks "Params.guest" "=" true) }} + + {{ $.Scratch.Set "paginator" (.Paginate (complement $nsfw_art $guest_art $artworks)) }} {{ partial "art-gallery" . }} {{ $paginator := (where (where .RegularPagesRecursive "Type" "art") "Params.guest" "=" true) }} diff --git a/themes/red/layouts/_default/year-gallery.html b/themes/red/layouts/_default/year-gallery.html index 9962d09..d5446e2 100644 --- a/themes/red/layouts/_default/year-gallery.html +++ b/themes/red/layouts/_default/year-gallery.html @@ -12,7 +12,7 @@
{{ range (where .Site.RegularPages "Type" "art") }} - {{ if and (eq (.Date.Format "2006") $.Title) (not .Params.guest) }} + {{ if and (eq (.Date.Format "2006") $.Title) (not (or .Params.nsfw .Params.guest)) }} {{ partial "render-art" . }} {{ end }} {{ end }}