diff --git a/_layouts/mod.html b/_layouts/mod.html index 72f0096..b3ddc59 100644 --- a/_layouts/mod.html +++ b/_layouts/mod.html @@ -128,11 +128,11 @@
{{ page.pyproject.project.description | strip_html }}
+{{ page.pyproject.project.description | strip_html }}
{%- endif -%} -{%- if page.legacy != "" -%} +{%- if page.legacy -%}This is a legacy mod, which will be run in compatibility mode. It may behave slightly odd, and it may stop working at some point in the future. diff --git a/_mods/NoAds.md b/_mods/NoAds.md deleted file mode 100644 index 142e798..0000000 --- a/_mods/NoAds.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -author: apple1417 -coop_support: Unknown -dependencies: [] -download: https://github.com/apple1417/willow2-sdk-mods/raw/master/.legacy/NoAds.zip -legacy: true -license: - name: GNU GPLv3 - url: https://choosealicense.com/licenses/gpl-3.0 -supported_games: -- BL2 -- TPS -- AoDK -title: No Ads -urls: - Source Code: https://github.com/apple1417/willow2-sdk-mods/ -version: '1.3' ---- -Prevents ads from showing. Includes both the obnoxious BL3 ads as well as the small MoTD DLC ads. - -![Demo Image](https://cdn.discordapp.com/attachments/294502426302742529/685460934101434384/49520_20200306135906_1.png) \ No newline at end of file diff --git a/_mods/no_ads.md b/_mods/no_ads.md new file mode 100644 index 0000000..52522f1 --- /dev/null +++ b/_mods/no_ads.md @@ -0,0 +1,3 @@ +--- +pyproject_url: https://raw.githubusercontent.com/apple1417/willow2-sdk-mods/master/no_ads/pyproject.toml +--- diff --git a/assets/js/pyproject-loader.js b/assets/js/pyproject-loader.js index 2154417..2a0312b 100644 --- a/assets/js/pyproject-loader.js +++ b/assets/js/pyproject-loader.js @@ -57,7 +57,7 @@ async function load_from_pyproject(url, fields) { if (fields?.games) { const ALLOWED_GAMES = {"BL2": "BL2", "TPS": "TPS", "AODK": "AoDK"}; - const game_list = pyproject?.tool?.sdkmod?.supported_games || ALLOWED_GAMES; + const game_list = pyproject?.tool?.sdkmod?.supported_games || Object.keys(ALLOWED_GAMES); const filtered_games = [...new Set(game_list.filter(x => x.toUpperCase() in ALLOWED_GAMES) .map(x => ALLOWED_GAMES[x.toUpperCase()]))]; if (filtered_games) { @@ -213,7 +213,8 @@ async function load_from_pyproject(url, fields) { const paragraph = document.createElement("p"); // Strip html from the description to not show any tags meant for the mod - paragraph.innerText = strip_decode_html(description); + // Set innerHTML so that newlines get converted like from the markdown (i.e. they don't) + paragraph.innerHTML = strip_decode_html(description); description_div.innerHTML = ""; description_div.appendChild(paragraph);