jekyll-theme-primcraft 0.0.21 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +41 -41
- data/_includes/carousel.html +65 -65
- data/_includes/fmi.html +15 -15
- data/_includes/full-post-list.html +8 -8
- data/_includes/page-tags.html +9 -9
- data/_includes/page-title.html +4 -4
- data/_includes/post-link.html +7 -7
- data/_includes/post-preview.html +28 -28
- data/_includes/recent-annoucements.html +6 -6
- data/_includes/recent-post-list.html +23 -23
- data/_includes/related.html +15 -15
- data/_includes/server-nav.html +23 -23
- data/_includes/server-splash.html +35 -35
- data/_includes/server-status.html +18 -18
- data/_includes/server-tags.html +3 -3
- data/_includes/tfna.html +9 -9
- data/_includes/toc.html +7 -7
- data/_includes/username.html +10 -10
- data/_layouts/archive.html +22 -22
- data/_layouts/category.html +8 -8
- data/_layouts/content.html +13 -13
- data/_layouts/tag.html +8 -8
- data/_layouts/user.html +40 -40
- data/assets/main.scss +6 -4
- metadata +22 -49
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e9fd1533c33a215b48739d2dd6c41d22cf9b4ba89399099e97c7e10bc7e1477f
|
|
4
|
+
data.tar.gz: 997c5a87c19ab69afcdf46979eebcff5215ba6913303edee734e41f25fd9cb2e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6f7fca57ab7767ad9d91ad0b1ac529ab3f54425877d3091c3d0da3723f184fede12dc095b6b12ee07c0d2dd40bff5da3ba90cc88cbc5880ec1647d0a2a83feeb
|
|
7
|
+
data.tar.gz: f40a389c95db90a1bdf717f829e883d231e734eb20334b09be30cd3197554814053a484e298badfd26d3de28db51e54958becdcab83910cb9d79f2a4a6b28c62
|
data/README.md
CHANGED
|
@@ -1,41 +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
|
-
|
|
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
|
+
|
data/_includes/carousel.html
CHANGED
|
@@ -1,66 +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>
|
|
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
66
|
{%- endif -%}
|
data/_includes/fmi.html
CHANGED
|
@@ -1,16 +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 -%}
|
|
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
16
|
{%- endif -%}
|
|
@@ -1,9 +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 -%}
|
|
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
9
|
{%- endif -%}
|
data/_includes/page-tags.html
CHANGED
|
@@ -1,10 +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>
|
|
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
10
|
{%- endfor -%}
|
data/_includes/page-title.html
CHANGED
|
@@ -1,5 +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 }}
|
|
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
5
|
{%- endif -%}
|
data/_includes/post-link.html
CHANGED
|
@@ -1,8 +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 -%}
|
|
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
8
|
</a>
|
data/_includes/post-preview.html
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
<div class="post-list-item">
|
|
2
|
-
<h3>
|
|
3
|
-
{%- include post-link.html post = post -%}
|
|
4
|
-
</h3>
|
|
5
|
-
{%- if post.thumbnail -%}
|
|
6
|
-
<a href="{{ post.url | relative_url }}"><img src="{{ post.thumbnail }}" class="mb-3 mw-100"></a>
|
|
7
|
-
{%- endif -%}
|
|
8
|
-
<p>
|
|
9
|
-
{%- if site.show_excerpts -%}
|
|
10
|
-
{{ post.excerpt }}
|
|
11
|
-
{%- endif -%}
|
|
12
|
-
</p>
|
|
13
|
-
{%- capture total_words -%}{{ post.content | number_of_words }}{%- endcapture -%}
|
|
14
|
-
{%- capture excerpt_words -%}{{ post.excerpt | number_of_words }}{%- endcapture -%}
|
|
15
|
-
{%- unless total_words == excerpt_words -%}
|
|
16
|
-
<p class="mt-4 text-center">
|
|
17
|
-
<a href="{{ post.url | relative_url }}">{% t global.read-more %}</a>
|
|
18
|
-
</p>
|
|
19
|
-
{%- endunless -%}
|
|
20
|
-
{%- assign date_format = site.dateFormats[site.lang] | default: "%b %-d, %Y" -%}
|
|
21
|
-
<span class="text-muted">
|
|
22
|
-
{{ post.date | date: date_format }}
|
|
23
|
-
{% if post.author %}
|
|
24
|
-
{%- include username.html user = post.author prepend = " | "-%}
|
|
25
|
-
{% endif %}</span>
|
|
26
|
-
<ul class="list-inline d-inline mt-md-1">
|
|
27
|
-
{%- include page-tags.html page = post -%}
|
|
28
|
-
</ul>
|
|
1
|
+
<div class="post-list-item">
|
|
2
|
+
<h3>
|
|
3
|
+
{%- include post-link.html post = post -%}
|
|
4
|
+
</h3>
|
|
5
|
+
{%- if post.thumbnail -%}
|
|
6
|
+
<a href="{{ post.url | relative_url }}"><img src="{{ post.thumbnail }}" class="mb-3 mw-100"></a>
|
|
7
|
+
{%- endif -%}
|
|
8
|
+
<p>
|
|
9
|
+
{%- if site.show_excerpts -%}
|
|
10
|
+
{{ post.excerpt }}
|
|
11
|
+
{%- endif -%}
|
|
12
|
+
</p>
|
|
13
|
+
{%- capture total_words -%}{{ post.content | number_of_words }}{%- endcapture -%}
|
|
14
|
+
{%- capture excerpt_words -%}{{ post.excerpt | number_of_words }}{%- endcapture -%}
|
|
15
|
+
{%- unless total_words == excerpt_words -%}
|
|
16
|
+
<p class="mt-4 text-center">
|
|
17
|
+
<a href="{{ post.url | relative_url }}">{% t global.read-more %}</a>
|
|
18
|
+
</p>
|
|
19
|
+
{%- endunless -%}
|
|
20
|
+
{%- assign date_format = site.dateFormats[site.lang] | default: "%b %-d, %Y" -%}
|
|
21
|
+
<span class="text-muted">
|
|
22
|
+
{{ post.date | date: date_format }}
|
|
23
|
+
{% if post.author %}
|
|
24
|
+
{%- include username.html user = post.author prepend = " | "-%}
|
|
25
|
+
{% endif %}</span>
|
|
26
|
+
<ul class="list-inline d-inline mt-md-1">
|
|
27
|
+
{%- include page-tags.html page = post -%}
|
|
28
|
+
</ul>
|
|
29
29
|
</div>
|
|
@@ -1,7 +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>
|
|
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
7
|
</div>
|
|
@@ -1,24 +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>
|
|
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
24
|
{%- endif -%}
|
data/_includes/related.html
CHANGED
|
@@ -1,16 +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>
|
|
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
16
|
{%- endif -%}
|
data/_includes/server-nav.html
CHANGED
|
@@ -1,24 +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>
|
|
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
24
|
</nav>
|
|
@@ -1,36 +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 mb-5">
|
|
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>> /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 -%}
|
|
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 mb-5">
|
|
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>> /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
36
|
</div>
|
|
@@ -1,19 +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
|
-
|
|
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
19
|
</div>
|
data/_includes/server-tags.html
CHANGED
|
@@ -1,4 +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>
|
|
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
4
|
{%- endfor -%}
|
data/_includes/tfna.html
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<div class="alert alert-light">
|
|
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}}"><span lang="{{ include.lang }}">{{ site.languageNames[include.lang] }}</span></a>
|
|
9
|
-
</p>
|
|
1
|
+
<div class="alert alert-light">
|
|
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}}"><span lang="{{ include.lang }}">{{ site.languageNames[include.lang] }}</span></a>
|
|
9
|
+
</p>
|
|
10
10
|
</div>
|
data/_includes/toc.html
CHANGED
|
@@ -1,8 +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>
|
|
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
8
|
{%- endif -%}
|
data/_includes/username.html
CHANGED
|
@@ -1,11 +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 }}
|
|
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
11
|
{%- endif -%}
|
data/_layouts/archive.html
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
---
|
|
2
|
-
layout: default
|
|
3
|
-
---
|
|
4
|
-
<div class="pagetop"></div>
|
|
5
|
-
<div class="container">
|
|
6
|
-
<div class="row">
|
|
7
|
-
<div class="col-lg-8">
|
|
8
|
-
{%- capture post_type_t -%}{{ page.type | prepend: "archive.of-"}}{%- endcapture -%}
|
|
9
|
-
{%- comment -%}TODO: deal with date formatting...{%- endcomment -%}
|
|
10
|
-
{%- if page.type == "year" -%}
|
|
11
|
-
{%- assign archive-filter = page.date | date: "%Y" -%}
|
|
12
|
-
{%- elsif page.type == "month" -%}
|
|
13
|
-
{%- assign archive-filter = page.date | date: "%Y/%m" -%}
|
|
14
|
-
{%- elsif page.type == "day" -%}
|
|
15
|
-
{%- assign archive-filter = page.date | date: "%Y/%m/%d" -%}
|
|
16
|
-
{%- else -%}
|
|
17
|
-
{%- capture archive-filter -%}{% t page.title %}{%- endcapture -%}
|
|
18
|
-
{%- endif -%}
|
|
19
|
-
<h1>{%t post_type_t %}: {{archive-filter}}</h1>
|
|
20
|
-
{%- include full-post-list.html posts = page.posts -%}
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
1
|
+
---
|
|
2
|
+
layout: default
|
|
3
|
+
---
|
|
4
|
+
<div class="pagetop"></div>
|
|
5
|
+
<div class="container">
|
|
6
|
+
<div class="row">
|
|
7
|
+
<div class="col-lg-8">
|
|
8
|
+
{%- capture post_type_t -%}{{ page.type | prepend: "archive.of-"}}{%- endcapture -%}
|
|
9
|
+
{%- comment -%}TODO: deal with date formatting...{%- endcomment -%}
|
|
10
|
+
{%- if page.type == "year" -%}
|
|
11
|
+
{%- assign archive-filter = page.date | date: "%Y" -%}
|
|
12
|
+
{%- elsif page.type == "month" -%}
|
|
13
|
+
{%- assign archive-filter = page.date | date: "%Y/%m" -%}
|
|
14
|
+
{%- elsif page.type == "day" -%}
|
|
15
|
+
{%- assign archive-filter = page.date | date: "%Y/%m/%d" -%}
|
|
16
|
+
{%- else -%}
|
|
17
|
+
{%- capture archive-filter -%}{% t page.title %}{%- endcapture -%}
|
|
18
|
+
{%- endif -%}
|
|
19
|
+
<h1>{%t post_type_t %}: {{archive-filter}}</h1>
|
|
20
|
+
{%- include full-post-list.html posts = page.posts -%}
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
23
|
</div>
|
data/_layouts/category.html
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
---
|
|
2
|
-
layout: page
|
|
3
|
-
---
|
|
4
|
-
<ul class="list-unstyled">
|
|
5
|
-
{% assign sorted_cats = site.categories | sort %}
|
|
6
|
-
{%- for cat in sorted_cats -%}
|
|
7
|
-
<li><a href="{{site.baseurl}}/category/{{cat[0] | slugify}}">{%t cat[0] %}</a></li>
|
|
8
|
-
{%- endfor -%}
|
|
1
|
+
---
|
|
2
|
+
layout: page
|
|
3
|
+
---
|
|
4
|
+
<ul class="list-unstyled">
|
|
5
|
+
{% assign sorted_cats = site.categories | sort %}
|
|
6
|
+
{%- for cat in sorted_cats -%}
|
|
7
|
+
<li><a href="{{site.baseurl}}/category/{{cat[0] | slugify}}">{%t cat[0] %}</a></li>
|
|
8
|
+
{%- endfor -%}
|
|
9
9
|
</ul>
|
data/_layouts/content.html
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
---
|
|
2
|
-
layout: default
|
|
3
|
-
---
|
|
4
|
-
<div class="pagetop"></div>
|
|
5
|
-
<div class="container">
|
|
6
|
-
<div class="row">
|
|
7
|
-
<div class="col-lg-9">
|
|
8
|
-
{{ content }}
|
|
9
|
-
</div>
|
|
10
|
-
<div class="col-lg-3">
|
|
11
|
-
{%- include recent.html -%}
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
1
|
+
---
|
|
2
|
+
layout: default
|
|
3
|
+
---
|
|
4
|
+
<div class="pagetop"></div>
|
|
5
|
+
<div class="container">
|
|
6
|
+
<div class="row">
|
|
7
|
+
<div class="col-lg-9">
|
|
8
|
+
{{ content }}
|
|
9
|
+
</div>
|
|
10
|
+
<div class="col-lg-3">
|
|
11
|
+
{%- include recent.html -%}
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
14
|
</div>
|
data/_layouts/tag.html
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
---
|
|
2
|
-
layout: page
|
|
3
|
-
---
|
|
4
|
-
<ul class="list-unstyled">
|
|
5
|
-
{% assign sorted_tags = site.tags | sort %}
|
|
6
|
-
{%- for tag in sorted_tags -%}
|
|
7
|
-
<li><a href="{{site.baseurl}}/tag/{{tag[0] | slugify}}">{%t tag[0] %}</a></li>
|
|
8
|
-
{%- endfor -%}
|
|
1
|
+
---
|
|
2
|
+
layout: page
|
|
3
|
+
---
|
|
4
|
+
<ul class="list-unstyled">
|
|
5
|
+
{% assign sorted_tags = site.tags | sort %}
|
|
6
|
+
{%- for tag in sorted_tags -%}
|
|
7
|
+
<li><a href="{{site.baseurl}}/tag/{{tag[0] | slugify}}">{%t tag[0] %}</a></li>
|
|
8
|
+
{%- endfor -%}
|
|
9
9
|
</ul>
|
data/_layouts/user.html
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
|
3
|
-
|
|
4
|
-
{%- include head.html -%}
|
|
5
|
-
|
|
6
|
-
<body>
|
|
7
|
-
{%- include header.html -%}
|
|
8
|
-
<div class="pagetop"></div>
|
|
9
|
-
<div class="container">
|
|
10
|
-
<div class="row">
|
|
11
|
-
<div class="col-lg-9">
|
|
12
|
-
{{ content }}
|
|
13
|
-
</div>
|
|
14
|
-
<div class="col-lg-3">
|
|
15
|
-
<div class="card mb-4">
|
|
16
|
-
<div class="card-header">{% t user.user-info %}</div>
|
|
17
|
-
<ul class="list-group list-group-flush">
|
|
18
|
-
<li class="list-group-item">
|
|
19
|
-
<div class="d-flex w-100 justify-content-between">
|
|
20
|
-
<p class="text-muted mb-0">{% t user.minecraft-id %}</p>
|
|
21
|
-
<h6 class="mb-1">{{ page.minecraft-id }}</h6>
|
|
22
|
-
</div>
|
|
23
|
-
</li>
|
|
24
|
-
<li class="list-group-item">
|
|
25
|
-
<div class="d-flex w-100 justify-content-between">
|
|
26
|
-
<p class="text-muted mb-0">{% t user.name %}</p>
|
|
27
|
-
<h6 class="mb-1">{{ page.name }}</h6>
|
|
28
|
-
</div>
|
|
29
|
-
</li>
|
|
30
|
-
</ul>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
{%- include footer.html -%}
|
|
38
|
-
|
|
39
|
-
</body>
|
|
40
|
-
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
|
3
|
+
|
|
4
|
+
{%- include head.html -%}
|
|
5
|
+
|
|
6
|
+
<body>
|
|
7
|
+
{%- include header.html -%}
|
|
8
|
+
<div class="pagetop"></div>
|
|
9
|
+
<div class="container">
|
|
10
|
+
<div class="row">
|
|
11
|
+
<div class="col-lg-9">
|
|
12
|
+
{{ content }}
|
|
13
|
+
</div>
|
|
14
|
+
<div class="col-lg-3">
|
|
15
|
+
<div class="card mb-4">
|
|
16
|
+
<div class="card-header">{% t user.user-info %}</div>
|
|
17
|
+
<ul class="list-group list-group-flush">
|
|
18
|
+
<li class="list-group-item">
|
|
19
|
+
<div class="d-flex w-100 justify-content-between">
|
|
20
|
+
<p class="text-muted mb-0">{% t user.minecraft-id %}</p>
|
|
21
|
+
<h6 class="mb-1">{{ page.minecraft-id }}</h6>
|
|
22
|
+
</div>
|
|
23
|
+
</li>
|
|
24
|
+
<li class="list-group-item">
|
|
25
|
+
<div class="d-flex w-100 justify-content-between">
|
|
26
|
+
<p class="text-muted mb-0">{% t user.name %}</p>
|
|
27
|
+
<h6 class="mb-1">{{ page.name }}</h6>
|
|
28
|
+
</div>
|
|
29
|
+
</li>
|
|
30
|
+
</ul>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
{%- include footer.html -%}
|
|
38
|
+
|
|
39
|
+
</body>
|
|
40
|
+
|
|
41
41
|
</html>
|
data/assets/main.scss
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
# Custom sytling stuff
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
+
@use "sass:math";
|
|
6
|
+
|
|
5
7
|
$spacing-unit: 30px;
|
|
6
8
|
$jumbotron-padding: 6rem;
|
|
7
9
|
|
|
@@ -46,7 +48,7 @@ $minecraft-color: (
|
|
|
46
48
|
p, blockquote, pre,
|
|
47
49
|
ul, ol, dl, figure,
|
|
48
50
|
%vertical-rhythm {
|
|
49
|
-
margin-bottom: $spacing-unit
|
|
51
|
+
margin-bottom: math.div($spacing-unit, 2);
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
/**
|
|
@@ -58,14 +60,14 @@ $minecraft-color: (
|
|
|
58
60
|
background-size: cover;
|
|
59
61
|
background-position: center center;
|
|
60
62
|
text-shadow: 0.1em 0.1em 0.1em #000000bb;
|
|
61
|
-
padding: $jumbotron-padding ($jumbotron-padding
|
|
63
|
+
padding: $jumbotron-padding math.div($jumbotron-padding, 8);
|
|
62
64
|
margin-top: 50px;
|
|
63
|
-
margin-bottom: $jumbotron-padding
|
|
65
|
+
margin-bottom: math.div($jumbotron-padding, 2);
|
|
64
66
|
background-color: $jumbotron-bg;
|
|
65
67
|
@include border-radius($border-radius-lg);
|
|
66
68
|
|
|
67
69
|
@include media-breakpoint-up(sm) {
|
|
68
|
-
padding: ($jumbotron-padding * 2) $jumbotron-padding
|
|
70
|
+
padding: ($jumbotron-padding * 2) math.div($jumbotron-padding, 4);
|
|
69
71
|
}
|
|
70
72
|
}
|
|
71
73
|
|
metadata
CHANGED
|
@@ -1,99 +1,76 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-theme-primcraft
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- BakaSoniji
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: jekyll
|
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
|
16
15
|
requirements:
|
|
17
|
-
- - "
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: '3.8'
|
|
20
|
-
type: :runtime
|
|
21
|
-
prerelease: false
|
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
-
requirements:
|
|
24
|
-
- - "~>"
|
|
16
|
+
- - ">="
|
|
25
17
|
- !ruby/object:Gem::Version
|
|
26
18
|
version: '3.8'
|
|
27
|
-
-
|
|
28
|
-
name: bootstrap
|
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
31
|
-
- - "~>"
|
|
19
|
+
- - "<"
|
|
32
20
|
- !ruby/object:Gem::Version
|
|
33
|
-
version:
|
|
21
|
+
version: '5.0'
|
|
34
22
|
type: :runtime
|
|
35
23
|
prerelease: false
|
|
36
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
25
|
requirements:
|
|
38
|
-
- - "
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: 4.1.3
|
|
41
|
-
- !ruby/object:Gem::Dependency
|
|
42
|
-
name: bootswatch
|
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
|
44
|
-
requirements:
|
|
45
|
-
- - "~>"
|
|
26
|
+
- - ">="
|
|
46
27
|
- !ruby/object:Gem::Version
|
|
47
|
-
version:
|
|
48
|
-
|
|
49
|
-
prerelease: false
|
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
-
requirements:
|
|
52
|
-
- - "~>"
|
|
28
|
+
version: '3.8'
|
|
29
|
+
- - "<"
|
|
53
30
|
- !ruby/object:Gem::Version
|
|
54
|
-
version:
|
|
31
|
+
version: '5.0'
|
|
55
32
|
- !ruby/object:Gem::Dependency
|
|
56
33
|
name: jekyll-multiple-languages-plugin
|
|
57
34
|
requirement: !ruby/object:Gem::Requirement
|
|
58
35
|
requirements:
|
|
59
36
|
- - "~>"
|
|
60
37
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '1.
|
|
38
|
+
version: '1.8'
|
|
62
39
|
type: :runtime
|
|
63
40
|
prerelease: false
|
|
64
41
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
42
|
requirements:
|
|
66
43
|
- - "~>"
|
|
67
44
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '1.
|
|
45
|
+
version: '1.8'
|
|
69
46
|
- !ruby/object:Gem::Dependency
|
|
70
47
|
name: jekyll-archives
|
|
71
48
|
requirement: !ruby/object:Gem::Requirement
|
|
72
49
|
requirements:
|
|
73
50
|
- - "~>"
|
|
74
51
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: '2.
|
|
52
|
+
version: '2.2'
|
|
76
53
|
type: :runtime
|
|
77
54
|
prerelease: false
|
|
78
55
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
56
|
requirements:
|
|
80
57
|
- - "~>"
|
|
81
58
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: '2.
|
|
59
|
+
version: '2.2'
|
|
83
60
|
- !ruby/object:Gem::Dependency
|
|
84
61
|
name: jekyll-toc
|
|
85
62
|
requirement: !ruby/object:Gem::Requirement
|
|
86
63
|
requirements:
|
|
87
64
|
- - "~>"
|
|
88
65
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: '0.
|
|
66
|
+
version: '0.18'
|
|
90
67
|
type: :runtime
|
|
91
68
|
prerelease: false
|
|
92
69
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
70
|
requirements:
|
|
94
71
|
- - "~>"
|
|
95
72
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: '0.
|
|
73
|
+
version: '0.18'
|
|
97
74
|
- !ruby/object:Gem::Dependency
|
|
98
75
|
name: jekyll-paginate
|
|
99
76
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -112,31 +89,30 @@ dependencies:
|
|
|
112
89
|
name: bundler
|
|
113
90
|
requirement: !ruby/object:Gem::Requirement
|
|
114
91
|
requirements:
|
|
115
|
-
- - "
|
|
92
|
+
- - ">="
|
|
116
93
|
- !ruby/object:Gem::Version
|
|
117
|
-
version: '
|
|
94
|
+
version: '2.0'
|
|
118
95
|
type: :development
|
|
119
96
|
prerelease: false
|
|
120
97
|
version_requirements: !ruby/object:Gem::Requirement
|
|
121
98
|
requirements:
|
|
122
|
-
- - "
|
|
99
|
+
- - ">="
|
|
123
100
|
- !ruby/object:Gem::Version
|
|
124
|
-
version: '
|
|
101
|
+
version: '2.0'
|
|
125
102
|
- !ruby/object:Gem::Dependency
|
|
126
103
|
name: rake
|
|
127
104
|
requirement: !ruby/object:Gem::Requirement
|
|
128
105
|
requirements:
|
|
129
|
-
- - "
|
|
106
|
+
- - ">="
|
|
130
107
|
- !ruby/object:Gem::Version
|
|
131
108
|
version: '12.0'
|
|
132
109
|
type: :development
|
|
133
110
|
prerelease: false
|
|
134
111
|
version_requirements: !ruby/object:Gem::Requirement
|
|
135
112
|
requirements:
|
|
136
|
-
- - "
|
|
113
|
+
- - ">="
|
|
137
114
|
- !ruby/object:Gem::Version
|
|
138
115
|
version: '12.0'
|
|
139
|
-
description:
|
|
140
116
|
email:
|
|
141
117
|
- bakasoniji@gmail.com
|
|
142
118
|
executables: []
|
|
@@ -191,7 +167,6 @@ homepage: https://github.com/PrimCraft/jekyll-theme-primcraft
|
|
|
191
167
|
licenses:
|
|
192
168
|
- MIT
|
|
193
169
|
metadata: {}
|
|
194
|
-
post_install_message:
|
|
195
170
|
rdoc_options: []
|
|
196
171
|
require_paths:
|
|
197
172
|
- lib
|
|
@@ -206,9 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
206
181
|
- !ruby/object:Gem::Version
|
|
207
182
|
version: '0'
|
|
208
183
|
requirements: []
|
|
209
|
-
|
|
210
|
-
rubygems_version: 2.7.6
|
|
211
|
-
signing_key:
|
|
184
|
+
rubygems_version: 4.0.3
|
|
212
185
|
specification_version: 4
|
|
213
186
|
summary: The jekyll theme primcraft is using
|
|
214
187
|
test_files: []
|