limp-dark 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +45 -0
- data/README.md~ +45 -0
- data/_config.yml +73 -0
- data/_config.yml~ +51 -0
- data/_data/social.yml +6 -0
- data/_includes/extensions/comments/disqus.html +17 -0
- data/_includes/extensions/comments/gitment.html +16 -0
- data/_includes/extensions/google-analytics.html +19 -0
- data/_includes/extensions/google-tag.html +9 -0
- data/_includes/functions.html +26 -0
- data/_includes/functions/get_categories.html +12 -0
- data/_includes/functions/get_datetimes.html +18 -0
- data/_includes/functions/get_reading_time.html +41 -0
- data/_includes/functions/get_tags.html +12 -0
- data/_includes/functions/get_value.html +19 -0
- data/_includes/functions/log.html +17 -0
- data/_includes/head.html +18 -0
- data/_includes/views/footer.html +71 -0
- data/_includes/views/header.html +44 -0
- data/_includes/views/main.html +21 -0
- data/_includes/views/pagination.html +47 -0
- data/_includes/views/paginator.html +25 -0
- data/_includes/views/post-header.html +26 -0
- data/_includes/views/post-item.html +13 -0
- data/_includes/views/segments.html +21 -0
- data/_includes/views/share-buttons.html +43 -0
- data/_includes/views/sidebar.html +0 -0
- data/_layouts/404.html +31 -0
- data/_layouts/archives.html +17 -0
- data/_layouts/categories.html +15 -0
- data/_layouts/default.html +15 -0
- data/_layouts/page.html +7 -0
- data/_layouts/post.html +83 -0
- data/_layouts/tags.html +26 -0
- data/_sass/_extends.sass +0 -0
- data/_sass/_mixins.sass +6 -0
- data/_sass/_veriables.sass +19 -0
- data/_sass/base/_base-dir.sass +1 -0
- data/_sass/base/_base.sass +220 -0
- data/_sass/layouts/_footer.sass +80 -0
- data/_sass/layouts/_header.sass +0 -0
- data/_sass/layouts/_layouts-dir.sass +3 -0
- data/_sass/layouts/_main.sass +30 -0
- data/_sass/modules/_container.sass +28 -0
- data/_sass/modules/_modules-dir.sass +6 -0
- data/_sass/modules/_nav.sass +108 -0
- data/_sass/modules/_post-footer.sass +52 -0
- data/_sass/modules/_post-header.sass +27 -0
- data/_sass/modules/_post_list.sass +38 -0
- data/_sass/modules/_segments.sass +39 -0
- data/_sass/states/_states-dir.sass +1 -0
- data/_sass/states/_states.sass +0 -0
- data/_sass/style.sass +10 -0
- data/_sass/themes/_dark.sass +0 -0
- data/_sass/themes/_themes-dir.sass +1 -0
- data/assets/css/gitment.css +1145 -0
- data/assets/css/gitment.dark.css +79 -0
- data/assets/css/main.sass +5 -0
- data/assets/images/limp.png +0 -0
- data/assets/js/gitment.browser.js +3751 -0
- metadata +188 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2780c33166cea20a2f7708f1bbfd0c7202b00f3edf7db0756b0576e2b102eee4
|
4
|
+
data.tar.gz: 19dfd434df1cbac71cb57b0dd3763e532d0d039e14d880ba50dd0f32d190dd92
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6ad44d543b516e0d7899e824cd4813f61f129c092115ca78f29738c58e4d8e924de32de9cf45e4b0f7035a8461b3ac4415ee111f89a708f4d1bf4e6ec55bf8b2
|
7
|
+
data.tar.gz: 9726d62ddf5011b97bfe5da6f2ec351a1ea2fa43a7e076518154d114a92cdc0ee298bd15c57564044e7c3d010bb16ad1081f7d41fac7ec54e5de0dacecff60cc
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 ankit-kumar-jat
|
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
|
13
|
+
all 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
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
# Limp
|
2
|
+
|
3
|
+
:fire: limp-dark theme for elegant writers with modern flat style and beautiful dark background :fire:.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your Jekyll site's `Gemfile`:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem "limp-dark"
|
11
|
+
```
|
12
|
+
|
13
|
+
And add this line to your Jekyll site's `_config.yml`:
|
14
|
+
|
15
|
+
```yaml
|
16
|
+
theme: limp-dark
|
17
|
+
```
|
18
|
+
|
19
|
+
And then execute:
|
20
|
+
|
21
|
+
$ bundle
|
22
|
+
|
23
|
+
Or install it yourself as:
|
24
|
+
|
25
|
+
$ gem install limp-dark
|
26
|
+
|
27
|
+
## Usage
|
28
|
+
|
29
|
+
Chnage configurations on `_config.yml` and `_data/social.yml` file.
|
30
|
+
|
31
|
+
This is theme use [spaceship :rocket:](https://github.com/jeffreytse/jekyll-spaceship/blob/master/README.md) Plugin, to take 100% from this got to [:rocket: README](https://github.com/jeffreytse/jekyll-spaceship/blob/master/README.md).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/ankit-kumar-jat/hello.
|
36
|
+
|
37
|
+
## Development
|
38
|
+
|
39
|
+
To set up your environment to develop this theme, run `bundle install`.
|
40
|
+
|
41
|
+
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.
|
42
|
+
|
43
|
+
## License
|
44
|
+
|
45
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/README.md~
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
# Limp
|
2
|
+
|
3
|
+
:fire: Limp theme for elegant writers with modern flat style and beautiful dark background :fire:.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your Jekyll site's `Gemfile`:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem "Limp"
|
11
|
+
```
|
12
|
+
|
13
|
+
And add this line to your Jekyll site's `_config.yml`:
|
14
|
+
|
15
|
+
```yaml
|
16
|
+
theme: Limp
|
17
|
+
```
|
18
|
+
|
19
|
+
And then execute:
|
20
|
+
|
21
|
+
$ bundle
|
22
|
+
|
23
|
+
Or install it yourself as:
|
24
|
+
|
25
|
+
$ gem install Limp
|
26
|
+
|
27
|
+
## Usage
|
28
|
+
|
29
|
+
Chnage configurations on `_config.yml` and `_data/social.yml` file.
|
30
|
+
|
31
|
+
This is theme use [spaceship :rocket:](https://github.com/jeffreytse/jekyll-spaceship/blob/master/README.md) Plugin, to take 100% from this got to [:rocket: README](https://github.com/jeffreytse/jekyll-spaceship/blob/master/README.md).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/ankit-kumar-jat/hello.
|
36
|
+
|
37
|
+
## Development
|
38
|
+
|
39
|
+
To set up your environment to develop this theme, run `bundle install`.
|
40
|
+
|
41
|
+
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.
|
42
|
+
|
43
|
+
## License
|
44
|
+
|
45
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/_config.yml
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
# site title
|
2
|
+
title: Limp
|
3
|
+
description: >- # this means to ignore newlines until "baseurl:"
|
4
|
+
Write an awesome description for your new site here. You can edit this
|
5
|
+
line in _config.yml. It will appear in your document head meta (for
|
6
|
+
Google search results) and in your feed.xml site description.
|
7
|
+
|
8
|
+
author: Limp # author name for seo
|
9
|
+
email: your-email@domain.com
|
10
|
+
|
11
|
+
# Serve the website from the given base URL.
|
12
|
+
baseurl: "/limp-demo" # the subpath of your site, e.g. /blog
|
13
|
+
url: "https://ankitkumarjat.me" # the base hostname & protocol for your site, e.g. http://example.com
|
14
|
+
# logo: "" # the logo for your site
|
15
|
+
|
16
|
+
# Navbar
|
17
|
+
# specify path of pages you want to show in navbar
|
18
|
+
# write in same order that you want to show
|
19
|
+
navbar_pages:
|
20
|
+
- index.html
|
21
|
+
- archives.html
|
22
|
+
- categories.html
|
23
|
+
- about.md
|
24
|
+
|
25
|
+
# Pagination
|
26
|
+
paginate: 5
|
27
|
+
|
28
|
+
# comments
|
29
|
+
|
30
|
+
# Disqus comments
|
31
|
+
# disqus:
|
32
|
+
# shortname: "Your Disqus username"
|
33
|
+
|
34
|
+
# Gitment comments
|
35
|
+
gitment:
|
36
|
+
username: "hackersjugadBot"
|
37
|
+
repo: "gitment"
|
38
|
+
client_id: "3319a49fdeaee1884f29"
|
39
|
+
client_secret: "0baa1ca836116b44cb2ef598e4439fcbc18ac95a"
|
40
|
+
redirect_uri: "https://ankitkumarjat.me/limp-demo/" # If you use a custom domain name
|
41
|
+
|
42
|
+
#optimization
|
43
|
+
#compress html
|
44
|
+
compress_html:
|
45
|
+
clippings: all
|
46
|
+
comments: ["<!-- ", " -->"]
|
47
|
+
endings: all
|
48
|
+
ignore:
|
49
|
+
envs: [local]
|
50
|
+
blanklines: false
|
51
|
+
profile: true
|
52
|
+
startings: [html, head, body]
|
53
|
+
|
54
|
+
# compress sass
|
55
|
+
sass:
|
56
|
+
style: compressed
|
57
|
+
|
58
|
+
# Serve Command OptionsPermalink
|
59
|
+
|
60
|
+
port: 4000 # 4000 is default
|
61
|
+
|
62
|
+
# Reload a page automatically on the browser when its content is edited.
|
63
|
+
livereload: true
|
64
|
+
|
65
|
+
markdown: kramdown
|
66
|
+
kmarkdown:
|
67
|
+
input: GFM
|
68
|
+
|
69
|
+
plugins:
|
70
|
+
- jekyll-seo-tag
|
71
|
+
- jekyll-sitemap
|
72
|
+
- jekyll-paginate
|
73
|
+
- jekyll-spaceship
|
data/_config.yml~
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
# site title
|
2
|
+
title: Limp
|
3
|
+
description: >- # this means to ignore newlines until "baseurl:"
|
4
|
+
Write an awesome description for your new site here. You can edit this
|
5
|
+
line in _config.yml. It will appear in your document head meta (for
|
6
|
+
Google search results) and in your feed.xml site description.
|
7
|
+
|
8
|
+
author: Limp # author name for seo
|
9
|
+
email: your-email@domain.com
|
10
|
+
|
11
|
+
# Serve the website from the given base URL.
|
12
|
+
# baseurl: "/limp" # the subpath of your site, e.g. /blog
|
13
|
+
url: "https://ankitkumarjat.me" # the base hostname & protocol for your site, e.g. http://example.com
|
14
|
+
# logo: "" # the logo for your site
|
15
|
+
|
16
|
+
# Navbar
|
17
|
+
# specify path of pages you want to show in navbar
|
18
|
+
# write in same order that you want to show
|
19
|
+
navbar_pages:
|
20
|
+
- index.html
|
21
|
+
- about.html
|
22
|
+
|
23
|
+
# Pagination
|
24
|
+
paginate: 5
|
25
|
+
|
26
|
+
#optimization
|
27
|
+
#compress html
|
28
|
+
compress_html:
|
29
|
+
clippings: all
|
30
|
+
comments: ["<!-- ", " -->"]
|
31
|
+
endings: all
|
32
|
+
ignore:
|
33
|
+
envs: [local]
|
34
|
+
blanklines: false
|
35
|
+
profile: true
|
36
|
+
startings: [html, head, body]
|
37
|
+
|
38
|
+
# compress sass
|
39
|
+
sass:
|
40
|
+
style: compressed
|
41
|
+
|
42
|
+
# Serve Command OptionsPermalink
|
43
|
+
|
44
|
+
# port: 4000 # 4000 is default
|
45
|
+
|
46
|
+
# Reload a page automatically on the browser when its content is edited.
|
47
|
+
livereload: true
|
48
|
+
|
49
|
+
plugins:
|
50
|
+
- jekyll-seo-tag
|
51
|
+
- jekyll-sitemap
|
data/_data/social.yml
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
# social media footer links
|
2
|
+
|
3
|
+
twitter: user_name # replace user_name with your username
|
4
|
+
facebook: user_name # replace user_name with your username
|
5
|
+
instagram: user_name # replace user_name with your username
|
6
|
+
pinterest: user_name # replace user_name with your username
|
@@ -0,0 +1,17 @@
|
|
1
|
+
{% comment %} <div id="disqus_thread"></div>
|
2
|
+
<script>
|
3
|
+
var disqus_config = function () {
|
4
|
+
this.page.url = '{{ page.url | absolute_url }}';
|
5
|
+
this.page.identifier = '{{ page.url | absolute_url }}';
|
6
|
+
};
|
7
|
+
|
8
|
+
(function() {
|
9
|
+
var d = document, s = d.createElement('script');
|
10
|
+
|
11
|
+
s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
|
12
|
+
|
13
|
+
s.setAttribute('data-timestamp', +new Date());
|
14
|
+
(d.head || d.body).appendChild(s);
|
15
|
+
})();
|
16
|
+
</script>
|
17
|
+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript> {% endcomment %}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<div id="gitment_thread"></div>
|
2
|
+
<link rel="stylesheet" href="{{'/assets/css/gitment.css' | relative_url}}"/>
|
3
|
+
<link rel="stylesheet" href="{{'/assets/css/gitment.dark.css' | relative_url}}"/>
|
4
|
+
<script src='{{ "/assets/js/gitment.browser.js" | relative_url }}'></script>
|
5
|
+
<script>
|
6
|
+
var gitment = new Gitment({
|
7
|
+
id: '{{ page.id }}',
|
8
|
+
owner: '{{ site.gitment.username }}',
|
9
|
+
repo: '{{ site.gitment.repo }}',
|
10
|
+
oauth: {
|
11
|
+
client_id: '{{ site.gitment.client_id }}',
|
12
|
+
client_secret: '{{ site.gitment.client_secret }}',
|
13
|
+
},
|
14
|
+
});
|
15
|
+
gitment.render('gitment_thread')
|
16
|
+
</script>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<script>
|
2
|
+
function initGoogleAnalytics() {
|
3
|
+
var doNotTrack = (window.doNotTrack === "1" || navigator.doNotTrack === "1" ||
|
4
|
+
navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1");
|
5
|
+
var enableDNT = "{{ site.enableDNT | default: true }}" == "true";
|
6
|
+
|
7
|
+
if (!enableDNT || !doNotTrack) {
|
8
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
9
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
10
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
11
|
+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
12
|
+
|
13
|
+
ga('create', '{{ site.google_analytics }}', 'auto');
|
14
|
+
ga('send', 'pageview');
|
15
|
+
}
|
16
|
+
}
|
17
|
+
initGoogleAnalytics();
|
18
|
+
</script>
|
19
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<!-- Global site tag (gtag.js) - Google Analytics -->
|
2
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-7GSY9TNQ2L"></script>
|
3
|
+
<script>
|
4
|
+
window.dataLayer = window.dataLayer || [];
|
5
|
+
function gtag(){dataLayer.push(arguments);}
|
6
|
+
gtag('js', new Date());
|
7
|
+
|
8
|
+
gtag('config', 'G-7GSY9TNQ2L');
|
9
|
+
</script>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
{%- assign params = include -%}
|
2
|
+
{%- if params.func -%}
|
3
|
+
{%- assign func = params.func -%}
|
4
|
+
{%- endif -%}
|
5
|
+
|
6
|
+
{%- assign include_path = func -%}
|
7
|
+
{%- assign path_array = include_path | split: '.' -%}
|
8
|
+
{%- if path_array.size == 1 -%}
|
9
|
+
{%- assign include_path = include_path | append: '.html' -%}
|
10
|
+
{%- endif -%}
|
11
|
+
|
12
|
+
{%- if func == 'log' -%}
|
13
|
+
{%- include functions/log.html level=include.level msg=include.msg -%}
|
14
|
+
{%- else -%}
|
15
|
+
{%- assign include_path = 'functions/' | append: include_path -%}
|
16
|
+
{%- include {{ include_path }} params=params-%}
|
17
|
+
{%- endif -%}
|
18
|
+
|
19
|
+
{%- if func != 'log' -%}
|
20
|
+
{%- assign msg = '[function]['
|
21
|
+
| append: {{func}}
|
22
|
+
| append: '] '
|
23
|
+
| append: {{return}}
|
24
|
+
-%}
|
25
|
+
{%- include functions.html func='log' level='info' -%}
|
26
|
+
{%- endif -%}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
{% assign split_mark = '<|>' %}
|
2
|
+
|
3
|
+
{% assign categories = '' %}
|
4
|
+
{% for category in site.categories %}
|
5
|
+
{% assign name = category | first %}
|
6
|
+
{% assign categories = categories | append: split_mark | append: name %}
|
7
|
+
{% endfor %}
|
8
|
+
|
9
|
+
{% assign return = categories
|
10
|
+
| remove_first: split_mark
|
11
|
+
| split: split_mark
|
12
|
+
| sort: self %}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
{% if include.params.filter %}
|
2
|
+
{% assign filter = include.params.filter %}
|
3
|
+
{% endif %}
|
4
|
+
|
5
|
+
{% assign split_mark = '<|>' %}
|
6
|
+
|
7
|
+
{% assign dates = '' %}
|
8
|
+
{% for post in site.posts %}
|
9
|
+
{% assign name = post.date | date: filter %}
|
10
|
+
{% assign dates = dates | append: split_mark | append: name %}
|
11
|
+
{% endfor %}
|
12
|
+
|
13
|
+
{% assign return = dates
|
14
|
+
| remove_first: split_mark
|
15
|
+
| split: split_mark
|
16
|
+
| sort: self
|
17
|
+
| uniq %}
|
18
|
+
|
@@ -0,0 +1,41 @@
|
|
1
|
+
{% if include.params.article %}
|
2
|
+
{% assign article = include.params.article %}
|
3
|
+
{% endif %}
|
4
|
+
|
5
|
+
{% if include.params.speed %}
|
6
|
+
{% assign speed = include.params.speed %}
|
7
|
+
{% else %}
|
8
|
+
{% assign speed = 160 %}
|
9
|
+
{% endif %}
|
10
|
+
|
11
|
+
{% assign total_mins = article
|
12
|
+
| number_of_words
|
13
|
+
| divided_by: speed
|
14
|
+
| at_least: 1 %}
|
15
|
+
|
16
|
+
{% assign hours = total_mins | divided_by: 60 %}
|
17
|
+
{% assign mins = total_mins | modulo: 60 %}
|
18
|
+
|
19
|
+
{% assign return = "About" %}
|
20
|
+
|
21
|
+
{% if hours > 0 %}
|
22
|
+
{% assign unit = "hour" %}
|
23
|
+
{% if hours > 1 %}
|
24
|
+
{% assign unit = unit | append: "s" %}
|
25
|
+
{% endif %}
|
26
|
+
{% assign return = return
|
27
|
+
| append: " "
|
28
|
+
| append: hours
|
29
|
+
| append: " "
|
30
|
+
| append: unit %}
|
31
|
+
{% endif %}
|
32
|
+
|
33
|
+
{% assign unit = "min" %}
|
34
|
+
{% if mins > 1 %}
|
35
|
+
{% assign unit = unit | append: "s" %}
|
36
|
+
{% endif %}
|
37
|
+
{% assign return = return
|
38
|
+
| append: " "
|
39
|
+
| append: mins
|
40
|
+
| append: " "
|
41
|
+
| append: unit %}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
{% assign split_mark = '<|>' %}
|
2
|
+
|
3
|
+
{% assign tags = '' %}
|
4
|
+
{% for tag in site.tags %}
|
5
|
+
{% assign name = tag | first %}
|
6
|
+
{% assign tags = tags | append: split_mark | append: name %}
|
7
|
+
{% endfor %}
|
8
|
+
|
9
|
+
{% assign return = tags
|
10
|
+
| remove_first: split_mark
|
11
|
+
| split: split_mark
|
12
|
+
| sort: self %}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
{%- if include.params.name -%}
|
2
|
+
{%- assign name = include.params.name -%}
|
3
|
+
{%- endif -%}
|
4
|
+
|
5
|
+
{%- if page[name] != nil -%}
|
6
|
+
{%- assign return = page[name] -%}
|
7
|
+
{%- elsif site[name] != nil -%}
|
8
|
+
{%- assign return = site[name] -%}
|
9
|
+
{%- elsif site.data[name] != nil -%}
|
10
|
+
{%- assign return = site.data[name] -%}
|
11
|
+
{%- elsif site.defaults[page.layout][name] != nil -%}
|
12
|
+
{%- assign return = site.defaults[page.layout][name] -%}
|
13
|
+
{%- elsif site.data.defaults[page.layout][name] != nil -%}
|
14
|
+
{%- assign return = site.data.defaults[page.layout][name] -%}
|
15
|
+
{%- elsif layout[name] != nil -%}
|
16
|
+
{%- assign return = layout[name] -%}
|
17
|
+
{%- else -%}
|
18
|
+
{%- assign return = include.params.default -%}
|
19
|
+
{%- endif -%}
|