Skip to content

Commit f81f374

Browse files
committed
infobox refactor
now defined as simple yaml list rather than dt/dd
1 parent 93e9c8b commit f81f374

File tree

12 files changed

+116
-231
lines changed

12 files changed

+116
-231
lines changed

_includes/confursion/infobox.html

+15
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,20 @@
2525
</div>
2626
{% endif %}
2727
</div>
28+
{% if page.info.size > 0 %}
29+
<table class="ib-table"><tbody>
30+
{% for item in page.info %}
31+
<tr>
32+
<th scope="row">{{ item[0] }}</th>
33+
<td>
34+
<ul>
35+
{% for bullet in item[1] %}<li>{{ bullet | markdownify }}</li>
36+
{% endfor %}
37+
</ul>
38+
</td>
39+
</tr>
40+
{% endfor %}
41+
</tbody></table>
42+
{% endif %}
2843
</div>
2944
{% endif %}

_sass/confursion-style.scss

+29
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,35 @@
7777
padding: 5px 0;
7878
}
7979
}
80+
81+
table {
82+
font-size: 88%;
83+
line-height: 1.5em;
84+
margin: 0 0 10px 0;
85+
86+
tr, th, td {
87+
vertical-align: top;
88+
border: none;
89+
}
90+
91+
th {
92+
width: 8rem;
93+
padding: 0 5px 0px 10px;
94+
}
95+
td {
96+
padding: 0 0 5px 0;
97+
}
98+
99+
ul {
100+
margin: 0;
101+
padding: 0;
102+
}
103+
li {
104+
list-style-type: none;
105+
padding: 0 0 5px 0;
106+
}
107+
}
108+
80109
&:after {
81110
visibility: hidden;
82111
display: block;

_wiki/anthropic-shift.md

+8-12
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,14 @@ image: /img/foxtf-by-roina.png
77
caption:
88
A young woman undergoing the shift
99
<br> Art by [Roina](https://www.pixiv.net/member_illust.php?mode=medium&illust_id=73111346)
10-
list: |
11-
Symptoms
12-
: Fur growth, features growth, personality changes
13-
14-
Onset
15-
: Unknown
16-
17-
Duration
18-
: ~2-4 weeks, varies by form
19-
20-
Frequency
21-
: ~1000 per year
10+
info:
11+
Symptoms:
12+
- Fur growth
13+
- Tail and/or ear changes
14+
- Personality changes
15+
Onset: Unknown
16+
Duration: "~2-4 weeks, varies by form"
17+
Incidence: "~1% population"
2218
---
2319

2420
## Anthropic Shift

_wiki/characters/jane-doe.md

+7-9
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22
title: Jane
33
infobox: true
44
ititle: Jane Doe
5-
list: |
6-
Species
7-
: Deer
8-
9-
Gender
10-
: Female
11-
12-
Fur Color
13-
: Golden brown
5+
info:
6+
Species: Deer
7+
Gender: Female
8+
Colors:
9+
- Golden brown
10+
Eye Color: "?"
11+
Height: "?"
1412
---
1513

1614
Jane Doe

_wiki/characters/luna.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
title: Luna
33
infobox: true
4-
list: |
5-
Species
6-
: Cat
7-
8-
Gender
9-
: Female
10-
11-
Fur Color
12-
: Black
4+
info:
5+
Species: Cat
6+
Gender: Female
7+
Colors:
8+
- Black
9+
- Silver
10+
Eye Color: "?"
11+
Height: "?"
1312
---
1413

15-
# Luna
14+
# Luna
15+

_wiki/characters/marina.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ list: |
1010
1111
Fur Color
1212
: Brown
13+
info:
14+
Species: Otter
15+
Gender: Female
16+
Colors:
17+
- Brown
18+
- Blue
19+
Eye Color: Green
20+
Height: "?"
1321
---
1422

15-
# Marina
23+
# Marina
24+

_wiki/characters/shiny.md

+7-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
---
22
title: Shiny
33
infobox: true
4-
list: |
5-
Species
6-
: Cat
7-
8-
Gender
9-
: Male
10-
11-
Fur Color
12-
: Calico
4+
info:
5+
Species: Cat
6+
Gender: Male
7+
Colors:
8+
- Calico
9+
Eye Color: "?"
10+
Height: "?"
1311
---
1412

1513
Shiny

_wiki/characters/shizuka.md

+12-10
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@ title: Shizuka
33
infobox: true
44
ititle: Shizuka Valenheart
55
image: /img/pfp-shizuka.png
6-
list: |
7-
Species
8-
: Rabbit
9-
10-
Gender
11-
: Female
12-
13-
Fur Color
14-
: Tan
6+
caption: caption
7+
info:
8+
Species: Rabbit
9+
Gender: Female
10+
Colors:
11+
- Tan fur
12+
- Cream belly fur
13+
- Orange hair/ears
14+
Eye Color: Blue
15+
Height: 5'4"
1516
---
1617

17-
# Shizuka
18+
# Shizuka Valenheart
19+

_wiki/locations/furryhole-commune.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ title: Furryhole Commune
66
subtitle: Home of the Furries
77
image: /img/commune-greatroom.jpg
88
caption: Great room of the main lodge
9-
list: |
10-
Location
11-
: Near Seattle, WA
9+
info:
10+
Location: "Near Seattle, WA"
11+
Population: "?"
1212
---
1313

1414
# Furryhole Commune

_wiki/main_page.md

-4
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,4 @@ Places to go and things to see when you've turned furry
3636

3737
</div>
3838

39-
Markdown file references:
40-
4139
[Markup Sample Page](/markup)
42-
43-
[Another Sample Page with Infobox](/pagewinfobox)

_wiki/markup.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
---
2-
notoc: true
2+
title: Markup
3+
noedit: true
4+
infobox: true
5+
ititle: Markup Sample
6+
subtitle: Subtitle
7+
image: https://picsum.photos/512
8+
caption: Image caption
9+
info:
10+
Key: Value
11+
Foo: Bar
12+
Baz:
13+
- Fred
14+
- Barney
15+
- Wilma
16+
Quux: "[Linkable too](/)"
317
---
418

519
## HTML Elements

0 commit comments

Comments
 (0)