Add better characters page
This commit is contained in:
parent
4c1a15ab98
commit
1785689201
21 changed files with 118 additions and 13 deletions
|
@ -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",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"name": "Aerith",
|
||||
"origin": "Final Fantasy 7"
|
||||
"origin": "Final Fantasy 7",
|
||||
"original": false
|
||||
}
|
||||
|
|
6
characters/dr.-frizzly.json
Normal file
6
characters/dr.-frizzly.json
Normal 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
7
characters/juritta.json
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"age": "???",
|
||||
"name": "Juritta",
|
||||
"origin": "FINAL FANTASY XIV ONLINE",
|
||||
"original": true,
|
||||
"pronouns": "she/her"
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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
5
characters/sakura.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"name": "Sakura",
|
||||
"original": true,
|
||||
"pronouns": "she/her"
|
||||
}
|
5
characters/sniper-girl.json
Normal file
5
characters/sniper-girl.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"name": "Sniper Girl",
|
||||
"original": true,
|
||||
"pronouns": "she/her"
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -3,7 +3,7 @@ title: Art
|
|||
layout: art
|
||||
summary: My personal art gallery.
|
||||
new_banner:
|
||||
commissions: true
|
||||
commissions: false
|
||||
aliases:
|
||||
- /gallery
|
||||
featured:
|
||||
|
|
|
@ -2,5 +2,6 @@
|
|||
layout: art-character
|
||||
title: Aerith
|
||||
origin: Final Fantasy 7
|
||||
original: false
|
||||
slug: aerith
|
||||
---
|
||||
|
|
8
content/characters/dr.-frizzly/_index.md
Normal file
8
content/characters/dr.-frizzly/_index.md
Normal 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
|
||||
---
|
9
content/characters/juritta/_index.md
Normal file
9
content/characters/juritta/_index.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
layout: art-character
|
||||
title: Juritta
|
||||
age: ???
|
||||
pronouns: she/her
|
||||
origin: FINAL FANTASY XIV ONLINE
|
||||
original: true
|
||||
slug: juritta
|
||||
---
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
7
content/characters/sakura/_index.md
Normal file
7
content/characters/sakura/_index.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
layout: art-character
|
||||
title: Sakura
|
||||
pronouns: she/her
|
||||
original: true
|
||||
slug: sakura
|
||||
---
|
7
content/characters/sniper-girl/_index.md
Normal file
7
content/characters/sniper-girl/_index.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
layout: art-character
|
||||
title: Sniper Girl
|
||||
pronouns: she/her
|
||||
original: true
|
||||
slug: sniper-girl
|
||||
---
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: "Characters"
|
||||
url: /art/characters/
|
||||
layout: listart
|
||||
layout: listchar
|
||||
listtag: 'characters'
|
||||
skipparent: true
|
||||
trueparent: "/art"
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -662,3 +662,12 @@ model-viewer {
|
|||
text-align: center;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.character {
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.character span {
|
||||
display: block;
|
||||
}
|
||||
|
|
33
themes/red/layouts/_default/listchar.html
Normal file
33
themes/red/layouts/_default/listchar.html
Normal 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 }}
|
Loading…
Add table
Reference in a new issue