Skip to content

Commit 89097e8

Browse files
committed
Update entity list to reflect v6.3-v8.0 changes
1 parent c225f2e commit 89097e8

5 files changed

Lines changed: 51 additions & 38 deletions

File tree

_includes/ent_list_row.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<tr data-game="{{ include.game }}">
22
<td class="ent_list_name">
3-
{% assign entpage = site.pages | where_exp: "p", "p.url contains include.name" | first %}
3+
{% comment %} Need to have our name end with a slash to work properly {% endcomment %}
4+
{% assign appended_name = include.name | append: "/" %}
5+
{% assign entpage = site.pages | where_exp: "p", "p.url contains appended_name" | first %}
46
{% if entpage %}
57
<a href="{{ entpage.url }}">{{ include.name }}</a>
68
{% else %}

_layouts/article_ent.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ <h1 class="post-title">{{ page.title | escape }}</h1>
3535
{% assign grammar_article = "an existing" %}
3636
{% assign mapbase_ver = "all versions of Mapbase" %}
3737
{% else %}
38-
{% assign mapbase_ver = include.version | prepend: 'Mapbase ' | append: " or later" %}
38+
{% assign mapbase_ver = page.mb_version | prepend: 'Mapbase ' | append: " or later" %}
3939
{% endif %}
4040
{% else %}
4141
{% assign mapbase_ver = "any version of Mapbase" %}

0 commit comments

Comments
 (0)