Skip to content

Commit

Permalink
finally add prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed May 12, 2024
1 parent fadc03e commit 909a2f8
Show file tree
Hide file tree
Showing 79 changed files with 3,782 additions and 3,296 deletions.
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.min.js
_layouts/compress.html
18 changes: 18 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"semi": true,
"trailingComma": "all",
"singleQuote": false,
"printWidth": 100,
"useTabs": false,
"tabWidth": 2,
"bracketSpacing": true,
"arrowParens": "always",
"parser": "typescript",
"plugins": ["@shopify/prettier-plugin-liquid"],
"liquidSingleQuote": false,
"embeddedSingleQuote": false,
"overrides": [
{ "files": ["*.vue"], "options": { "parser": "vue" } },
{ "files": ["*.html"], "options": { "parser": "liquid-html" } }
]
}
49 changes: 31 additions & 18 deletions 404.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
---
layout: default
title: 404
permalink: /404.html
---
<div align="center">
<h1>Are you lost in The End?</h1>
<p style="margin-bottom: 0;">
Unfortunately, the page you requested doesn't exist!<br>Try checking your spelling or going to the <strong><a href="/">main page</a></strong> to find what you were looking for.
</p>
<div id="animation_container">
<img id="tnt" src="{{ site.baseurl }}/image/404/tnt_side.png" alt="Boom" onclick="boom()">
<img id="diamond" class="hidden" src="{{ site.baseurl }}/image/404/diamond.png" alt="Diamond" onmouseover="boom()">
<img id="explosion" class="hidden" src="{{ site.baseurl }}/image/404/explosion_0.png" alt="Boom">
</div>
</div>
<link rel="stylesheet" href="{{ site.baseurl }}/css/404.css" id="darkcss">
<script defer src="{{ site.baseurl }}/js/404.js" ></script>
---
layout: default
title: 404
permalink: /404.html
---
<div align="center">
<h1>Are you lost in The End?</h1>
<p style="margin-bottom: 0;">
Unfortunately, the page you requested doesn't exist!<br>
Try checking your spelling or going to the <strong><a href="/">main page</a></strong> to find
what you were looking for.
</p>
<div id="animation_container">
<img id="tnt" src="{{ site.baseurl }}/image/404/tnt_side.png" alt="Boom" onclick="boom()">
<img
id="diamond"
class="hidden"
src="{{ site.baseurl }}/image/404/diamond.png"
alt="Diamond"
onmouseover="boom()"
>
<img
id="explosion"
class="hidden"
src="{{ site.baseurl }}/image/404/explosion_0.png"
alt="Boom"
>
</div>
</div>
<link rel="stylesheet" href="{{ site.baseurl }}/css/404.css" id="darkcss">
<script defer src="{{ site.baseurl }}/js/404.js"></script>
65 changes: 29 additions & 36 deletions _includes/changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,39 +9,35 @@ <h2 class="display-4 my-5 text-center">Changelog</h2>
{%- assign counter = counter | plus: 1 -%}

{% if counter < CHANGELOG_LIMIT %}

{%- if page.single-changelog == nul -%}
<h1 class="card-title text-center">{{ version.first[0] }}</h1>
{%- if page["single-changelog"] == nul -%}
<h1 class="card-title text-center">{{ version.first[0] }}</h1>
{%- endif -%}
{%- if page.expanded-changelog != nul -%}
{%- if page["expanded-changelog"] != nul -%}
{%- for type in version.first[1] -%}
<h3 class="card-title text-left">{{ type.first[0] }}:</h3>
{%- for game-version in type.first[1] -%}
<h4 class="card-title text-left">{{ game-version.first[0] }}:</h4>
<ul class="text-left">
{%- for category in game-version.first[1] -%}
{%- if category.first[1] == nul -%}

<li class="card-title h5 text-left">{{ category }}</li>

{%- else -%}

<li class="card-title h5 text-left">{{ category.first[0] }}:</li>
<ul class="text-left">
{%- for item in category.first[1] -%}
{%- if item.first[1] -%}
<li class="card-title text-left">{{ item.first[0] }}:</li>
<ul class="text-left">
{%- for sub-item in item.first[1] -%}
<li class="card-title text-left">{{ sub-item }}</li>
{%- endfor -%}
{%- for sub-item in item.first[1] -%}
<li class="card-title text-left">{{ sub-item }}</li>
{%- endfor -%}
</ul>
{%- else -%}
<li class="card-title text-left">{{ item }}</li>
{%- endif -%}
{%- endfor -%}
</ul>

{%- endif -%}
{%- endfor -%}
</ul>
Expand All @@ -61,38 +57,35 @@ <h4 class="card-title text-left">{{ category.first[0] }}:</h4>
{%- endfor -%}
{%- endif -%}
<hr>

{%- endif -%}
{%- endfor -%}

{%- assign counter = 0 -%}

{%- if page.single-changelog == null -%}
<button id="old-btn" onclick="ShowAll()" class="btn btn-dark btn-lg block">All</button>
{%- assign counter = 0 -%}

<div id="old" style="display: none">
<hr>
{%- for version in changelog -%}
{%- assign counter = counter | plus: 1 -%}
{%- if page["single-changelog"] == null -%}
<button id="old-btn" onclick="ShowAll()" class="btn btn-dark btn-lg block">All</button>

{% if counter >= CHANGELOG_LIMIT %}
<div id="old" style="display: none">
<hr>
{%- for version in changelog -%}
{%- assign counter = counter | plus: 1 -%}

<h1 class="card-title text-center">{{ version.first[0] }}</h1>
{%- for type in version.first[1] -%}
<h3 class="card-title text-left">{{ type.first[0] }}:</h3>
{%- for category in type.first[1] -%}
<h4 class="card-title text-left">{{ category.first[0] }}:</h4>
<ul class="text-left">
{%- for item in category.first[1] -%}
<li>{{ item }}</li>
{% if counter >= CHANGELOG_LIMIT %}
<h1 class="card-title text-center">{{ version.first[0] }}</h1>
{%- for type in version.first[1] -%}
<h3 class="card-title text-left">{{ type.first[0] }}:</h3>
{%- for category in type.first[1] -%}
<h4 class="card-title text-left">{{ category.first[0] }}:</h4>
<ul class="text-left">
{%- for item in category.first[1] -%}
<li>{{ item }}</li>
{%- endfor -%}
</ul>
{%- endfor -%}
</ul>
{%- endfor -%}
{%- endfor -%}
<hr>
{%- endif -%}
{%- endfor -%}
<hr>

{%- endif -%}
{%- endfor -%}
<button onclick="ShowAll()" class="btn btn-dark btn-lg block">Hide</button>
{%- endif -%}
<button onclick="ShowAll()" class="btn btn-dark btn-lg block">Hide</button>
{%- endif -%}
</div>
2 changes: 1 addition & 1 deletion _includes/empty_carousel.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% for i in (1..3) %}
<div class="item">
<div class="card img-card">
<div class="placeholder"></div>
<div class="placeholder"></div>
<h3>Coming Soon</h3>
</div>
</div>
Expand Down
4 changes: 0 additions & 4 deletions _includes/matching_articles.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
{% for page in site.pages %}
{% if page.path contains include.search_string %}

{% assign counter = counter | plus: 1 %}

{% if counter < 7 %}

<a class="card img-card" href="{{ site.baseurl }}{{ page.url }}">
<img src="{{ site.baseurl }}/image/{{ page.header-img }}" alt="{{ page.title }}">
<h3>{{ page.title }}</h3>
</a>

{% endif %}

{% endif %}
{% endfor %}
Loading

0 comments on commit 909a2f8

Please sign in to comment.