jekyll-simple-dark 0.3.0 → 0.3.1
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 +119 -119
- data/_layouts/default.html +5 -45
- data/_layouts/home.html +46 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 485ea8ca2d36f32b5d96e88b5756ade39f370321c66d55768441a335e49df7e8
|
4
|
+
data.tar.gz: fc381b8bc6d04d07ba5b404724e031cc5e1cfc15c69373ae5f9afb427710e596
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53fab33bef28399cb451d181b32e71efac18b3d4d17e14063a6c05460003274de14071becbdebb635e2fc69cabfc134a81b3199ef3d4fe7fc7230287bc827068
|
7
|
+
data.tar.gz: 7707c37fcc4901fe4501812b15abc5c05f576fcc3841d4f83725ae539ab0095439428aa6d652914c89652c85e7c8c6b42dcbee92f7da179c7c53607e48dd6afc
|
data/README.md
CHANGED
@@ -1,119 +1,119 @@
|
|
1
|
-
# jekyll-simple-dark
|
2
|
-
|
3
|
-
A simple and dark theme for Jekyll. **Under development**
|
4
|
-
|
5
|
-
Responsive images, tables and iframes (for include videos of **Youtube**, **Vimeo** or similar services)
|
6
|
-
A minimal pure javascript code for toggle menu and responsive tables. Compatible with Google Analytics and jekyll-seo-tags.
|
7
|
-
|
8
|
-
Icon font make with [Fontello](http://fontello.com/)
|
9
|
-
|
10
|
-
Support socials networks links (simple add the links on your _config.yml):
|
11
|
-
|
12
|
-
* RSS
|
13
|
-
* Facebook
|
14
|
-
* Twitter
|
15
|
-
* Google+
|
16
|
-
* Pinterest
|
17
|
-
* Youtube
|
18
|
-
* Vimeo
|
19
|
-
* Instagram
|
20
|
-
* Linkedin
|
21
|
-
|
22
|
-
If you need a icon for others socials networks create a new issue on theme repository.
|
23
|
-
|
24
|
-
Browser compatibility:
|
25
|
-
|
26
|
-
* Firefox
|
27
|
-
* Chrome/Chromium
|
28
|
-
* Edge
|
29
|
-
* Internet Explorer 10
|
30
|
-
* Opera
|
31
|
-
|
32
|
-
## Installation
|
33
|
-
|
34
|
-
Add this lines to your Jekyll site's `Gemfile`:
|
35
|
-
|
36
|
-
```ruby
|
37
|
-
gem "jekyll-simple-dark"
|
38
|
-
gem "jekyll-paginator" # This line isn't necessary if you use github-pages
|
39
|
-
```
|
40
|
-
|
41
|
-
Add this lines to your Jekyll site's `_config.yml`:
|
42
|
-
|
43
|
-
```yaml
|
44
|
-
theme: jekyll-simple-dark
|
45
|
-
plugins:
|
46
|
-
- jekyll-paginate
|
47
|
-
paginate: 5 # Posts per page
|
48
|
-
paginate_path: "page:num/"
|
49
|
-
```
|
50
|
-
|
51
|
-
Rename **index.md** to **index.html** and change
|
52
|
-
|
53
|
-
And then execute:
|
54
|
-
|
55
|
-
$ bundle
|
56
|
-
|
57
|
-
Or install it yourself as:
|
58
|
-
|
59
|
-
$ gem install jekyll-simple-dark
|
60
|
-
|
61
|
-
### Social links:
|
62
|
-
|
63
|
-
For activate social links add these lines on your _config.yml:
|
64
|
-
|
65
|
-
```yaml
|
66
|
-
social_links: true # If true show social links
|
67
|
-
rss: true # For add icon to link feed.xml
|
68
|
-
facebook:
|
69
|
-
github:
|
70
|
-
gplus:
|
71
|
-
instagram:
|
72
|
-
linkedin:
|
73
|
-
pinterest:
|
74
|
-
twitter:
|
75
|
-
site.vimeo:
|
76
|
-
youtube:
|
77
|
-
```
|
78
|
-
Just add the ones you're going to use.
|
79
|
-
|
80
|
-
**Note:** gplus is for Google+ link.
|
81
|
-
|
82
|
-
### Responsive iframe for Youtube or Vimeo videos:
|
83
|
-
|
84
|
-
Insert the iframe code into a div whit the class **video** and remove **width** and **height** attributes, like this:
|
85
|
-
|
86
|
-
```html
|
87
|
-
<div class="video">
|
88
|
-
<iframe src="https://www.youtube.com/embed/<videoID>" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
|
89
|
-
</div>
|
90
|
-
```
|
91
|
-
|
92
|
-
### Google Analytics:
|
93
|
-
For use Google Analytics include this line on **_config.yml** and replace <code> for your Google Analytics code:
|
94
|
-
|
95
|
-
```yaml
|
96
|
-
google-analytics: <code>
|
97
|
-
```
|
98
|
-
Where <code> is your Google Analytics code.
|
99
|
-
|
100
|
-
### jekyll-seo-tag:
|
101
|
-
For use you only need add this plugin on the plugins array on **_config.yml**
|
102
|
-
|
103
|
-
## Contributing
|
104
|
-
|
105
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/son-link/jekyll-simple-dark
|
106
|
-
. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
107
|
-
|
108
|
-
## Development
|
109
|
-
|
110
|
-
To set up your environment to develop this theme, run `bundle install`.
|
111
|
-
|
112
|
-
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.
|
113
|
-
|
114
|
-
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
115
|
-
To add a custom directory to your theme-gem, please edit the regexp in `simple-dark.gemspec` accordingly.
|
116
|
-
|
117
|
-
## License
|
118
|
-
|
119
|
-
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
1
|
+
# jekyll-simple-dark
|
2
|
+
|
3
|
+
A simple and dark theme for Jekyll. **Under development**
|
4
|
+
|
5
|
+
Responsive images, tables and iframes (for include videos of **Youtube**, **Vimeo** or similar services)
|
6
|
+
A minimal pure javascript code for toggle menu and responsive tables. Compatible with Google Analytics and jekyll-seo-tags.
|
7
|
+
|
8
|
+
Icon font make with [Fontello](http://fontello.com/)
|
9
|
+
|
10
|
+
Support socials networks links (simple add the links on your _config.yml):
|
11
|
+
|
12
|
+
* RSS
|
13
|
+
* Facebook
|
14
|
+
* Twitter
|
15
|
+
* Google+
|
16
|
+
* Pinterest
|
17
|
+
* Youtube
|
18
|
+
* Vimeo
|
19
|
+
* Instagram
|
20
|
+
* Linkedin
|
21
|
+
|
22
|
+
If you need a icon for others socials networks create a new issue on theme repository.
|
23
|
+
|
24
|
+
Browser compatibility:
|
25
|
+
|
26
|
+
* Firefox
|
27
|
+
* Chrome/Chromium
|
28
|
+
* Edge
|
29
|
+
* Internet Explorer 10
|
30
|
+
* Opera
|
31
|
+
|
32
|
+
## Installation
|
33
|
+
|
34
|
+
Add this lines to your Jekyll site's `Gemfile`:
|
35
|
+
|
36
|
+
```ruby
|
37
|
+
gem "jekyll-simple-dark"
|
38
|
+
gem "jekyll-paginator" # This line isn't necessary if you use github-pages
|
39
|
+
```
|
40
|
+
|
41
|
+
Add this lines to your Jekyll site's `_config.yml`:
|
42
|
+
|
43
|
+
```yaml
|
44
|
+
theme: jekyll-simple-dark
|
45
|
+
plugins:
|
46
|
+
- jekyll-paginate
|
47
|
+
paginate: 5 # Posts per page
|
48
|
+
paginate_path: "page:num/"
|
49
|
+
```
|
50
|
+
|
51
|
+
Rename **index.md** to **index.html** and change **layout** to *home*
|
52
|
+
|
53
|
+
And then execute:
|
54
|
+
|
55
|
+
$ bundle
|
56
|
+
|
57
|
+
Or install it yourself as:
|
58
|
+
|
59
|
+
$ gem install jekyll-simple-dark
|
60
|
+
|
61
|
+
### Social links:
|
62
|
+
|
63
|
+
For activate social links add these lines on your _config.yml:
|
64
|
+
|
65
|
+
```yaml
|
66
|
+
social_links: true # If true show social links
|
67
|
+
rss: true # For add icon to link feed.xml
|
68
|
+
facebook:
|
69
|
+
github:
|
70
|
+
gplus:
|
71
|
+
instagram:
|
72
|
+
linkedin:
|
73
|
+
pinterest:
|
74
|
+
twitter:
|
75
|
+
site.vimeo:
|
76
|
+
youtube:
|
77
|
+
```
|
78
|
+
Just add the ones you're going to use.
|
79
|
+
|
80
|
+
**Note:** gplus is for Google+ link.
|
81
|
+
|
82
|
+
### Responsive iframe for Youtube or Vimeo videos:
|
83
|
+
|
84
|
+
Insert the iframe code into a div whit the class **video** and remove **width** and **height** attributes, like this:
|
85
|
+
|
86
|
+
```html
|
87
|
+
<div class="video">
|
88
|
+
<iframe src="https://www.youtube.com/embed/<videoID>" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
|
89
|
+
</div>
|
90
|
+
```
|
91
|
+
|
92
|
+
### Google Analytics:
|
93
|
+
For use Google Analytics include this line on **_config.yml** and replace <code> for your Google Analytics code:
|
94
|
+
|
95
|
+
```yaml
|
96
|
+
google-analytics: <code>
|
97
|
+
```
|
98
|
+
Where <code> is your Google Analytics code.
|
99
|
+
|
100
|
+
### jekyll-seo-tag:
|
101
|
+
For use you only need add this plugin on the plugins array on **_config.yml**
|
102
|
+
|
103
|
+
## Contributing
|
104
|
+
|
105
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/son-link/jekyll-simple-dark
|
106
|
+
. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
107
|
+
|
108
|
+
## Development
|
109
|
+
|
110
|
+
To set up your environment to develop this theme, run `bundle install`.
|
111
|
+
|
112
|
+
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.
|
113
|
+
|
114
|
+
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
115
|
+
To add a custom directory to your theme-gem, please edit the regexp in `simple-dark.gemspec` accordingly.
|
116
|
+
|
117
|
+
## License
|
118
|
+
|
119
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/_layouts/default.html
CHANGED
@@ -1,45 +1,5 @@
|
|
1
|
-
{% include header.html %}
|
2
|
-
<div id="content">
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
<div class="entry">
|
7
|
-
<div class="entry-header">
|
8
|
-
<a href="{{ post.url | prepend: site.baseurl }}" class="entry-title">{{ post.title }}</a>
|
9
|
-
<time class="entry-date">{{ post.date | date: "%d/%m/%Y" }}</time>
|
10
|
-
</div>
|
11
|
-
<div class="entry-content">
|
12
|
-
{{ post.content }}
|
13
|
-
</div>
|
14
|
-
</div>
|
15
|
-
{% endfor %}
|
16
|
-
</div>
|
17
|
-
|
18
|
-
<!-- Pagination links -->
|
19
|
-
{% if paginator.total_pages > 1 %}
|
20
|
-
<nav id="pagination">
|
21
|
-
{% if paginator.previous_page %}
|
22
|
-
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}"><i class="icon-prev"></i></a>
|
23
|
-
{% else %}
|
24
|
-
<span class="icon-prev inactive"></span>
|
25
|
-
{% endif %}
|
26
|
-
|
27
|
-
{% for page in (1..paginator.total_pages) %}
|
28
|
-
{% if page == paginator.page %}
|
29
|
-
<span class="actual-page inactive">{{ page }}</span>
|
30
|
-
{% elsif page == 1 %}
|
31
|
-
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">{{ page }}</a>
|
32
|
-
{% else %}
|
33
|
-
<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
|
34
|
-
{% endif %}
|
35
|
-
{% endfor %}
|
36
|
-
|
37
|
-
{% if paginator.next_page %}
|
38
|
-
<a rel="next" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}"><i class="icon-next"></i></a>
|
39
|
-
{% else %}
|
40
|
-
<span class="icon-next inactive"></span>
|
41
|
-
{% endif %}
|
42
|
-
</nav>
|
43
|
-
{% endif %}
|
44
|
-
</div>
|
45
|
-
{% include footer.html %}
|
1
|
+
{% include header.html %}
|
2
|
+
<div id="content">
|
3
|
+
{{ content }}
|
4
|
+
</div>
|
5
|
+
{% include footer.html %}
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<div id="content">
|
5
|
+
|
6
|
+
<div id="entries">
|
7
|
+
{% for post in paginator.posts %}
|
8
|
+
<div class="entry">
|
9
|
+
<div class="entry-header">
|
10
|
+
<a href="{{ post.url | prepend: site.baseurl | prepend: site.url }}" class="entry-title">{{ post.title }}</a>
|
11
|
+
<time class="entry-date">{{ post.date | date: "%d/%m/%Y" }}</time>
|
12
|
+
</div>
|
13
|
+
<div class="entry-content">
|
14
|
+
{{ post.content }}
|
15
|
+
</div>
|
16
|
+
</div>
|
17
|
+
{% endfor %}
|
18
|
+
</div>
|
19
|
+
|
20
|
+
<!-- Pagination links -->
|
21
|
+
{% if paginator.total_pages > 1 %}
|
22
|
+
<nav id="pagination">
|
23
|
+
{% if paginator.previous_page %}
|
24
|
+
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | prepend: site.url | replace: '//', '/' }}"><i class="icon-prev"></i></a>
|
25
|
+
{% else %}
|
26
|
+
<span class="icon-prev inactive"></span>
|
27
|
+
{% endif %}
|
28
|
+
|
29
|
+
{% for page in (1..paginator.total_pages) %}
|
30
|
+
{% if page == paginator.page %}
|
31
|
+
<span class="actual-page inactive">{{ page }}</span>
|
32
|
+
{% elsif page == 1 %}
|
33
|
+
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | prepend: site.url | replace: '//', '/' }}">{{ page }}</a>
|
34
|
+
{% else %}
|
35
|
+
<a href="{{ site.paginate_path | prepend: site.baseurl | prepend: site.url | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
|
36
|
+
{% endif %}
|
37
|
+
{% endfor %}
|
38
|
+
|
39
|
+
{% if paginator.next_page %}
|
40
|
+
<a rel="next" href="{{ paginator.next_page_path | prepend: site.baseurl | prepend: site.url | replace: '//', '/' }}"><i class="icon-next"></i></a>
|
41
|
+
{% else %}
|
42
|
+
<span class="icon-next inactive"></span>
|
43
|
+
{% endif %}
|
44
|
+
</nav>
|
45
|
+
{% endif %}
|
46
|
+
</div>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-simple-dark
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alfonso Saavedra 'Son Link'
|
@@ -65,6 +65,7 @@ files:
|
|
65
65
|
- _includes/google-analytics.html
|
66
66
|
- _includes/header.html
|
67
67
|
- _layouts/default.html
|
68
|
+
- _layouts/home.html
|
68
69
|
- _layouts/page.html
|
69
70
|
- _layouts/post.html
|
70
71
|
- assets/css/fontello-embedded.css
|
@@ -91,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
92
|
version: '0'
|
92
93
|
requirements: []
|
93
94
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.7.
|
95
|
+
rubygems_version: 2.7.4
|
95
96
|
signing_key:
|
96
97
|
specification_version: 4
|
97
98
|
summary: Simple dark theme for Jekyll using Colors palette. http://clrs.cc/
|