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.",
|
"alt_text": "Really sketchy looking scene including a giant green man, and three smaller people.",
|
||||||
"characters": [
|
"characters": [
|
||||||
"Tifa",
|
"Tifa",
|
||||||
"Barett",
|
"Barrett",
|
||||||
"Cloud"
|
"Cloud"
|
||||||
],
|
],
|
||||||
"date": "2021",
|
"date": "2021",
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "Aerith",
|
"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": "???",
|
"age": "???",
|
||||||
"pronouns": "she/her",
|
"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.",
|
||||||
"origin": "Original Character"
|
"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": "???",
|
"age": "???",
|
||||||
"pronouns": "she/her",
|
"description": "She is a talented swordsman and nomad that travels from town to town in the countryside.",
|
||||||
"origin": "Original Character"
|
"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
|
slug: ff7r-airbuster-fight
|
||||||
characters:
|
characters:
|
||||||
- Tifa
|
- Tifa
|
||||||
- Barett
|
- Barrett
|
||||||
- Cloud
|
- Cloud
|
||||||
arttags:
|
arttags:
|
||||||
- drawpile
|
- drawpile
|
||||||
|
|
|
@ -3,7 +3,7 @@ title: Art
|
||||||
layout: art
|
layout: art
|
||||||
summary: My personal art gallery.
|
summary: My personal art gallery.
|
||||||
new_banner:
|
new_banner:
|
||||||
commissions: true
|
commissions: false
|
||||||
aliases:
|
aliases:
|
||||||
- /gallery
|
- /gallery
|
||||||
featured:
|
featured:
|
||||||
|
|
|
@ -2,5 +2,6 @@
|
||||||
layout: art-character
|
layout: art-character
|
||||||
title: Aerith
|
title: Aerith
|
||||||
origin: Final Fantasy 7
|
origin: Final Fantasy 7
|
||||||
|
original: false
|
||||||
slug: aerith
|
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: ???
|
age: ???
|
||||||
pronouns: she/her
|
pronouns: she/her
|
||||||
origin: Original Character
|
origin: Original Character
|
||||||
|
original: true
|
||||||
slug: merume
|
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.
|
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: ???
|
age: ???
|
||||||
pronouns: she/her
|
pronouns: she/her
|
||||||
origin: Original Character
|
origin: Original Character
|
||||||
|
original: true
|
||||||
slug: mysterious-swordswoman
|
slug: mysterious-swordswoman
|
||||||
---
|
---
|
||||||
She is a talented swordsman and nomad that travels from town to town in the countryside.
|
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"
|
title: "Characters"
|
||||||
url: /art/characters/
|
url: /art/characters/
|
||||||
layout: listart
|
layout: listchar
|
||||||
listtag: 'characters'
|
listtag: 'characters'
|
||||||
skipparent: true
|
skipparent: true
|
||||||
trueparent: "/art"
|
trueparent: "/art"
|
||||||
|
|
|
@ -145,6 +145,9 @@ def parse_character_json(output_directory, filename, json_file):
|
||||||
if "origin" in json_data:
|
if "origin" in json_data:
|
||||||
write_field(f, 'origin', json_data["origin"])
|
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)
|
write_field(f, 'slug', filename)
|
||||||
|
|
||||||
f.write('---\n')
|
f.write('---\n')
|
||||||
|
|
|
@ -662,3 +662,12 @@ model-viewer {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding-left: 0;
|
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