From 079fe81cb692a8836d7ccecdabe3e8101cff4c5b Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 13 Apr 2023 18:38:37 -0400 Subject: [PATCH] Improve accessibility --- content/art/stats/_index.md | 4 ++-- scripts/gen_art.py | 3 +++ themes/red/assets/css/site.css | 6 +++--- themes/red/layouts/_default/art-detail.html | 2 +- themes/red/layouts/_default/art.html | 4 ++-- themes/red/layouts/partials/head.html | 5 +++++ themes/red/layouts/partials/header.html | 2 +- themes/red/layouts/partials/render-art.html | 4 ++-- themes/red/layouts/shortcodes/recent-posts.html | 2 ++ 9 files changed, 21 insertions(+), 11 deletions(-) diff --git a/content/art/stats/_index.md b/content/art/stats/_index.md index 4092537..3d94bad 100644 --- a/content/art/stats/_index.md +++ b/content/art/stats/_index.md @@ -1,12 +1,12 @@ --- title: Stats layout: art-stats -total: 186 +total: 185 years: - year: 2019 num: 60 - year: 2022 - num: 46 + num: 45 - year: 2020 num: 30 - year: 2021 diff --git a/scripts/gen_art.py b/scripts/gen_art.py index 15f5f3a..a8f3de8 100644 --- a/scripts/gen_art.py +++ b/scripts/gen_art.py @@ -123,6 +123,9 @@ for filename in os.listdir(art_data_directory): if os.path.isfile(f): filename_without_ext = os.path.splitext(filename)[0] + if filename_without_ext == ".DS_Store": + continue + with open(f, "r") as file: year, characters, tags = parse_art_json(art_output_directory, filename_without_ext, file) diff --git a/themes/red/assets/css/site.css b/themes/red/assets/css/site.css index d6644fd..ee1b4f0 100644 --- a/themes/red/assets/css/site.css +++ b/themes/red/assets/css/site.css @@ -101,18 +101,18 @@ body { @media (prefers-color-scheme: dark) { :root { - --primary-accent: #ce4545; + --primary-accent: #a3c3ff; --secondary-accent: #c99192; --background-primary: #34313a; --background-secondary: #3c3a44; --background-tertiary: #2e2c34; --border-color: #515860; --text-color: #fbeded; - --link-visited: #ad1616; + --link-visited: #75A6FF; --extra-color: #504e5a; } - .ext-link { + .external-link { filter: invert(100%); } } diff --git a/themes/red/layouts/_default/art-detail.html b/themes/red/layouts/_default/art-detail.html index 47aec0a..ef7d878 100644 --- a/themes/red/layouts/_default/art-detail.html +++ b/themes/red/layouts/_default/art-detail.html @@ -16,7 +16,7 @@ {{ else }} - {{ $.Params.alt_text }} + {{ $.Params.alt_text }} {{ end }} {{ end }} {{ end }} diff --git a/themes/red/layouts/_default/art.html b/themes/red/layouts/_default/art.html index 2ba7941..fc34cff 100644 --- a/themes/red/layouts/_default/art.html +++ b/themes/red/layouts/_default/art.html @@ -8,10 +8,10 @@ {{ if eq $paginator.PageNumber 1}} {{ $alertimg := resources.Get "alert.png" }} {{ with $.Params.new_banner }} -
{{ . }}
+
{{ . }}
{{ end }} -
Contains risque art, so you should probably not view this on a work computer.
+
Contains risque art, so you should probably not view this on a work computer.

Welcome to my art gallery! I have saved my art since 2016, and this site contains the most complete archive of my work.

diff --git a/themes/red/layouts/partials/head.html b/themes/red/layouts/partials/head.html index b9e79e6..3fa0a68 100644 --- a/themes/red/layouts/partials/head.html +++ b/themes/red/layouts/partials/head.html @@ -10,7 +10,12 @@ {{.Site.Title}} {{ else }} {{.Site.Title}} / {{ .Title }} + + {{ if .Summary }} + {{ else }} + + {{ end }} {{ end }} diff --git a/themes/red/layouts/partials/header.html b/themes/red/layouts/partials/header.html index cf15321..6488fc0 100644 --- a/themes/red/layouts/partials/header.html +++ b/themes/red/layouts/partials/header.html @@ -1,4 +1,4 @@ {{ with resources.Get .Site.Params.profile_picture }} - + Profile Picture {{ end }}

{{ .Site.Title }}

diff --git a/themes/red/layouts/partials/render-art.html b/themes/red/layouts/partials/render-art.html index da4238a..ed86044 100644 --- a/themes/red/layouts/partials/render-art.html +++ b/themes/red/layouts/partials/render-art.html @@ -21,7 +21,7 @@ {{ $year = index $split 3 }} {{ end }} - + {{ $path := printf "/%s/%d/%.2d/%s" $base (int $year) (int $month) $filename_without_ext}} {{ $title := .Params.title }} @@ -43,7 +43,7 @@ Viewable Animation {{ end }} {{ end }} - + {{ $title }} {{ else }}

Thumbnail not found!

diff --git a/themes/red/layouts/shortcodes/recent-posts.html b/themes/red/layouts/shortcodes/recent-posts.html index 2f26df9..7fdb476 100644 --- a/themes/red/layouts/shortcodes/recent-posts.html +++ b/themes/red/layouts/shortcodes/recent-posts.html @@ -1,10 +1,12 @@

Recent Blog Posts

+