Add better characters page

This commit is contained in:
Joshua Goins 2024-06-15 14:17:00 -04:00
parent 4c1a15ab98
commit 1785689201
21 changed files with 118 additions and 13 deletions

View file

@ -2,7 +2,7 @@
"alt_text": "Really sketchy looking scene including a giant green man, and three smaller people.",
"characters": [
"Tifa",
"Barett",
"Barrett",
"Cloud"
],
"date": "2021",

View file

@ -1,4 +1,5 @@
{
"name": "Aerith",
"origin": "Final Fantasy 7"
"origin": "Final Fantasy 7",
"original": false
}

View file

@ -0,0 +1,6 @@
{
"name": "Dr. Frizzly",
"origin": "Dr. Frizzly's Mega Minigame Collection",
"original": true,
"pronouns": "he/him"
}

7
characters/juritta.json Normal file
View file

@ -0,0 +1,7 @@
{
"age": "???",
"name": "Juritta",
"origin": "FINAL FANTASY XIV ONLINE",
"original": true,
"pronouns": "she/her"
}

View file

@ -1,7 +1,8 @@
{
"name": "Merume",
"description": "A four-armed succubus with long elven ears, and a tail. She usually ties her blue hair into pigtails. She enjoys cooking (only when she's by herself) and of course, playing way too much video games in her free time.",
"age": "???",
"pronouns": "she/her",
"origin": "Original Character"
"description": "A four-armed succubus with long elven ears, and a tail. She usually ties her blue hair into pigtails. She enjoys cooking (only when she's by herself) and of course, playing way too much video games in her free time.",
"name": "Merume",
"origin": "Original Character",
"original": true,
"pronouns": "she/her"
}

View file

@ -1,7 +1,8 @@
{
"name": "Mysterious Swordswoman",
"description": "She is a talented swordsman and nomad that travels from town to town in the countryside.",
"age": "???",
"pronouns": "she/her",
"origin": "Original Character"
"description": "She is a talented swordsman and nomad that travels from town to town in the countryside.",
"name": "Mysterious Swordswoman",
"origin": "Original Character",
"original": true,
"pronouns": "she/her"
}

5
characters/sakura.json Normal file
View file

@ -0,0 +1,5 @@
{
"name": "Sakura",
"original": true,
"pronouns": "she/her"
}

View file

@ -0,0 +1,5 @@
{
"name": "Sniper Girl",
"original": true,
"pronouns": "she/her"
}

View file

@ -8,7 +8,7 @@ alt_text: "Really sketchy looking scene including a giant green man, and three s
slug: ff7r-airbuster-fight
characters:
- Tifa
- Barett
- Barrett
- Cloud
arttags:
- drawpile

View file

@ -3,7 +3,7 @@ title: Art
layout: art
summary: My personal art gallery.
new_banner:
commissions: true
commissions: false
aliases:
- /gallery
featured:

View file

@ -2,5 +2,6 @@
layout: art-character
title: Aerith
origin: Final Fantasy 7
original: false
slug: aerith
---

View file

@ -0,0 +1,8 @@
---
layout: art-character
title: Dr. Frizzly
pronouns: he/him
origin: Dr. Frizzly's Mega Minigame Collection
original: true
slug: dr.-frizzly
---

View file

@ -0,0 +1,9 @@
---
layout: art-character
title: Juritta
age: ???
pronouns: she/her
origin: FINAL FANTASY XIV ONLINE
original: true
slug: juritta
---

View file

@ -4,6 +4,7 @@ title: Merume
age: ???
pronouns: she/her
origin: Original Character
original: true
slug: merume
---
A four-armed succubus with long elven ears, and a tail. She usually ties her blue hair into pigtails. She enjoys cooking (only when she's by herself) and of course, playing way too much video games in her free time.

View file

@ -4,6 +4,7 @@ title: Mysterious Swordswoman
age: ???
pronouns: she/her
origin: Original Character
original: true
slug: mysterious-swordswoman
---
She is a talented swordsman and nomad that travels from town to town in the countryside.

View file

@ -0,0 +1,7 @@
---
layout: art-character
title: Sakura
pronouns: she/her
original: true
slug: sakura
---

View file

@ -0,0 +1,7 @@
---
layout: art-character
title: Sniper Girl
pronouns: she/her
original: true
slug: sniper-girl
---

View file

@ -1,7 +1,7 @@
---
title: "Characters"
url: /art/characters/
layout: listart
layout: listchar
listtag: 'characters'
skipparent: true
trueparent: "/art"

View file

@ -145,6 +145,9 @@ def parse_character_json(output_directory, filename, json_file):
if "origin" in json_data:
write_field(f, 'origin', json_data["origin"])
if "original" in json_data:
write_field(f, 'original', str(json_data["original"]).lower())
write_field(f, 'slug', filename)
f.write('---\n')

View file

@ -662,3 +662,12 @@ model-viewer {
text-align: center;
padding-left: 0;
}
.character {
display: inline-block;
text-align: center;
}
.character span {
display: block;
}

View file

@ -0,0 +1,33 @@
{{ define "main" }}
<h2>{{ .Title }}</h2>
<hr>
<h3>Original</h3>
{{ range $name, $taxonomy := (index .Site.Taxonomies .Params.listtag) }}
{{ $original := false }}
{{ if $taxonomy.Page.Params.original }}
{{ $original = $taxonomy.Page.Params.original }}
{{ end }}
{{ if $original }}
<a class="character" href="{{ $.Params.url | relLangURL }}{{ $name | urlize }}"><img width=256 height=256 src="https://images.redstrate.com/chars/{{ $name }}.jpg"/><span>{{ $taxonomy.Page.Title }}</span></a>
{{ end }}
{{ end }}
<h3>Others</h3>
{{ range $name, $taxonomy := (index .Site.Taxonomies .Params.listtag) }}
{{ $original := false }}
{{ if $taxonomy.Page.Params.original }}
{{ $original = $taxonomy.Page.Params.original }}
{{ end }}
{{ if not $original }}
<a class="character" href="{{ $.Params.url | relLangURL }}{{ $name | urlize }}"><img width=256 height=256 src="https://images.redstrate.com/chars/{{ $name }}.jpg"/><span>{{ $taxonomy.Page.Title }}</span></a>
{{ end }}
{{ end }}
{{ end }}