Repository navigation
Expand file tree
/
Copy pathcharacters.liquid
More file actions
169 lines (169 loc) · 6.84 KB
/
Copy pathcharacters.liquid
File metadata and controls
169 lines (169 loc) · 6.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
---
layout: layout.liquid
pagination:
data: characters
size: 1
alias: ch
addAllPagesToCollections: true
permalink: "characters/{{ ch.name | lowerCase }}/"
eleventyComputed:
title: "{{ ch.name }}"
desc: "{{ ch.desc }}"
banner: "banner {{ ch.name | lowerCase }}"
image: "{% assign iconPath = ch.name | lowerCase | append: ' thumb' %}{% assign profilePath = ch.name | lowerCase | append: ' profile' %}https://tofutush.github.io/The-Iron-Ragdoll{% imageUrl profilePath 200 0 iconPath %}"
themeColor: "{{ ch.color }}"
iconColor: "{{ ch.color }}"
parent: Characters
---
<link rel="stylesheet" href="/css/characters.css"/>
<div style="--accent: {{ ch.color }}">
{% assign filteredGallery = gallery | filterGallery: ch.name %}
{% assign pagedoll = filteredGallery | getFirstOfKind: "pagedoll" %}
{% assign ref = filteredGallery | getFirstOfKind: "ref" %}
{% assign fullbody = filteredGallery | getFirstOfKind: "fullbody" %}
{% assign soul = filteredGallery | getFirstOfKind: "soul" %}
{% if pagedoll %}
{% image pagedoll 500 'pagedoll' 'pagedoll' %}
{% endif %}
{% if filteredGallery.size > 10 %}
{% assign big = true %}
{% assign filteredGallery = filteredGallery | getFirst10 %}
{% endif %}
<div class="title">
<div>
{% getProfileOrThumb ch.name 500 %}
{% if soul %}
{% if ch.attr.Soul[0] == 'S' %}
{% assign soulType = 'soul solid' %}
{% elsif ch.attr.Soul[0] == 'L' or ch.attr.Soul[0] == 'N' %}
{% assign soulType = 'soul liquid' %}
{% else %}
{% assign soulType = 'soul gas' %}
{% endif %}
{% image soul 200 'soul' soulType %}
{% endif %}
</div>
<div class="names">
{% if ch.namezh or ch.namebh %}
<h1 class="zh">{% if ch.namezh %}{{ ch.namezh }}{% endif %}{% if ch.namebh and ch.namezh %} · {% endif %}{% if ch.namebh %}{{ ch.namebh }}{% endif %}</h1>
{% endif %}
<h1 class="en" data-pagefind-meta="title">{{ ch.name }}</h1>
{% if ch.desc %}
{{ ch.desc | renderMD }}
{% endif %}
</div>
</div>
<h2 id="contents" class="fancy">Contents</h2>
<section class="contents">
{% if ch.about %}<a href="#about">About</a>{% endif %}
{% assign filteredStories = collections.stories | filterStory: ch.name %}
{% if filteredStories.size > 0 %}<a href="#stories">Stories</a>{% endif %}
{% assign majorRelations = relationships | getMajorRels: ch.name %}
{% assign minorRelations = relationships | getMinorRels: ch.name %}
{% if majorRelations.size > 0 or minorRelations.size > 0 %}<a href="#relationships">Relationships</a>{% endif %}
{% if ch.trivia %}<a href="#trivia">Trivia</a>{% endif %}
<a href="#reference">Reference</a>
{% if filteredGallery.size > 0 %}<a href="#gallery">Gallery</a>{% endif %}
</section>
{% if ch.attr or ch.tags %}
<h2 id="info" class="fancy">Info</h2>
<dl>
{% for att in ch.attr %}
<dt>{{ att[0] }}</dt>
<dd>{{ att[1] }}</dd>
{% endfor %}
{% if ch.tags %}
<dt>Tags</dt>
<dd>
{% assign sortedTags = ch.tags | sort %}
{% for tag in sortedTags %}{% if forloop.index != 1 %}, {% endif %}<a href="/characters/tag/{{ tag | slug }}/">{{ tag }}</a>{% endfor %}
</dd>
{% endif %}
</dl>
{% endif %}
<hr/>
<div class="af-fav">
<a href="{% if ch.af %}{{ ch.af }}{% else %}https://artfight.net/character/4927468.other-character{% endif %}" target="_blank" title="Attack {{ ch.name }} on Artfight!"><img src="/img/bg/af.png" alt="Attack {{ ch.name }} on Artfight!"/></a>
<a target="_blank" href="https://tofutush.leprd.space/{{ ch.name | lowerCase }}" target="_blank" title="Give {{ ch.name }} a favorite!">{% lucide 'heart' '3em' %}</a>
</div>
{% if ch.quote %}
<blockquote>{{ ch.quote | renderMD }}</blockquote>
{% endif %}
{% if ch.about or ch.monolog %}
<h2 id="about">About</h2>
{% if fullbody %}
{% image fullbody 500 'fullbody' 'float-right fullbody' %}
{% endif %}
{% if ch.about %}{{ ch.about | renderMD }}{% endif %}
{% endif %}
{% if filteredStories.size > 0 %}
<h2 id="stories">Stories</h2>
{% include 'storylist', stories: filteredStories %}
{% endif %}
{% if majorRelations.size > 0 or minorRelations.size > 0 %}
<h2 id="relationships">Relationships</h2>
{% for rel in majorRelations %}
{% assign otherCh = rel | getOtherCh: ch.name %}
{% assign otherChName = otherCh[0] %}
{% assign otherChObj = characters | getChByName: otherChName %}
{% assign relImg = rel | getRelImg %}
<section class="card" style="border-color: {{ otherChObj.color }}">
{% if relImg %}
{% assign alt = ch.name | append: ' and ' | append: otherChName %}
{% if relImg.author %}
{% assign alt = alt | append: ' by ' | append: relImg.author %}
{% endif %}
{% image relImg 500 alt 'float-right rel-img' %}
{% else %}
{% assign iconPath = otherChName | lowerCase | append: " thumb" %}
{% assign profilePath = otherChName | lowerCase | append: " profile" %}
{% image profilePath 200 otherChName 'float-right rel-img round' iconPath %}
{% endif %}
{% assign count = count | plus: 1 %}
<h3><a class="rel-h3" href="../{{ otherChName | lowerCase }}/">{{ otherChName }}</a></h3>
{% if otherCh[1] %}<p class="smaller-text lighter-text">{{ otherCh[1] }}</p>{% endif %}
{{ rel.desc | renderMD }}
</section>
{% endfor %}
{% if minorRelations.size > 0 %}
<ul>
{% for rel in minorRelations %}
{% assign otherCh = rel | getOtherCh: ch.name %}
<li><a href="../{{ otherCh[0] | lowerCase }}/">{{ otherCh[0] }}</a>{% if otherCh[1] %} ({{ otherCh[1] }}){% endif %}</li>
{% endfor %}
</ul>
{% endif %}
{% endif %}
{% if ch.trivia %}
<h2 id="trivia">Trivia</h2>
{{ ch.trivia | renderMD }}
{% endif %}
<h2 id="reference">Reference</h2>
{% assign palette = ch | getFullPalette %}
{% include 'palette' colors: palette %}
{% if ref %}
{% assign refAlt = ch.name | append: " reference sheet" %}
<a target="_blank" href="{% imageUrl ref 9999 'png' %}">
<figure>
{% image ref 500 refAlt 'max' %}
<figcaption>Click for full size!</figcaption>
</figure>
</a>
{% endif %}
{% if ch.note %}
<h3 id="design-notes">Design notes</h3>
{{ ch.note | renderMD }}
{% endif %}
{% if filteredGallery.size > 0 %}
<h2 id="gallery">Gallery</h2>
{% include 'gallery' imgs: filteredGallery %}
{% if big %}<div class="box-nav solid"><a href="gallery/">View full gallery</a></div>{% endif %}
{% endif %}
</div>
{% assign prev = pagination.previous %}
{% assign next = pagination.next %}
{% if prev or next %}
<hr class="solid-hr"/>
{% include 'prevnext' prev: prev, next: next %}
{% endif %}
{% include 'galleryModal' %}