dev-portfolio-blog 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -7
- data/_layouts/blog.html +26 -10
- data/_layouts/post.html +2 -1
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6e2cd76ca1b7bb0e1d221f5e3909aab3ed0341f7e0cb87d0b132a3c2bb70787
|
4
|
+
data.tar.gz: 48c2b51910ff6c1d75895ea8baeb054570b4a914f277fb6ff8935d38d8f202cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da921aeba3a3fcff87a5c9164829293475c6ee632c177ac0493e1ce682a512e154f20b2d29b1d26b43d4ada619fdcfc455c6c98d70f90521c31a734b4ddc880b
|
7
|
+
data.tar.gz: c10b4364a4908718d1a78d60ddb1c4021ca442812aeb8cfa18b0b5964442170a98b3de357b21ffbba237207f2719f5bf280b0879144b71d25dea0d44d9383d54
|
data/README.md
CHANGED
@@ -1,8 +1,13 @@
|
|
1
|
-
[![
|
1
|
+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/dev-portfolio-blog.svg)](https://badge.fury.io/rb/dev-portfolio-blog)
|
3
|
+
![](https://ruby-gem-downloads-badge.herokuapp.com/dev-portfolio-blog)
|
4
|
+
|
5
|
+
[![CodeFactor](https://www.codefactor.io/repository/github/rohitjain00/dev-portfolio-blog/badge)](https://www.codefactor.io/repository/github/rohitjain00/dev-portfolio-blog)
|
6
|
+
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/d0b9f1c23f564a8195a8588de7895c4c)](https://www.codacy.com/manual/rohitjain00/dev-portfolio-blog?utm_source=github.com&utm_medium=referral&utm_content=rohitjain00/dev-portfolio-blog&utm_campaign=Badge_Grade)
|
2
7
|
|
3
8
|
# dev-portfolio-blog
|
4
9
|
|
5
|
-
This is a minimal jekyll theme.
|
10
|
+
This is a minimal jekyll theme for writing blogs and about yourself.
|
6
11
|
|
7
12
|
## Desktop Preview
|
8
13
|
|
@@ -47,6 +52,7 @@ To start using the theme you need to create and edit some extra files in the roo
|
|
47
52
|
|
48
53
|
```yaml
|
49
54
|
layout: blog
|
55
|
+
title: blog
|
50
56
|
permalink: /blog/
|
51
57
|
```
|
52
58
|
|
@@ -57,25 +63,30 @@ layout: description
|
|
57
63
|
permalink: /about/
|
58
64
|
```
|
59
65
|
|
60
|
-
3. In the `_congif.yml` file add a key `resume_url` and set it to the path of the Resume.
|
66
|
+
3. In the `_congif.yml` file add a key `resume_url` and set it to the path of the Resume. Also add `author_name` to your name to appear on the website.
|
61
67
|
|
62
68
|
For example if the Resume is located in the root directory
|
63
69
|
|
64
70
|
```yaml
|
65
71
|
resume_url: 'Resume.pdf'
|
72
|
+
author_name: [YOUR-NAME]
|
66
73
|
```
|
67
74
|
|
68
|
-
|
75
|
+
### Pagination
|
76
|
+
|
77
|
+
Visit [jekyll-paginate-v2](https://github.com/sverrirs/jekyll-paginate-v2/blob/master/README-GENERATOR.md#site-configuration) and add this to your `_config.yml` file to enable pagination.
|
78
|
+
|
79
|
+
Check [_config.yml](https://github.com/rohitjain00/dev-portfolio-blog/blob/master/_config.yml).
|
80
|
+
|
81
|
+
|
82
|
+
1. In the `index.md` file add
|
69
83
|
|
70
84
|
```yaml
|
71
85
|
home_text : some-text
|
72
|
-
author_name: your-name
|
73
86
|
```
|
74
87
|
|
75
88
|
Replace "some-text" with your text
|
76
89
|
|
77
|
-
Replace "your-name" with your name
|
78
|
-
|
79
90
|
## Contributing
|
80
91
|
|
81
92
|
Bug reports and pull requests are welcome on GitHub at <https://github.com/[USERNAME]/dev-portfolio-blog/.> 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.
|
data/_layouts/blog.html
CHANGED
@@ -2,14 +2,30 @@
|
|
2
2
|
layout: description
|
3
3
|
title: Blog
|
4
4
|
pagetype: blog
|
5
|
+
pagination:
|
6
|
+
enabled: true
|
5
7
|
---
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
8
|
+
<!-- This loops through the paginated posts -->
|
9
|
+
<ul>
|
10
|
+
{% for post in paginator.posts %}
|
11
|
+
<h2><a href="{{ post.url | relative_url }}">{{ post.title }}</a></h2>
|
12
|
+
<small>{{ post.date | date_to_string }}</small>
|
13
|
+
<p>{{ post.excerpt }}</p>
|
14
|
+
{% endfor %}
|
15
|
+
</ul>
|
16
|
+
<hr>
|
17
|
+
{% if paginator.total_pages > 1 %}
|
18
|
+
<ul>
|
19
|
+
|
20
|
+
{% if paginator.previous_page %}
|
21
|
+
<li>
|
22
|
+
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}">Newer</a>
|
23
|
+
</li>
|
24
|
+
{% endif %}
|
25
|
+
{% if paginator.next_page %}
|
26
|
+
<li>
|
27
|
+
<a href="{{ paginator.next_page_path | prepend: site.baseurl }}">Older</a>
|
28
|
+
</li>
|
29
|
+
{% endif %}
|
30
|
+
</ul>
|
31
|
+
{% endif %}
|
data/_layouts/post.html
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dev-portfolio-blog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rohit Jain
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: jekyll-paginate-v2
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: bundler
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|