Skip to content

Commit

Permalink
Version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Nereare committed Aug 22, 2019
1 parent 86ac398 commit 110248a
Show file tree
Hide file tree
Showing 5 changed files with 115 additions and 2 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ Principles of a change log, excerpted from [Keep a Changelog](http://keepachange

## [Unreleased]

### Added
* ...

## [1.0.0] - `2019-08-22`

### Added
* Code of Conduct from [Contributor Covenant v1.4.1](https://www.contributor-covenant.org/).
* [License](LICENSE.md).
Expand All @@ -50,6 +55,7 @@ Principles of a change log, excerpted from [Keep a Changelog](http://keepachange
- Adventure;
- Chapter;
- Default;
- Index;
- Monster;
- Non-Epic Spell;
- Post;
Expand All @@ -66,3 +72,6 @@ Principles of a change log, excerpted from [Keep a Changelog](http://keepachange

### Change
* Bump `nokogiri` to `>= 1.10.4`.

[Unreleased]: https://github.com/Nereare/Grimoire/compare/1.0.0...HEAD
[1.0.0]: https://github.com/Nereare/Grimoire/releases/tag/1.0.0
89 changes: 89 additions & 0 deletions _layouts/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
---
layout: default
---

{{ content }}

<!-- Collections Title -->
{% assign: adventures = site.adventures | join: '' %}
{% assign: chapters = site.chapters | join: '' %}
{% assign: monsters = site.monsters | join: '' %}
{% assign: posts = site.posts | join: '' %}
{% assign: settlements = site.settlements | join: '' %}
{% assign: spells = site.spells | join: '' %}

{% if adventures != '' or chapters != '' or monsters != '' or posts != '' or settlements != '' or spells != '' %}
<h2 class="collections">Collections</h2>
{% endif %}

<!-- Adventure List -->
{% if adventures != '' %}
<div class="collection">
<h5>Adventures</h5>
<ul>
{% for adventure in site.adventures %}
<li><strong><a href="{{ adventure.url }}">{{ adventure.adventure.name }}</a>:</strong> {{ adventure.adventure.type | articulate: true }} for {{ adventure.adventure.char-num | default: 4 | pluralize: 'player character', 'player characters' }} of {% if adventure.adventure.lvl.range %}levels {{ adventure.adventure.lvl.min | ordinal }} through {{ adventure.adventure.lvl.max | ordinal }}{% else %}{{ adventure.adventure.lvl.lvl | ordinal }} level{% endif %}.</li>
{% endfor %}
</ul>
</div>
{% endif %}

<!-- Chapter List -->
{% if chapters != '' %}
<div class="collection">
<h5>Chapters</h5>
<ul>
{% for chapter in site.chapters %}
<li><strong><a href="{{ chapter.url }}">{{ chapter.title }}</a>:</strong> Chapter {{ chapter.chapter.number }} from {{ chapter.chapter.book }}.</li>
{% endfor %}
</ul>
</div>
{% endif %}

<!-- Monster List -->
{% if monsters != '' %}
<div class="collection">
<h5>Monsters</h5>
<ul>
{% for monster in site.monsters %}
<li><strong><a href="{{ monster.url }}">{{ monster.monster.name }}</a>:</strong> {{ monster.monster.size | articulate: true }} {{ monster.monster.type }}, CR {{ monster.monster.cr }}.</li>
{% endfor %}
</ul>
</div>
{% endif %}

<!-- Post List -->
{% if posts != '' %}
<div class="collection">
<h5>Posts</h5>
<ul>
{% for post in site.posts %}
<li><strong><a href="{{ post.url }}">{{ post.title }}</a>:</strong> {{ post.excerpt | strip_html | truncatewords: 50 }}(...)</li>
{% endfor %}
</ul>
</div>
{% endif %}

<!-- Settlement List -->
{% if settlements != '' %}
<div class="collection">
<h5>Settlements</h5>
<ul>
{% for settlement in site.settlements %}
<li><strong><a href="{{ settlement.url }}">{{ settlement.settlement.name }}</a>:</strong> {{ settlement.settlement.type | articulate: true }}.</li>
{% endfor %}
</ul>
</div>
{% endif %}

<!-- Spell List -->
{% if spells != '' %}
<div class="collection">
<h5>Spells</h5>
<ul>
{% for spell in site.spells %}
<li><strong><a href="{{ spell.url }}">{{ spell.spell.name }}</a>:</strong> {{ spell.spell.school | articulate: true }}{% if spell.spell.subschool %} ({{ spell.spell.subschool }}){% endif %}{% assign: descs = spell.spell.descriptor | join: '' %}{% if descs != '' %} [{{ spell.spell.descriptor | join: ', ' }}]{% endif %} for {{ spell.spell.level | join: ', ' }}.</li>
{% endfor %}
</ul>
</div>
{% endif %}
15 changes: 15 additions & 0 deletions css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -213,3 +213,18 @@ div.spell {
}
}
}

h2.collections {
margin-top: 2em;
margin-bottom: 0.5em;
}
.collection {
margin-bottom: 2em;
h5 { margin-bottom: 0.2em; }
ul { margin-bottom: 0; }
li {
list-style: none;
margin-left: 1.5em;
margin-bottom: 0.3em;
}
}
2 changes: 1 addition & 1 deletion index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: default
layout: index
---

# Quid Quis
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "Grimoire",
"version" : "0.26.15",
"version" : "1.0.0",
"description" : "A jekyll quasi-wiki for RPG-oriented worldbuilding.",
"license" : "CC-BY-SA-4.0",
"private" : false,
Expand Down

0 comments on commit 110248a

Please sign in to comment.