forked from UshiSushi/itemlist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodlist.html
48 lines (43 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
---
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">
<input type="text" aria-label="Mod searchbox" class="search" id="modInput" onkeyup="filterTable('mod')" placeholder="{{- site.data.language.str_mod_search -}}">
<table class="sortable" style="display: table;">
<thead>
<tr>
<th>Mod Name</th>
{%- if site.mods.author -%}
<th style="width: 35%">Author</th>
{%- endif -%}
{%- if site.mods.version -%}
<th style="width: 20%">Version</th>
{%- endif -%}
</tr>
</thead>
<tbody>
{%- for mod in site.data.modlist -%}
<tr>
<td>
{%- if mod.steamId != nil and mod.steamId != "" and mod.steamId != "0" -%}
<a href="https://steamcommunity.com/sharedfiles/filedetails/?id={{- mod.steamId -}}">{{- mod.name -}}</a>
{%- else -%}
<a href="https://steamcommunity.com/workshop/browse/?appid=294100&searchtext={{- mod.name | url_encode -}}&browsesort=textsearch§ion=home">{{- mod.name -}}</a>
{%- endif -%}
</td>
{%- if site.mods.author -%}
<td>{{- mod.author -}}</td>
{%- endif -%}
{%- if site.mods.version -%}
<td>{{- mod.version -}}</td>
{%- endif -%}
</tr>
{%- endfor -%}
</tbody>
</table>
</div>