Compare commits

..

No commits in common. "4cec339f0d19ae07e32c44655a1b67cb453113dd" and "ad0ab2576ca187164ef7617792d0bc07577a44f1" have entirely different histories.

6 changed files with 82 additions and 40 deletions

View File

@ -1,16 +1,3 @@
{%- macro articleList(tag) -%}
<ul>
{%- for article in collections[tag] -%}
<li>
<p class="item-list__title">
<a href="{{ article.url }}">{{ article.data.articleTitle }}</a>
</p>
<time datetime="{{ article.date }}">{{ article.date | formatDate }}</time>
</li>
{%- endfor -%}
</ul>
{%- endmacro -%}
{%- macro modEntry(params) -%} {%- macro modEntry(params) -%}
{% headingAnchor 3 %}{{ params.title }}{% endheadingAnchor %} {% headingAnchor 3 %}{{ params.title }}{% endheadingAnchor %}
<div class="mod-entry"> <div class="mod-entry">

View File

@ -1,16 +1,16 @@
<ul> <ul>
{% for content in contentList %} {% for content in contentList %}
<li> <li>
<p class="item-list__title"> <p class="item-list__title">
<a href="{{ content.url }}"> <a href="{{ content.url }}">
{% if content.data.pageTitle %}{{ content.data.pageTitle | safe }} {% if content.data.pageTitle %}{{ content.data.pageTitle | safe }}
{% elif content.data.title %}{{ content.data.title | safe }} {% elif content.data.title %}{{ content.data.title | safe }}
{% else %} {% else %}
<code>{{ content.url }}</code> <code>{{ content.url }}</code>
{% endif %} {% endif %}
</a> </a>
</p> </p>
<time datetime="{{ content.date }}">{{ content.date | formatDate }}</time> <time datetime="{{ content.date }}">{{ content.date | formatDate }}</time>
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>

View File

@ -12,10 +12,17 @@ eleventyNavigation:
order: 1 order: 1
--- ---
{% from "global/macros.njk" import articleList with context %}
## My {% cite "Cassette Beasts" %} Articles ## My {% cite "Cassette Beasts" %} Articles
{{ articleList("cassette beasts articles") }} <ul>
{%- for article in collections["cassette beasts articles"] -%}
<li>
<p class="item-list__title">
<a href="{{ article.url }}">{{ article.data.articleTitle }}</a>
</p>
<time datetime="{{ article.date }}">{{ article.date | formatDate }}</time>
</li>
{%- endfor -%}
</ul>
## {% cite "Cassette Beasts" %} Articles I Recommend ## {% cite "Cassette Beasts" %} Articles I Recommend

View File

@ -12,16 +12,41 @@ eleventyNavigation:
order: 1 order: 1
--- ---
{% from "global/macros.njk" import articleList with context %}
## My Articles for Both Games ## My Articles for Both Games
{{ articleList("kotor both articles") }} <ul>
{%- for article in collections["kotor both articles"] -%}
<li>
<p class="item-list__title">
<a href="{{ article.url }}">{{ article.data.articleTitle }}</a>
</p>
<time datetime="{{ article.date }}">{{ article.date | formatDate }}</time>
</li>
{%- endfor -%}
</ul>
## My KotOR 1 Articles ## My KotOR 1 Articles
{{ articleList("kotor 1 articles") }} <ul>
{%- for article in collections["kotor 1 articles"] -%}
<li>
<p class="item-list__title">
<a href="{{ article.url }}">{{ article.data.articleTitle }}</a>
</p>
<time datetime="{{ article.date }}">{{ article.date | formatDate }}</time>
</li>
{%- endfor -%}
</ul>
## My KotOR 2 Articles ## My KotOR 2 Articles
{{ articleList("kotor 2 articles") }} <ul>
{%- for article in collections["kotor 2 articles"] -%}
<li>
<p class="item-list__title">
<a href="{{ article.url }}">{{ article.data.articleTitle }}</a>
</p>
<time datetime="{{ article.date }}">{{ article.date | formatDate }}</time>
</li>
{%- endfor -%}
</ul>
## KotOR Articles I Recommend ## KotOR Articles I Recommend

View File

@ -12,10 +12,17 @@ eleventyNavigation:
order: 2 order: 2
--- ---
{% from "global/macros.njk" import articleList with context %}
## My KotOR Guides ## My KotOR Guides
{{ articleList("kotor guides") }} <ul>
{%- for article in collections["kotor guides"] -%}
<li>
<p class="item-list__title">
<a href="{{ article.url }}">{{ article.data.articleTitle }}</a>
</p>
<time datetime="{{ article.date }}">{{ article.date | formatDate }}</time>
</li>
{%- endfor -%}
</ul>
## KotOR 1 Guides by Others ## KotOR 1 Guides by Others
* [{% cite "Star Wars: Knights of the Old Republic" %} section](https://strategywiki.org/wiki/Star_Wars:_Knights_of_the_Old_Republic) on StrategyWiki * [{% cite "Star Wars: Knights of the Old Republic" %} section](https://strategywiki.org/wiki/Star_Wars:_Knights_of_the_Old_Republic) on StrategyWiki

View File

@ -6,11 +6,18 @@ eleventyNavigation:
order: 5 order: 5
--- ---
{% from "global/macros.njk" import articleList with context %}
## My Articles ## My Articles
Articles I have written. Articles I have written.
{{ articleList("my articles") }} <ul>
{%- for article in collections["my articles"] -%}
<li>
<p class="item-list__title">
<a href="{{ article.url }}">{{ article.data.articleTitle }}</a>
</p>
<time datetime="{{ article.date }}">{{ article.date | formatDate }}</time>
</li>
{%- endfor -%}
</ul>
## My Articles for Video Games with Their Own Pages ## My Articles for Video Games with Their Own Pages
* My {% cite "Cassette Beasts" %} shrine [Articles](/shrines/cassettebeasts/articles/) page * My {% cite "Cassette Beasts" %} shrine [Articles](/shrines/cassettebeasts/articles/) page
@ -18,4 +25,13 @@ Articles I have written.
## Featured Articles ## Featured Articles
Articles featuring other people's interview with me. Articles featuring other people's interview with me.
{{ articleList("featured articles") }} <ul>
{%- for article in collections["featured articles"] -%}
<li>
<p class="item-list__title">
<a href="{{ article.url }}">{{ article.data.articleTitle }}</a>
</p>
<time datetime="{{ article.date }}">{{ article.date | formatDate }}</time>
</li>
{%- endfor -%}
</ul>