Re-write to cleanup all styles and such (#158)
* Rewrite and re-style the wiki * Fix links * Fix mobile width being wrong * Make the anticheat warning pretty * Fix root pages * Fix code blocks and cleanup some other bits * Fix search * Fix android and iOS sidebar links
This commit is contained in:
1 parent
17e1be5177
commit
09025ac3cb
93 files changed
+595
-3676
No files matched your search
@@ -1,31 +0,0 @@
|
||||
---
|
||||
layout: null
|
||||
permalink: /feed.xml
|
||||
---
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>{{ site.title | xml_escape }}</title>
|
||||
<description>{{ site.description | xml_escape }}</description>
|
||||
<link>{{ site.url }}{{ site.baseurl }}/</link>
|
||||
<atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml"/>
|
||||
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
|
||||
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
|
||||
<generator>Jekyll v{{ jekyll.version }}</generator>
|
||||
{% for post in site.posts limit:10 %}
|
||||
<item>
|
||||
<title>{{ post.title | xml_escape }}</title>
|
||||
<description>{{ post.content | xml_escape }}</description>
|
||||
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
|
||||
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
|
||||
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
|
||||
{% for tag in post.tags %}
|
||||
<category>{{ tag | xml_escape }}</category>
|
||||
{% endfor %}
|
||||
{% for cat in post.categories %}
|
||||
<category>{{ cat | xml_escape }}</category>
|
||||
{% endfor %}
|
||||
</item>
|
||||
{% endfor %}
|
||||
</channel>
|
||||
</rss>
|
||||
+2
-3
@@ -1,10 +1,9 @@
|
||||
---
|
||||
layout: page
|
||||
permalink: /
|
||||
---
|
||||
|
||||
<div style="text-align: center;">
|
||||
<img class="logoimg" src="https://geysermc.org/img/geyser.png" alt="geyser logo">
|
||||
<div class="my-3 text-center">
|
||||
<img src="https://geysermc.org/img/geyser.png" alt="geyser logo">
|
||||
</div>
|
||||
<br>
|
||||
|
||||
|
||||
+10
-34
@@ -1,12 +1,17 @@
|
||||
---
|
||||
title: Search
|
||||
sitemap: false
|
||||
permalink: /search/
|
||||
not_editable: true
|
||||
excluded_in_search: true
|
||||
layout: page
|
||||
---
|
||||
|
||||
<input class="form-control td-search-input" type="search" name="q" id="search-input" placeholder=" Search this site…" style="margin-top:5px" autofocus>
|
||||
<form class="d-flex" role="search" action="/search/">
|
||||
<div class="input-group">
|
||||
<button class="btn btn-outline-secondary" type="submit" id="button-search"><i class="bi bi-search"></i></button>
|
||||
<input type="text" name="q" class="form-control" placeholder="Search the site..." aria-label="Search the site..." aria-describedby="button-search">
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<br />
|
||||
|
||||
<p><span id="search-process">Loading</span> results <span id="search-query-container" style="display: none;">for "<strong id="search-query"></strong>"</span></p>
|
||||
@@ -22,36 +27,7 @@ excluded_in_search: true
|
||||
"{{ post.url | slugify }}": {
|
||||
"id": "{{ post.url | slugify }}",
|
||||
"title": "{{ post.title | xml_escape }}",
|
||||
"categories": "{{ post.categories | join: ", " | xml_escape }}",
|
||||
"url": " {{ post.url | xml_escape }}",
|
||||
"content": {{ post.content | strip_html | replace_regex: "[\s/\n]+"," " | strip | jsonify }}
|
||||
}
|
||||
{% assign added = true %}
|
||||
{% endunless %}
|
||||
{% endfor %}
|
||||
{% for post in site.posts %}
|
||||
{% unless post.excluded_in_search %}
|
||||
{% if added %},{% endif %}
|
||||
{% assign added = false %}
|
||||
"{{ post.url | slugify }}": {
|
||||
"id": "{{ post.url | slugify }}",
|
||||
"title": "{{ post.title | xml_escape }}",
|
||||
"categories": "{{ post.categories | join: ", " | xml_escape }}",
|
||||
"url": " {{ post.url | xml_escape }}",
|
||||
"content": {{ post.content | strip_html | replace_regex: "[\s/\n]+"," " | strip | jsonify }}
|
||||
}
|
||||
{% assign added = true %}
|
||||
{% endunless %}
|
||||
{% endfor %}
|
||||
{% for post in site.pages %}
|
||||
{% unless post.excluded_in_search %}
|
||||
{% if added %},{% endif %}
|
||||
{% assign added = false %}
|
||||
"{{ post.url | slugify }}": {
|
||||
"id": "{{ post.url | slugify }}",
|
||||
"title": "{{ post.title | xml_escape }}",
|
||||
"categories": "{{ post.categories | join: ", " | xml_escape }}",
|
||||
"url": " {{ post.url | xml_escape }}",
|
||||
"url": "{{ post.url | xml_escape | relative_url }}",
|
||||
"content": {{ post.content | strip_html | replace_regex: "[\s/\n]+"," " | strip | jsonify }}
|
||||
}
|
||||
{% assign added = true %}
|
||||
@@ -62,4 +38,4 @@ excluded_in_search: true
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/lunr.js/0.7.0/lunr.min.js"
|
||||
integrity="sha512-eWBLTdGT/I5jd80U2J0TyF2G+Fja6TiTYR6Ymeva7QgGUCy9EA/qhoppa4B/wYn7yWXZ8azgremVGtBi3EFDvg=="
|
||||
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||
<script src="{{ site.baseurl }}/assets/js/search.js"></script>
|
||||
<script src="{{ '/js/search.js' | relative_url }}"></script>
|
||||
@@ -1,19 +0,0 @@
|
||||
---
|
||||
layout: null
|
||||
permalink: /sitemap.xml
|
||||
---
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<url>
|
||||
<loc>/</loc>
|
||||
<lastmod>{{ "now" | date: "%Y-%m-%d" }}</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
{% for section in site.data.toc %}<url>
|
||||
<loc>{{ site.baseurl }}{{ section.url }}</loc>
|
||||
<lastmod>{{ "now" | date: "%Y-%m-%d" }}</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
{% endfor %}
|
||||
</urlset>
|
||||
@@ -1,21 +0,0 @@
|
||||
---
|
||||
title: Tags Index
|
||||
permalink: /tags/
|
||||
---
|
||||
|
||||
<h1 id="tags-index">Tags Index</h1>
|
||||
{% capture site_tags %}{% for tag in site.tags %}{% if tag %}{{ tag | first }}{% unless forloop.last %},{% endunless %}{% endif %}{% endfor %}{% endcapture %}{% assign docs_tags = "" %}{% for doc in site.docs %}{% assign ttags = doc.tags | join:',' | append:',' %}{% assign docs_tags = docs_tags | append:ttags %}{% endfor %}
|
||||
{% assign all_tags = site_tags | append:docs_tags %}{% assign tags_list = all_tags | split:',' | uniq | sort %}
|
||||
|
||||
{% for tag in tags_list %}{% if tag %}<h3 id="{{ tag | replace: '/', '-' }}" class="linked-section">{{ tag }}</h3>
|
||||
<div class="post-list" style="margin-bottom:40px">
|
||||
{% for post in site.tags[tag] %}<div class="tag-entry">
|
||||
<a href="{{- site.url -}}{{- post.url -}}">{{- post.title -}}</a>
|
||||
<time style="font-style:italic; float:right" datetime="{{- post.date | date_to_xmlschema -}}"> {{- post.date | date: "%B %d, %Y" -}}</time>
|
||||
</div>{%- endfor -%}
|
||||
{% for doc in site.docs %}{% if doc.tags contains tag %}
|
||||
<div class="tag-entry">
|
||||
<a href="{{- site.baseurl -}}{{- doc.url -}}">{{ doc.title }}</a>
|
||||
<time style="font-style:italic; float:right" datetime="{{- doc.date | date_to_xmlschema -}}"> {{- doc.date | date: "%B %d, %Y" -}}</time>
|
||||
</div>{% endif %}{% endfor %}
|
||||
</div>{% endif %}{%- endfor -%}
|
||||
Reference in new issue
Block a user