diff --git a/content/art/_content.gotmpl b/content/art/_content.gotmpl index e167638..27bc824 100644 --- a/content/art/_content.gotmpl +++ b/content/art/_content.gotmpl @@ -22,7 +22,7 @@ {{ $dates = dict "date" (time.AsTime $data.date) }} {{ else }} {{ $dates = dict "date" (time.AsTime (printf "%s-01-01" $data.date)) }} - {{ $exclude_feed := true }} + {{ $exclude_feed = true }} {{ end }} {{ $title := "Untitled Artwork" }} diff --git a/data/art/2023/threelegs.json b/data/art/2023/threelegs.json index c829ab4..d18d3b7 100644 --- a/data/art/2023/threelegs.json +++ b/data/art/2023/threelegs.json @@ -1,5 +1,6 @@ { "date": "2023-11-25", "program": "Krita", - "title": "three legs" + "title": "three legs", + "nsfw": true } diff --git a/data/art/2024/awkward.json b/data/art/2024/awkward.json index e113b4d..bd5ad7d 100644 --- a/data/art/2024/awkward.json +++ b/data/art/2024/awkward.json @@ -1,5 +1,6 @@ { "date": "2024-04-24", "program": "Krita", - "title": "Awkward" + "title": "Awkward", + "nsfw": true } diff --git a/data/art/2024/florence.json b/data/art/2024/florence.json index 72d9325..c6aa878 100644 --- a/data/art/2024/florence.json +++ b/data/art/2024/florence.json @@ -9,5 +9,6 @@ "tags": [ "artfight" ], - "title": "Farm-hands" + "title": "Farm-hands", + "nsfw": true } diff --git a/themes/red/layouts/art/rss.xml b/themes/red/layouts/art/rss.xml index 54b7639..c0c2339 100644 --- a/themes/red/layouts/art/rss.xml +++ b/themes/red/layouts/art/rss.xml @@ -50,8 +50,9 @@ {{ range $pages }} {{ $isguest := (.Param "guest") }} {{ $exclude := (.Param "excludefeed") }} + {{ $isnsfw := (.Param "nsfw") }} - {{ if and (not $isguest) (not $exclude) }} + {{ if and (and (not $isguest) (not $exclude)) (not $isnsfw) }} {{ with .Title }} {{ . }} @@ -76,8 +77,20 @@ {{ end }} {{ " + + {{ $title := .Title }} + {{ $year := .Date.Format "2006" }} + + + {{ $.Params.alt_text }} + + {{ with .Content }}

{{ . | safeHTML }}