jekyll-theme-primcraft 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +41 -0
  4. data/_includes/carousel.html +66 -0
  5. data/_includes/disqus_comments.html +20 -0
  6. data/_includes/fmi.html +16 -0
  7. data/_includes/footer.html +63 -0
  8. data/_includes/full-post-list.html +9 -0
  9. data/_includes/google-analytics.html +12 -0
  10. data/_includes/head.html +15 -0
  11. data/_includes/header.html +46 -0
  12. data/_includes/icon-github.html +1 -0
  13. data/_includes/icon-github.svg +1 -0
  14. data/_includes/icon-twitter.html +1 -0
  15. data/_includes/icon-twitter.svg +1 -0
  16. data/_includes/mct.html +1 -0
  17. data/_includes/page-tags.html +10 -0
  18. data/_includes/page-title.html +5 -0
  19. data/_includes/post-link.html +8 -0
  20. data/_includes/post-preview.html +26 -0
  21. data/_includes/recent-annoucements.html +7 -0
  22. data/_includes/recent-post-list.html +24 -0
  23. data/_includes/recent.html +6 -0
  24. data/_includes/related.html +16 -0
  25. data/_includes/server-nav.html +24 -0
  26. data/_includes/server-splash.html +36 -0
  27. data/_includes/server-status.html +19 -0
  28. data/_includes/server-tags.html +4 -0
  29. data/_includes/social.html +14 -0
  30. data/_includes/tfna.html +10 -0
  31. data/_includes/toc.html +8 -0
  32. data/_includes/username.html +11 -0
  33. data/_layouts/archive.html +23 -0
  34. data/_layouts/category.html +9 -0
  35. data/_layouts/content.html +14 -0
  36. data/_layouts/default.html +16 -0
  37. data/_layouts/home.html +37 -0
  38. data/_layouts/page.html +21 -0
  39. data/_layouts/post.html +39 -0
  40. data/_layouts/server.html +33 -0
  41. data/_layouts/tag.html +9 -0
  42. data/_layouts/user.html +41 -0
  43. data/assets/64x64.svg +1 -0
  44. data/assets/js/bootstrap.min.js +7 -0
  45. data/assets/js/jquery.min.js +2 -0
  46. data/assets/js/popper.min.js +5 -0
  47. data/assets/jumbotron.jpg +0 -0
  48. data/assets/main.scss +236 -0
  49. data/assets/pagetop.jpg +0 -0
  50. metadata +218 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 6e900571468f7a18a3efa5d0f3776ec5bc580eee600fc4be65d5ca0ffe9c7dd7
