-
Notifications
You must be signed in to change notification settings - Fork 407
/
modlist.html
58 lines (49 loc) · 1.89 KB
/
modlist.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
title: Mod List
layout: page
permalink: /modlist
---
<script src="{{- 'assets/js/filter.js' | relative_url -}}"></script>
<link rel="stylesheet" href="{{- 'assets/css/core.css' | relative_url -}} " />
<script src="https://www.kryogenix.org/code/browser/sorttable/sorttable.js"></script>
<div id="mods">
{%- include search.html
id='mods'
type='Mod'
placeholder=site.data.language.search_mods -%}
<table class="sortable">
<thead>
<tr>
<th>{{- site.data.language.mod_name_header -}}</th>
{%- if site.mods.author -%}
<th class="author">{{- site.data.language.author_header -}}</th>
{%- endif -%}
{%- if site.mods.version -%}
<th class="version">{{- site.data.language.version_header -}}</th>
{%- endif -%}
</tr>
</thead>
<tbody>
{%- for mod in site.data.modlist -%}
{%- capture link -%}
{%- if mod.steamId == nil or mod.steamId == "" or mod.steamId == "0" -%}
https://steamcommunity.com/workshop/browse/?appid=294100&searchtext={{- mod.name | url_encode-}}
{%- else -%}
https://steamcommunity.com/sharedfiles/filedetails/?id={{- mod.steamId -}}
{%- endif -%}
{%- endcapture -%}
<tr>
<td>
<a href="{{- link -}}">{{- mod.name -}}</a>
</td>
{%- if site.mods.author -%}
<td>{{- mod.author -}}</td>
{%- endif -%}
{%- if site.mods.version -%}
<td>{{- mod.version -}}</td>
{%- endif -%}
</tr>
{%- endfor -%}
</tbody>
</table>
</div>