Skip to content

Commit

Permalink
Fix some fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Nereare committed Aug 2, 2022
1 parent 210bd5a commit e8d027a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
10 changes: 9 additions & 1 deletion _layouts/adventure.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,18 @@ <h1>{{ page.title | default: 'Adventure' }}</h1>
<blockquote class="meta">
<h5>{{ page.adventure.name | default: 'Adventure Name' }}</h5>
<p class="subtitle">An adventure for {{ page.adventure.char-num | default: 4 | pluralize: 'player character', 'player characters' }} of {% if page.adventure.lvl.range %}levels {{ page.adventure.lvl.min | ordinal }} through {{ page.adventure.lvl.max | ordinal }}{% else %}{{ page.adventure.lvl.lvl | ordinal }} level{% endif %}.</p>
{% if page.adventure.max-xp %}
<p><strong>Max XP:</strong> {{ page.adventure.max-xp | pretty_number }} xp</p>
{% endif %}
{% if page.adventure.max-gp %}
<p><strong>Max Gold:</strong> {{ page.adventure.max-gp | pretty_number }} gp</p>
<p><strong>&#35; Encounters:</strong> {{ page.adventure.encounters }}</p>
{% endif %}
{% if page.adventure.encounters %}
<p><strong>&#35; Encounters:</strong> {{ page.adventure.encounters | pretty_number }}</p>
{% endif %}
{% if page.adventure.type %}
<p><strong>Type:</strong> {{ page.adventure.type }}</p>
{% endif %}
{% if page.adventure.questline %}
<p><strong>Questline:</strong> <em>{{ page.adventure.questline.name }}</em>{% if page.adventure.questline.chapter %}, Chapter {{ page.adventure.questline.chapter }}{% endif %}</p>
{% endif %}
Expand Down
8 changes: 4 additions & 4 deletions docs/layouts/adventure.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ This layout has two columns:
| `lvl.min` | :x: | `string` | Minimum PC level suggested (*e.g.* `3`), required if `lvl.range` is `true` |
| `lvl.max` | :x: | `string` | Maximum PC level suggested, required if `lvl.range` is `true` |
| `lvl.lvl` | :x: | `string` | PC level suggested, required if `lvl.range` is `false` |
| `max-xp` | :heavy_check_mark: | `integer` | Maximum XP obtainable for the adventure |
| `max-gp` | :heavy_check_mark: | `integer` | Maximum gold obtainable for the adventure |
| `encounters` | :heavy_check_mark: | `integer` | Number of encounters available on the adventure |
| `type` | :heavy_check_mark: | `string` | Type of adventure (*e.g.* `Dungeon Delve`) |
| `max-xp` | :x: | `integer` | Maximum XP obtainable for the adventure |
| `max-gp` | :x: | `integer` | Maximum gold obtainable for the adventure |
| `encounters` | :x: | `integer` | Number of encounters available on the adventure |
| `type` | :x: | `string` | Type of adventure (*e.g.* `Dungeon Delve`) |
| `questline` | :x: | `object` | An object describing the questline to which this adventure pertains |
| `questline.name` | :x: | `string` | The name of the questline or campaign |
| `questline.chapter` | :x: | `string` | The chapter of the questline or campaign |
Expand Down
2 changes: 1 addition & 1 deletion docs/layouts/spell_example_5e.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ layout: default

parent: Spell
grand_parent: Layouts Guide
nav_order: 1
nav_order: 2
---

# 5e Spell Example
Expand Down

0 comments on commit e8d027a

Please sign in to comment.