4
+ data.tar.gz: 40e156045e1e91b4002182f511e8279b9bb004865e72bfe21da66c96a18b055b
5
+ SHA512:
6
+ metadata.gz: 13e088a6a5cb59e0047faa6206230a9e76e5c6708b2a86c1fd03e45322c1e277ab20f20a0b4a4c617a27aefacfc899e1a7c48cd373edce54f706b9c818d2e182
7
+ data.tar.gz: 46dc4aba6ebfaddb27b902ee34366f162ed200fbdd93924172b3909b53ad2aeb1a1e58ab152e87e1a50263c7f7e0853d18f58a5a9cc9b82d7fcafd92b4dec3a8
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 BakaSoniji
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # jekyll-theme-primcraft
2
+
3
+ A jekyll theme custom made for primcraft.com.
4
+
5
+
6
+ ## Installation
7
+
8
+ Add this line to your Jekyll site's `Gemfile`:
9
+
10
+ ```ruby
11
+ gem "jekyll-theme-primcraft"
12
+ ```
13
+
14
+ And add this line to your Jekyll site's `_config.yml`:
15
+
16
+ ```yaml
17
+ theme: jekyll-theme-primcraft
18
+ ```
19
+
20
+ And then execute:
21
+
22
+ $ bundle
23
+
24
+ Or install it yourself as:
25
+
26
+ $ gem install jekyll-theme-primcraft
27
+
28
+
29
+ ## Development
30
+
31
+ To set up your environment to develop this theme, run `bundle install`.
32
+
33
+ Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
34
+
35
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
36
+ To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-primcraft.gemspec` accordingly.
37
+
38
+ ## License
39
+
40
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
41
+
@@ -0,0 +1,66 @@
1
+ {%- if include.page.carousel.size > 0 -%}
2
+ <div id="carousel-indicators" class="carousel slide my-5" data-ride="carousel">
3
+ <ol class="carousel-indicators">
4
+ {%- for car in include.page.carousel limit: 1 -%}
5
+ <li data-target="#carousel-indicators" data-slide-to="{{ forloop.index0 }}" class="active"></li>
6
+ {%- endfor -%}
7
+ {%- for car in include.page.carousel offset: 1 -%}
8
+ <li data-target="#carousel-indicators" data-slide-to="{{ forloop.index }}"></li>
9
+ {%- endfor -%}
10
+ </ol>
11
+ <div class="carousel-inner">
12
+ {%- for car in include.page.carousel limit: 1 -%}
13
+ <div class="carousel-item active">
14
+ {%- assign src = car.src | prepend: 'carousel/' | prepend: include.page.url | prepend: '/assets' | prepend:
15
+ site.baseurl_root -%}
16
+ {%- capture p_x -%}{{ car.position.x | default: "center" }}{%- endcapture -%}
17
+ {%- capture p_y -%}{{ car.position.y | default: "center" }}{%- endcapture -%}
18
+ <img src="{{ src }}" class="d-block w-100" style="object-position: {{p_x}} {{p_y}};">
19
+ <div class="carousel-caption">
20
+ {%- if car.caption.titles[site.lang] -%}
21
+ <h3>{{ car.caption.titles[site.lang] }}</h3>
22
+ {%- elsif car.caption.title -%}
23
+ <h3>{{ car.caption.title }}</h3>
24
+ {%- endif -%}
25
+ {%- if car.caption.descriptions[site.lang] -%}
26
+ <p>{{ car.caption.descriptions[site.lang] }}</p>
27
+ {%- elsif car.caption.description -%}
28
+ <p>{{ car.caption.description }}</p>
29
+ {%- endif -%}
30
+ </div>
31
+ </div>
32
+ {%- endfor -%}
33
+ {%- for car in include.page.carousel offset: 1 -%}
34
+ <div class="carousel-item">
35
+ {%- assign src = car.src | prepend: 'carousel/' | prepend: include.page.url | prepend: '/assets' | prepend:
36
+ site.baseurl_root -%}
37
+ {%- capture p_x -%}{{ car.position.x | default: "center" }}{%- endcapture -%}
38
+ {%- capture p_y -%}{{ car.position.y | default: "center" }}{%- endcapture -%}
39
+ <img src="{{ src }}" class="d-block w-100" style="object-position: {{p_x}} {{p_y}};">
40
+ <div class="carousel-caption">
41
+ {%- if car.caption.titles[site.lang] -%}
42
+ <h3>{{ car.caption.titles[site.lang] }}</h3>
43
+ {%- elsif car.caption.title -%}
44
+ <h3>{{ car.caption.title }}</h3>
45
+ {%- endif -%}
46
+ {%- if car.caption.descriptions[site.lang] -%}
47
+ <p>{{ car.caption.descriptions[site.lang] }}</p>
48
+ {%- elsif car.caption.description -%}
49
+ <p>{{ car.caption.description }}</p>
50
+ {%- endif -%}
51
+ </div>
52
+ </div>
53
+ {%- endfor -%}
54
+ </div>
55
+ <a class="carousel-control-prev" href="#carousel-indicators" role="button" data-slide="prev">
56
+ <span class="carousel-control-prev-icon" aria-hidden="true"></span>
57
+ <span class="sr-only">Previous</span>
58
+ </a>
59
+ <a class="carousel-control-next" href="#carousel-indicators" role="button" data-slide="next">
60
+ <span class="carousel-control-next-icon" aria-hidden="true"></span>
61
+ <span class="sr-only">Next</span>
62
+ </a>
63
+ </div>
64
+ {%- else -%}
65
+ <div class="pagetop"></div>
66
+ {%- endif -%}
@@ -0,0 +1,20 @@
1
+ {%- if page.comments != false and jekyll.environment == "production" -%}
2
+
3
+ <div id="disqus_thread"></div>
4
+ <script>
5
+ var disqus_config = function () {
6
+ this.page.url = '{{ page.url | absolute_url }}';
7
+ this.page.identifier = '{{ page.url | absolute_url }}';
8
+ };
9
+
10
+ (function() {
11
+ var d = document, s = d.createElement('script');
12
+
13
+ s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
14
+
15
+ s.setAttribute('data-timestamp', +new Date());
16
+ (d.head || d.body).appendChild(s);
17
+ })();
18
+ </script>
19
+ <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
20
+ {%- endif -%}
@@ -0,0 +1,16 @@
1
+ {%- comment -%}Front Matter Internationlization{%- endcomment -%}
2
+ {%- if include.datas[site.lang] -%}
3
+ {{ include.datas[site.lang] }}
4
+ {%- else -%}
5
+ {%- for lang in site.languages -%}
6
+ {%- if include.datas[lang] -%}
7
+ {{ include.datas[lang] }}
8
+ {%- break -%}
9
+ {%- endif -%}
10
+ {%- if forloop.index == site.languages.size -%}
11
+ {%- if include.data -%}
12
+ {{ include.data }}
13
+ {%- endif -%}
14
+ {%- endif -%}
15
+ {%- endfor -%}
16
+ {%- endif -%}
@@ -0,0 +1,63 @@
1
+ <footer class="text-center">
2
+ <div class="footer-main">
3
+ <div class="container">
4
+ {%- if site.data.social[site.lang] -%}
5
+ <ul class="list-inline footer-social">
6
+ {%- for entry in site.data.social[site.lang] -%}
7
+ <li class="list-inline-item">
8
+ {%- if entry.popover -%}
9
+ <a href="#/" data-toggle="popover" data-placement="top" data-trigger="focus" title="{{ entry.name }}"
10
+ data-content="{{ entry.popover }}">
11
+ <i class="{%- if entry.icon-class -%}{{ entry.icon-class }}{%- else -%}fab fa-{{ entry.id }}{% endif %} fa-2x"></i>
12
+ </a>
13
+ {%- elsif entry.link -%}
14
+ <a href="{{ entry.link }}">
15
+ <i class="{%- if entry.icon-class -%}{{ entry.icon-class }}{%- else -%}fab fa-{{ entry.id }}{% endif %} fa-2x"></i>
16
+ </a>
17
+ {%- endif -%}
18
+ </li>
19
+ {% endfor %}
20
+ </ul>
21
+ {%- endif -%}
22
+ <ul class="list-unstyled text-muted">
23
+ <li>{% t global.mojang-disclaimer %}</li>
24
+ <li>{% t global.cc-by-4-0-before %} <a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a> {% t global.cc-by-4-0-after %}</li>
25
+ <li>{% t global.last-generated %} {{site.time}}</li>
26
+ </ul>
27
+ </div>
28
+ </div>
29
+ <div class="footer-copyright">
30
+ © 2014 - {{ site.time | date: "%Y" }} PrimCraft
31
+ </div>
32
+ </footer>
33
+
34
+ </footer>
35
+ <script src="/assets/js/jquery.min.js"></script>
36
+ <script src="/assets/js/popper.min.js"></script>
37
+ <script src="/assets/js/bootstrap.min.js"></script>
38
+
39
+ <script>
40
+ $(document).ready(function () {
41
+ $('[data-toggle="popover"]').popover();
42
+ });
43
+ $('.popover-dismiss').popover({
44
+ trigger: 'focus'
45
+ })
46
+ </script>
47
+ {%- unless page.title -%}
48
+ <script>
49
+ $.getJSON('https://api.mcsrvstat.us/1/primcraft.com', function (status) {
50
+ if (status.offline) {
51
+ $("#is-online").addClass("minecraft-text-4");
52
+ $("#is-online").html("Offline?");
53
+ $("#server-motd").html("---");
54
+ } else {
55
+ $("#online-count").html(status.players.online);
56
+ $("#capacity-count").html(status.players.max);
57
+ var motd = status.motd.raw.join("\n").replace(/\u00A7([0-9a-fr])([^\u00A7]*)/gi, '<span class="minecraft-text-$1">$2</span>');
58
+ $("#server-motd").html(motd);
59
+ $("#server-icon").attr("src", status.icon);
60
+ }
61
+ });
62
+ </script>
63
+ {%- endunless -%}
@@ -0,0 +1,9 @@
1
+ {%- if include.limit -%}
2
+ {%- for post in include.posts limit: include.limit -%}
3
+ {%- include post-preview.html posts = include.posts -%}
4
+ {%- endfor -%}
5
+ {%- else -%}
6
+ {%- for post in include.posts -%}
7
+ {%- include post-preview.html posts = include.posts -%}
8
+ {%- endfor -%}
9
+ {%- endif -%}
@@ -0,0 +1,12 @@
1
+ <script>
2
+ if(!(window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1")) {
3
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
4
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
5
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
6
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
7
+
8
+ ga('create', '{{ site.google_analytics }}', 'auto');
9
+ ga('send', 'pageview');
10
+ }
11
+ </script>
12
+
@@ -0,0 +1,15 @@
1
+ <head>
2
+ <meta charset="utf-8">
3
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
5
+ <title>
6
+ {% include page-title.html page = page append = " | " %}{{ site.title }} - {% t global.primcraft-description %}
7
+ </title>
8
+ <link rel="stylesheet" href="{{ "/assets/main.css" | prepend: site.baseurl_root }}">
9
+ <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/"
10
+ crossorigin="anonymous">
11
+ {%- feed_meta -%}
12
+ {%- if jekyll.environment == 'production' and site.google_analytics -%}
13
+ {%- include google-analytics.html -%}
14
+ {%- endif -%}
15
+ </head>
@@ -0,0 +1,46 @@
1
+ <div class="navbar navbar-expand-lg fixed-top navbar-dark bg-dark">
2
+ <div class="container">
3
+ <a rel="author" href="{{ "/" | relative_url }}" class="navbar-brand">{{ site.title | escape }}</a>
4
+ <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
5
+ <span class="navbar-toggler-icon"></span>
6
+ </button>
7
+ <div class="collapse navbar-collapse" id="navbarResponsive">
8
+ {%- if site.navs -%}
9
+ <ul class="navbar-nav">
10
+ {%- for item in site.navs -%}
11
+ {%- capture title -%}{% t item.name %}{%- endcapture -%}
12
+ {%- assign page-title = page.titles[site.lang] | default: page.title -%}
13
+ <li class="nav-item{% if page-title == title %} active {% endif %}">
14
+ <a class="nav-link" href="{{ item.link | relative_url }}">
15
+ {% t item.name %}
16
+ </a>
17
+ </li>
18
+ {%- endfor -%}
19
+ </ul>
20
+ {%- endif -%}
21
+ <ul class="nav navbar-nav ml-auto">
22
+ <li class="nav-item dropdown">
23
+ <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" id="languages" aria-expanded="false">
24
+ <i class="fas fa-globe"></i> <span class="caret"></span>
25
+ </a>
26
+ <div class="dropdown-menu dropdown-menu-right" aria-labelledby="languages">
27
+ <a class="dropdown-item" href="#">{{ site.languageNames[site.lang] }}</a>
28
+ <div class="dropdown-divider"></div>
29
+ {% for lang in site.languageNames %}
30
+ {% if lang[0] == site.lang %} {% continue %} {% endif %}
31
+ {% if page.namespace %}
32
+ <a class="dropdown-item" href="{% tl {{ page.namespace }} {{ lang[0] }} %}">{{ lang[1] }}</a>
33
+ {% else %}
34
+ <a class="dropdown-item" href="{{ site.baseurl_root }}
35
+ {%- unless lang[0] == site.defaultLang -%}
36
+ /{{ lang[0] }}
37
+ {%- endunless -%}
38
+ {{page.url}}">{{ lang[1] }}</a>
39
+ {% endif %}
40
+ {% endfor %}
41
+ </div>
42
+ </li>
43
+ </ul>
44
+ </div>
45
+ </div>
46
+ </div>
@@ -0,0 +1 @@
1
+ <a href="https://github.com/{{ include.username }}"><span class="icon icon--github">{% include icon-github.svg %}</span><span class="username">{{ include.username }}</span></a>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 16 16" width="16px" height="16px"><path fill="#828282" d="M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761 c0,3.428,2.223,6.337,5.307,7.363c0.388,0.071,0.53-0.168,0.53-0.374c0-0.184-0.007-0.672-0.01-1.32 c-2.159,0.469-2.614-1.04-2.614-1.04c-0.353-0.896-0.862-1.135-0.862-1.135c-0.705-0.481,0.053-0.472,0.053-0.472 c0.779,0.055,1.189,0.8,1.189,0.8c0.692,1.186,1.816,0.843,2.258,0.645c0.071-0.502,0.271-0.843,0.493-1.037 C4.86,11.425,3.049,10.76,3.049,7.786c0-0.847,0.302-1.54,0.799-2.082C3.768,5.507,3.501,4.718,3.924,3.65 c0,0,0.652-0.209,2.134,0.796C6.677,4.273,7.34,4.187,8,4.184c0.659,0.003,1.323,0.089,1.943,0.261 c1.482-1.004,2.132-0.796,2.132-0.796c0.423,1.068,0.157,1.857,0.077,2.054c0.497,0.542,0.798,1.235,0.798,2.082 c0,2.981-1.814,3.637-3.543,3.829c0.279,0.24,0.527,0.713,0.527,1.437c0,1.037-0.01,1.874-0.01,2.129 c0,0.208,0.14,0.449,0.534,0.373c3.081-1.028,5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z"/></svg>
@@ -0,0 +1 @@
1
+ <a href="https://twitter.com/{{ include.username }}"><span class="icon icon--twitter">{% include icon-twitter.svg %}</span><span class="username">{{ include.username }}</span></a>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 16 16" width="16px" height="16px"><path fill="#828282" d="M15.969,3.058c-0.586,0.26-1.217,0.436-1.878,0.515c0.675-0.405,1.194-1.045,1.438-1.809c-0.632,0.375-1.332,0.647-2.076,0.793c-0.596-0.636-1.446-1.033-2.387-1.033c-1.806,0-3.27,1.464-3.27,3.27 c0,0.256,0.029,0.506,0.085,0.745C5.163,5.404,2.753,4.102,1.14,2.124C0.859,2.607,0.698,3.168,0.698,3.767 c0,1.134,0.577,2.135,1.455,2.722C1.616,6.472,1.112,6.325,0.671,6.08c0,0.014,0,0.027,0,0.041c0,1.584,1.127,2.906,2.623,3.206 C3.02,9.402,2.731,9.442,2.433,9.442c-0.211,0-0.416-0.021-0.615-0.059c0.416,1.299,1.624,2.245,3.055,2.271 c-1.119,0.877-2.529,1.4-4.061,1.4c-0.264,0-0.524-0.015-0.78-0.046c1.447,0.928,3.166,1.469,5.013,1.469 c6.015,0,9.304-4.983,9.304-9.304c0-0.142-0.003-0.283-0.009-0.423C14.976,4.29,15.531,3.714,15.969,3.058z"/></svg>
@@ -0,0 +1 @@
1
+ <span class ="minecraft-text-{{include.c}}">{{include.t}}</span>
@@ -0,0 +1,10 @@
1
+ {%- for cat in include.page.categories -%}
2
+ <li class="list-inline-item">
3
+ <a href="{{ cat | slugify | prepend: '/category/' | prepend: site.baseurl }}" class="badge badge-pill badge-primary">{%- t cat -%}</a>
4
+ </li>
5
+ {%- endfor -%}
6
+ {%- for tag in include.page.tags -%}
7
+ <li class="list-inline-item">
8
+ <a href="{{ tag | slugify | prepend: '/tag/' | prepend: site.baseurl }}" class="badge badge-pill badge-light">{%- t tag -%}</a>
9
+ </li>
10
+ {%- endfor -%}
@@ -0,0 +1,5 @@
1
+ {%- if include.page.["titles"][site.lang] -%}
2
+ {{ include.page.titles[site.lang] | append: include.append }}
3
+ {%- elsif include.page.title -%}
4
+ {{ include.page.title | append: include.append }}
5
+ {%- endif -%}
@@ -0,0 +1,8 @@
1
+ {%- assign post = include.post -%}
2
+ <a href="{{ post.url | relative_url }}">
3
+ {%- if post.titles[site.lang] -%}
4
+ {{ post.titles[site.lang] }}
5
+ {%- else -%}
6
+ {{ post.title }}
7
+ {%- endif -%}
8
+ </a>
@@ -0,0 +1,26 @@
1
+ <div class="post-list-item">
2
+ <h3>
3
+ {%- include post-link.html post = post -%}
4
+ </h3>
5
+ <p>
6
+ {%- if site.show_excerpts -%}
7
+ {{ post.excerpt | strip_html }}
8
+ {%- endif -%}
9
+ </p>
10
+ {%- capture total_words -%}{{ post.content | number_of_words }}{%- endcapture -%}
11
+ {%- capture excerpt_words -%}{{ post.excerpt | number_of_words }}{%- endcapture -%}
12
+ {%- unless total_words == excerpt_words -%}
13
+ <p class="mt-4 text-center">
14
+ <a href="{{ post.url | relative_url }}">{% t global.read-more %}</a>
15
+ </p>
16
+ {%- endunless -%}
17
+ {%- assign date_format = site.dateFormats[site.lang] | default: "%b %-d, %Y" -%}
18
+ <span class="text-muted">
19
+ {{ post.date | date: date_format }}
20
+ {% if post.author %}
21
+ {%- include username.html user = post.author prepend = " | "-%}
22
+ {% endif %}</span>
23
+ <ul class="list-inline d-inline mt-md-1">
24
+ {%- include page-tags.html page = post -%}
25
+ </ul>
26
+ </div>
@@ -0,0 +1,7 @@
1
+ <div class="card mb-4">
2
+ <div class="card-header">{% t global.announcements %}</div>
3
+ <ul class="list-group list-group-flush">
4
+ {%- assign filtered-post-list = site.posts | where: "list-filter", "announcement" -%}
5
+ {%- include recent-post-list.html posts = filtered-post-list -%}
6
+ </ul>
7
+ </div>
@@ -0,0 +1,24 @@
1
+ {%- if include.posts.size > 0 -%}
2
+ {%- for post in include.posts limit:1 -%}
3
+ <a href="{{ post.url | relative_url }}" class="list-group-item list-group-item-action flex-column align-items-start">
4
+ <div class="d-flex w-100 justify-content-between">
5
+ <h5 class="mb-1">{{ post.title | escape }}</h5>
6
+ {%- assign date_format = site.dateFormats[site.lang] | default: "%b %-d, %Y" -%}
7
+ <small class="text-muted" style="min-width: 6em">{{ post.date | date: date_format }}</small>
8
+ </div>
9
+ <p class="mb-1">{{ post.excerpt | strip_html }}</p>
10
+ </a>
11
+ {%- endfor -%}
12
+ {%- if include.posts.size > 1 -%}
13
+ {%- for post in include.posts offset:1 limit:4 -%}
14
+ <a href="{{ post.url | relative_url }}" class="list-group-item list-group-item-action flex-column align-items-start">
15
+ <div class="d-flex w-100 justify-content-between">
16
+ {{ post.title | escape }}
17
+ <small class="text-muted" style="min-width: 6em">{{ post.date | date: site.dateFormats[site.lang] | default: "%b %-d, %Y"}}</small>
18
+ </div>
19
+ </a>
20
+ {%- endfor -%}
21
+ {%- endif -%}
22
+ {%- else -%}
23
+ <li class="list-group-item">Nothing to see here... </li>
24
+ {%- endif -%}
@@ -0,0 +1,6 @@
1
+ <div class="card mb-4">
2
+ <div class="card-header">{% t global.recent %}</div>
3
+ <ul class="list-group list-group-flush">
4
+ {%- include recent-post-list.html posts = site.posts -%}
5
+ </ul>
6
+ </div>
@@ -0,0 +1,16 @@
1
+ {%- if site.data.relatedServers[site.lang].size > 0 -%}
2
+ <div class="card mb-4">
3
+ <div class="card-header">{% translate global.related %}</div>
4
+ <ul class="list-group list-group-flush">
5
+ {%- for server in site.data.relatedServers[site.lang] -%}
6
+ <a href="{{ server.link }}" class="list-group-item list-group-item-action flex-column align-items-start">
7
+ <h5 class="mb-1">{{ server.name }}</h5>
8
+ <p class="mb-1">{{ server.description }}</p>
9
+ {%- for tag in server.tags -%}
10
+ <span class="badge mr-1 badge-pill badge-light">{{tag}}</span>
11
+ {%- endfor -%}
12
+ </a>
13
+ {%- endfor -%}
14
+ </ul>
15
+ </div>
16
+ {%- endif -%}
@@ -0,0 +1,24 @@
1
+ {%- assign dirs = include.page.url | split: '/' -%}
2
+ {%- assign root_page = site.servers | where: "code", dirs[2] | first -%}
3
+ <nav class="navbar-light mb-5">
4
+ <a class="navbar-brand" href="{{ root_page.url | prepend: site.baseurl }}">{%- include fmi.html data = root_page.title datas = root_page.titles -%}</a>
5
+ {%- assign server_pages = site.servers | where: "code", dirs[2] -%}
6
+ <nav class="flex-column nav nav-pills">
7
+ {%- for server_page in site.servers -%}
8
+ {%- assign server_page_dirs = server_page.url | split: '/' -%}
9
+ {%- if server_page_dirs[2] == root_page.code -%}
10
+ {%- if server_page_dirs[3] -%}
11
+ {%- unless server_page_dirs[4] -%}
12
+ {%- if dirs[3] == server_page_dirs[3] -%}
13
+ <a class="nav-link active" href="{{ server_page.url | prepend: site.baseurl }}">{%- include page-title.html page =
14
+ server_page -%}</a>
15
+ {%- else -%}
16
+ <a class="nav-link" href="{{ server_page.url | prepend: site.baseurl }}">{%- include page-title.html page =
17
+ server_page -%}</a>
18
+ {%- endif -%}
19
+ {%- endunless -%}
20
+ {%- endif -%}
21
+ {%- endif -%}
22
+ {%- endfor -%}
23
+ </nav>
24
+ </nav>
@@ -0,0 +1,36 @@
1
+ <div class="row">
2
+ {%- for server in site.servers -%}
3
+ {%- capture url_last -%}{{server.url | split: '/' | last}}{%- endcapture -%}
4
+ {%- unless server.code == url_last -%}
5
+ {%- continue -%}
6
+ {%- endunless -%}
7
+ {%- capture server_name -%}
8
+ {%- include fmi.html datas = server.titles -%}
9
+ {%- endcapture -%}
10
+ {%- capture server_description -%}
11
+ {%- include fmi.html datas = server.briefs -%}
12
+ {%- endcapture -%}
13
+ <div class="col-md-6">
14
+ <a href="{{ site.baseurl}}{{ server.url }}" class="server-splash-link">
15
+ <div class="server-splash server-splash-action">
16
+ {%- if server.thumbnail -%}
17
+ <img src="/assets/{{server.thumbnail}}" alt="{{ server_name }}" class="d-block w-100">
18
+ {%- else -%}
19
+ <img src="data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%22318%22%20height%3D%22180%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20318%20180%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E%23holder_158bd1d28ef%20text%20%7B%20fill%3Argba(255%2C255%2C255%2C.75)%3Bfont-weight%3Anormal%3Bfont-family%3AHelvetica%2C%20monospace%3Bfont-size%3A16pt%20%7D%20%3C%2Fstyle%3E%3C%2Fdefs%3E%3Cg%20id%3D%22holder_158bd1d28ef%22%3E%3Crect%20width%3D%22318%22%20height%3D%22180%22%20fill%3D%22%23777%22%3E%3C%2Frect%3E%3Cg%3E%3Ctext%20x%3D%22129.359375%22%20y%3D%2297.35%22%3EImage%3C%2Ftext%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E"
20
+ alt="Card image" class="d-block w-100">
21
+ {%- endif -%}
22
+ <div class="p-4">
23
+ <div class="d-flex d-lg-flex d-md-block justify-content-between w-100">
24
+ <h4 class="mb-1">{{ server_name }}</h4>
25
+ <code class="minecraft-text-f"><kbd>&gt; /server {{ server.code }}</kbd></code>
26
+ </div>
27
+ <ul class="list-inline mt-md-1">
28
+ {%- include server-tags.html server = server -%}
29
+ </ul>
30
+ <div class="text-muted md-2 font-weight-light">{{ server_description }}</div>
31
+ </div>
32
+ </div>
33
+ </a>
34
+ </div>
35
+ {%- endfor -%}
36
+ </div>
@@ -0,0 +1,19 @@
1
+ <div class="media mb-4 minecraft-text p-3 w-100 bg-dark" id="server-status">
2
+ <img src="/assets/64x64.svg" class="mr-3 align-self-center" id="server-icon" />
3
+ <div class="media-body">
4
+ <div class="d-flex w-100 justify-content-between">
5
+ <h5 class="m-0">PrimCraft</h5>
6
+ <p class="mb-0">
7
+ <span><a href="https://namemc.com/server/primcraft.com" title="PrimCraft NameMC Page" style="text-decoration: none;" class="minecraft-text-r">★</a></span>
8
+ <span id="is-online">
9
+ <span class="minecraft-text-7" id="online-count">..</span><span class="minecraft-text-8">/</span><span
10
+ class="minecraft-text-7" id="capacity-count">..</span>
11
+ </span>
12
+ </p>
13
+ </div>
14
+ <p class="mb-0" id="server-motd">Loading...</p>
15
+ <p class="mb-0"><span class="minecraft-text-7">{% t global.server-address %}: </span>primcraft.com</p>
16
+ </div>
17
+
18
+
19
+ </div>
@@ -0,0 +1,4 @@
1
+ <li class="list-inline-item"><span class="badge badge-pill badge-success">{{ include.server.version }}</span></li>
2
+ {%- for tag in include.server.tags -%}
3
+ <li class="list-inline-item"><span class="badge badge-pill badge-info">{%- t tag -%}</span></li>
4
+ {%- endfor -%}
@@ -0,0 +1,14 @@
1
+ <ul class="social-media-list">
2
+ {%- if site.dribbble_username -%}<li><a href="https://dribbble.com/{{ site.dribbble_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#dribbble' | relative_url }}"></use></svg> <span class="username">{{ site.dribbble_username| escape }}</span></a></li>{%- endif -%}
3
+ {%- if site.facebook_username -%}<li><a href="https://www.facebook.com/{{ site.facebook_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#facebook' | relative_url }}"></use></svg> <span class="username">{{ site.facebook_username| escape }}</span></a></li>{%- endif -%}
4
+ {%- if site.flickr_username -%}<li><a href="https://www.flickr.com/photos/{{ site.flickr_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#flickr' | relative_url }}"></use></svg> <span class="username">{{ site.flickr_username| escape }}</span></a></li>{%- endif -%}
5
+ {%- if site.github_username -%}<li><a href="https://github.com/{{ site.github_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#github' | relative_url }}"></use></svg> <span class="username">{{ site.github_username| escape }}</span></a></li>{%- endif -%}
6
+ {%- if site.instagram_username -%}<li><a href="https://instagram.com/{{ site.instagram_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#instagram' | relative_url }}"></use></svg> <span class="username">{{ site.instagram_username| escape }}</span></a></li>{%- endif -%}
7
+ {%- if site.linkedin_username -%}<li><a href="https://www.linkedin.com/in/{{ site.linkedin_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#linkedin' | relative_url }}"></use></svg> <span class="username">{{ site.linkedin_username| escape }}</span></a></li>{%- endif -%}
8
+ {%- if site.pinterest_username -%}<li><a href="https://www.pinterest.com/{{ site.pinterest_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#pinterest' | relative_url }}"></use></svg> <span class="username">{{ site.pinterest_username| escape }}</span></a></li>{%- endif -%}
9
+ {%- for mst in site.mastodon -%}{%- if mst.username and mst.instance -%}<li><a href="https://{{ mst.instance| cgi_escape | escape}}/@{{mst.username}}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#mastodon' | relative_url }}"></use></svg> <span class="username">{{ mst.username|escape }}</span></a></li>{%- endif -%}{%- endfor -%}
10
+ {%- if site.twitter_username -%}<li><a href="https://www.twitter.com/{{ site.twitter_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#twitter' | relative_url }}"></use></svg> <span class="username">{{ site.twitter_username| escape }}</span></a></li>{%- endif -%}
11
+ {%- if site.youtube_username -%}<li><a href="https://youtube.com/{{ site.youtube_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#youtube' | relative_url }}"></use></svg> <span class="username">{{ site.youtube_username| escape }}</span></a></li>{%- endif -%}
12
+ {%- if site.googleplus_username -%}<li><a href="https://plus.google.com/{{ site.googleplus_username| escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#googleplus' | relative_url }}"></use></svg> <span class="username">{{ site.googleplus_username| escape }}</span></a></li>{%- endif -%}
13
+ {%- if site.rss -%}<li><a href="{{ 'feed.xml' | relative_url }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#rss' | relative_url }}"></use></svg> <span>{{ site.rss | escape }}</span></a></li>{%- endif -%}
14
+ </ul>
@@ -0,0 +1,10 @@
1
+ <div class="alert alert-warning">
2
+ <h4 class="alert-heading">{% t global.tfna-title %}</h4>
3
+ <p class="mb-0">{% t global.tfna-description %}
4
+ <a class="alert-link" href="{{ site.baseurl_root }}
5
+ {%- unless include.lang == site.defaultLang -%}
6
+ /{{ include.lang }}
7
+ {%- endunless -%}
8
+ {{include.page.url}}">{{ site.languageNames[include.lang] }}</a>
9
+ </p>
10
+ </div>
@@ -0,0 +1,8 @@
1
+ {%- if page.toc -%}
2
+ <div class="card col-4 mb-5">
3
+ <div class="card-body">
4
+ <h5 class="card-title text-center">{% t pages.toc %}</h5>
5
+ {{ content | toc_only }}
6
+ </div>
7
+ </div>
8
+ {%- endif -%}
@@ -0,0 +1,11 @@
1
+ {%- assign user = include.user -%}
2
+ {% assign user-data = site.users | where: 'minecraft-id', user | first %}
3
+ {%- if user-data -%}
4
+ {%- if user-data.name -%}
5
+ {{include.prepend}}<a href="/users/{{ user }}">{{ user-data.name}}</a>
6
+ {%- else -%}
7
+ {{include.prepend}}<a href="/users/{{ user }}"></a>{{ user }}</a>
8
+ {%- endif -%}
9
+ {%- else -%}
10
+ {{ user | prepend: include.prepend }}
11
+ {%- endif -%}