Change art homepage blurb, update year titles

This commit is contained in:
Joshua Goins 2023-03-26 14:13:43 -04:00
parent 22c13c57da
commit 330936c8d5
11 changed files with 16 additions and 12 deletions

View file

@ -1,5 +1,5 @@
--- ---
title: 2016 Art title: 2016
layout: gallery layout: gallery
json: art json: art
thumbnails: true thumbnails: true

View file

@ -1,5 +1,5 @@
--- ---
title: 2017 Art title: 2017
layout: gallery layout: gallery
json: art json: art
thumbnails: true thumbnails: true

View file

@ -1,5 +1,5 @@
--- ---
title: 2018 Art title: 2018
layout: gallery layout: gallery
json: art json: art
thumbnails: true thumbnails: true

View file

@ -1,5 +1,5 @@
--- ---
title: 2019 Art title: 2019
layout: gallery layout: gallery
json: art json: art
thumbnails: true thumbnails: true

View file

@ -1,5 +1,5 @@
--- ---
title: 2020 Art title: 2020
layout: gallery layout: gallery
json: art json: art
thumbnails: true thumbnails: true

View file

@ -1,5 +1,5 @@
--- ---
title: 2021 Art title: 2021
layout: gallery layout: gallery
json: art json: art
thumbnails: true thumbnails: true

View file

@ -1,5 +1,5 @@
--- ---
title: 2022 Art title: 2022
layout: gallery layout: gallery
json: art json: art
thumbnails: true thumbnails: true

View file

@ -1,5 +1,5 @@
--- ---
title: 2023 Art title: 2023
layout: gallery layout: gallery
json: art json: art
thumbnails: true thumbnails: true

View file

@ -99,7 +99,7 @@ for year in collected_years:
with open(os.path.join(art_output_directory, str(year), '_index.md'), 'w') as f: with open(os.path.join(art_output_directory, str(year), '_index.md'), 'w') as f:
f.write('---\n') f.write('---\n')
write_field(f, 'title', str(year) + ' Art') write_field(f, 'title', str(year))
write_field(f, 'layout', 'gallery') write_field(f, 'layout', 'gallery')
write_field(f, 'json', 'art') write_field(f, 'json', 'art')
write_field(f, 'thumbnails', 'true') write_field(f, 'thumbnails', 'true')

View file

@ -6,11 +6,13 @@
{{ $paginator := .Paginate (where .RegularPagesRecursive "Type" "art") }} {{ $paginator := .Paginate (where .RegularPagesRecursive "Type" "art") }}
{{ if eq $paginator.PageNumber 1}} {{ if eq $paginator.PageNumber 1}}
<p>Welcome to my art gallery! This is the most complete view of my work, which I have archived since 2016.</p> <p>Welcome to my art gallery! I have saved my art since 2016, and this site contains the most complete archive of my work.</p>
<p>This current iteration of the gallery is a work-in-progress, so details and alt-text may be missing for older work.</p> <b>Contains risque art, so you should probably not view this on a work computer.</b>
<p>If you wish to follow me when I post new art, you can follow me on <a href="https://mastodon.art/@redstrate">Mastodon</a>, <a href="https://www.pixiv.net/en/users/58118005" >Pixiv</a>, <a href="https://redstrate.newgrounds.com/">Newgrounds</a> or my <a href="/art/index.xml">Art RSS Feed!</a></p> <p>If you want to see other cool artists and their websites, see <a href="/links">the links page</a>.</p>
<p>You can follow me on <a href="https://mastodon.art/@redstrate">Mastodon</a>, <a href="https://www.pixiv.net/en/users/58118005" >Pixiv</a>, <a href="https://redstrate.newgrounds.com/">Newgrounds</a>, or if you like RSS feeds I have an <a href="/art/index.xml">art-only feed</a>!</p>
{{ partial "featured-art" . }} {{ partial "featured-art" . }}

View file

@ -1,5 +1,7 @@
<h2>{{ .Title }}</h2> <h2>{{ .Title }}</h2>
<hr>
{{ .Content }} {{ .Content }}
{{ partial "art-gallery" . }} {{ partial "art-gallery" . }}