dev-portfolio-blog 0.1.9 → 0.2.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/CHANGELOG.md +9 -0
- data/LICENSE.txt +21 -21
- data/README.md +234 -171
- data/_includes/analytics.html +9 -9
- data/_includes/disqus_comments.html +13 -13
- data/_includes/navigation.html +21 -21
- data/_includes/share_buttons.html +40 -40
- data/_includes/themeSelector.html +2 -2
- data/_layouts/blog.html +50 -46
- data/_layouts/categories.html +22 -22
- data/_layouts/default.html +48 -48
- data/_layouts/description.html +12 -12
- data/_layouts/home.html +15 -15
- data/_layouts/list.html +20 -21
- data/_layouts/page.html +5 -5
- data/_layouts/post.html +27 -27
- data/_sass/main.scss +271 -321
- data/assets/css/styles.scss +3 -3
- data/assets/js/script.js +30 -29
- data/assets/js/theme.js +32 -12
- metadata +52 -70
- data/blog.md +0 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3665ea4fb4a3bb77234907fbb42b12efa3644d11f6add1e070b55b793259fa0c
|
|
4
|
+
data.tar.gz: 50a84b31b1e26c79c6f778910a50f66d6fc55a1aad11c17f90dfb1735685c149
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 266d9ad5ca322969f082bbbfde97dbb1a7c217c4767884eb53a2cd0f522eda90aebc968e59b9795cefb84963ac2d6326cc89e365d0ff8dfc433a98d048b6ed58
|
|
7
|
+
data.tar.gz: 6d894cf31353b689c456900c786cc5c2c34fd0a4d5699aa54d5a4fd40aed048617e8b610c570b9cc4fbe0b73b6d4babd8671cea2e44ceb006d15931637373795
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.2.0 - 2026-06-21
|
|
4
|
+
|
|
5
|
+
- Add a reproducible Docker and Docker Compose development environment.
|
|
6
|
+
- Require Ruby 3.2 and Jekyll 4.4, with bounded dependency ranges.
|
|
7
|
+
- Show short, plain-text previews on the blog index.
|
|
8
|
+
- Remove the unused `jekyll-assets`, Sprockets, and Autoprefixer dependency stack.
|
|
9
|
+
- Replace deprecated Sass and minifier configuration.
|
data/LICENSE.txt
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2020 Rohit Jain
|
|
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.
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 Rohit Jain
|
|
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
CHANGED
|
@@ -1,187 +1,250 @@
|
|
|
1
|
-
[](https://opensource.org/licenses/MIT)
|
|
2
|
-
[](https://badge.fury.io/rb/dev-portfolio-blog)
|
|
3
|
-

|
|
4
|
-
|
|
5
|
-
[](https://www.codefactor.io/repository/github/rohitjain00/dev-portfolio-blog)
|
|
6
|
-
[](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)
|
|
7
|
-
|
|
8
|
-
[](https://hits.seeyoufarm.com)
|
|
9
|
-
|
|
10
|
-
## Home pagespeed
|
|
11
|
-
|
|
12
|
-

|
|
13
|
-

|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
## Blog pagespeed
|
|
17
|
-
|
|
18
|
-

|
|
19
|
-

|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
# dev-portfolio-blog
|
|
24
|
-
|
|
25
|
-
This is a minimal jekyll theme for writing blogs and about yourself.
|
|
26
|
-
|
|
27
|
-
## features
|
|
28
|
-
1. Google Analytics
|
|
29
|
-
2.
|
|
30
|
-
3. Disqus comments
|
|
31
|
-
4. Categorization
|
|
32
|
-
5. Emojis Support
|
|
33
|
-
6. Highly optimized blog
|
|
34
|
-
#### PageSpeed Insights
|
|
35
|
-
* [Home](https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Ftherohitjain.com)[(therohitjain.com)](https://therohitjain.com)
|
|
36
|
-
* [Blog](https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Ftherohitjain.com/blog/)[(therohitjain.com/blog/)](https://therohitjain.com/blog/)
|
|
37
|
-
* [About](https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Ftherohitjain.com/about/)[(therohitjain.com/about/)](https://therohitjain.com/about/)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
## Desktop Preview
|
|
41
|
-
|
|
42
|
-

|
|
43
|
-
|
|
44
|
-

|
|
45
|
-
|
|
46
|
-
## Mobile Preview
|
|
47
|
-
|
|
48
|
-

|
|
49
|
-
|
|
50
|
-

|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
## Installation
|
|
54
|
-
|
|
55
|
-
Add this line to your Jekyll site's `Gemfile`:
|
|
56
|
-
|
|
57
|
-
```ruby
|
|
58
|
-
gem "dev-portfolio-blog"
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
And add this line to your Jekyll site's `_config.yml`:
|
|
62
|
-
|
|
63
|
-
```yaml
|
|
64
|
-
theme: dev-portfolio-blog
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
And then execute:
|
|
68
|
-
|
|
69
|
-
$ bundle install
|
|
70
|
-
|
|
71
|
-
Or install it yourself as:
|
|
72
|
-
|
|
73
|
-
$ gem install dev-portfolio-blog
|
|
74
|
-
|
|
75
|
-
## Usage
|
|
76
|
-
|
|
77
|
-
To start using the theme you either follow these steps or simply fork my repo https://github.com/rohitjain00/rohitjain00.github.io and update the files.
|
|
78
|
-
|
|
79
|
-
### Recommended
|
|
80
|
-
Please use the theme as the plugin so that all the latest updated for this theme comes directly in your website.
|
|
81
|
-
|
|
82
|
-
#### Clone the branch `master` and change the theme accordingly.
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
### Starting from the beginning:
|
|
86
|
-
Assuming that you started your first website based on `minima` theme from [here](https://jekyllrb.com/docs/)
|
|
87
|
-
|
|
88
|
-
1. Add a `favicon.ico` to the root directory for favicon.
|
|
89
|
-
|
|
90
|
-
2. Create `blog.md` in the root folder ans set its yaml parameters to
|
|
91
|
-
|
|
92
|
-
```yaml
|
|
93
|
-
layout: blog
|
|
94
|
-
permalink: /blog/
|
|
95
|
-
title: [Blog Page Title]
|
|
96
|
-
pagination:
|
|
97
|
-
enabled: true
|
|
1
|
+
[](https://opensource.org/licenses/MIT)
|
|
2
|
+
[](https://badge.fury.io/rb/dev-portfolio-blog)
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
[](https://www.codefactor.io/repository/github/rohitjain00/dev-portfolio-blog)
|
|
6
|
+
[](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)
|
|
7
|
+
|
|
8
|
+
[](https://hits.seeyoufarm.com)
|
|
9
|
+
|
|
10
|
+
## Home pagespeed
|
|
11
|
+
|
|
12
|
+

|
|
13
|
+

|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## Blog pagespeed
|
|
17
|
+
|
|
18
|
+

|
|
19
|
+

|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# dev-portfolio-blog
|
|
24
|
+
|
|
25
|
+
This is a minimal jekyll theme for writing blogs and about yourself.
|
|
26
|
+
|
|
27
|
+
## features
|
|
28
|
+
1. Google Analytics
|
|
29
|
+
2. Many themes such as: Default, Solarized, and Sepia. All in light and dark modes.
|
|
30
|
+
3. Disqus comments
|
|
31
|
+
4. Categorization
|
|
32
|
+
5. Emojis Support
|
|
33
|
+
6. Highly optimized blog
|
|
34
|
+
#### PageSpeed Insights
|
|
35
|
+
* [Home](https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Ftherohitjain.com)[(therohitjain.com)](https://therohitjain.com)
|
|
36
|
+
* [Blog](https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Ftherohitjain.com/blog/)[(therohitjain.com/blog/)](https://therohitjain.com/blog/)
|
|
37
|
+
* [About](https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Ftherohitjain.com/about/)[(therohitjain.com/about/)](https://therohitjain.com/about/)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
## Desktop Preview
|
|
41
|
+
|
|
42
|
+

|
|
43
|
+
|
|
44
|
+

|
|
45
|
+
|
|
46
|
+
## Mobile Preview
|
|
47
|
+
|
|
48
|
+

|
|
49
|
+
|
|
50
|
+

|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
## Installation
|
|
54
|
+
|
|
55
|
+
Add this line to your Jekyll site's `Gemfile`:
|
|
56
|
+
|
|
57
|
+
```ruby
|
|
58
|
+
gem "dev-portfolio-blog"
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
And add this line to your Jekyll site's `_config.yml`:
|
|
62
|
+
|
|
63
|
+
```yaml
|
|
64
|
+
theme: dev-portfolio-blog
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
And then execute:
|
|
68
|
+
|
|
69
|
+
$ bundle install
|
|
70
|
+
|
|
71
|
+
Or install it yourself as:
|
|
72
|
+
|
|
73
|
+
$ gem install dev-portfolio-blog
|
|
74
|
+
|
|
75
|
+
## Usage
|
|
76
|
+
|
|
77
|
+
To start using the theme you either follow these steps or simply fork my repo https://github.com/rohitjain00/rohitjain00.github.io and update the files.
|
|
78
|
+
|
|
79
|
+
### Recommended
|
|
80
|
+
Please use the theme as the plugin so that all the latest updated for this theme comes directly in your website.
|
|
81
|
+
|
|
82
|
+
#### Clone the branch `master` and change the theme accordingly.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
### Starting from the beginning:
|
|
86
|
+
Assuming that you started your first website based on `minima` theme from [here](https://jekyllrb.com/docs/)
|
|
87
|
+
|
|
88
|
+
1. Add a `favicon.ico` to the root directory for favicon.
|
|
89
|
+
|
|
90
|
+
2. Create `blog.md` in the root folder ans set its yaml parameters to
|
|
91
|
+
|
|
92
|
+
```yaml
|
|
93
|
+
layout: blog
|
|
94
|
+
permalink: /blog/
|
|
95
|
+
title: [Blog Page Title]
|
|
96
|
+
pagination:
|
|
97
|
+
enabled: true
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
3. Change your `about.md` yaml parameters to following
|
|
101
|
+
|
|
102
|
+
```yaml
|
|
103
|
+
layout: description
|
|
104
|
+
permalink: /about/
|
|
105
|
+
title: About
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
3. In the `index.md` file add
|
|
109
|
+
|
|
110
|
+
```yaml
|
|
111
|
+
layout: home
|
|
112
|
+
home_text: Text
|
|
113
|
+
title: [Home Page Title]
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
4. Create a new `categories.md` file in root with following yaml parameters
|
|
117
|
+
```yaml
|
|
118
|
+
layout: categories
|
|
119
|
+
permalink: /categories/
|
|
120
|
+
title: Categories
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
4. In the `_config.yml` file add following and change accordingly
|
|
124
|
+
|
|
125
|
+
Path is relative to the root directory
|
|
126
|
+
```yaml
|
|
127
|
+
resume_url: [PATH_TO_RESUME]
|
|
128
|
+
author_name: [YOUR_NAME]
|
|
129
|
+
description: [SITE_DESCRIPTION]
|
|
130
|
+
url: [WEBSITE_URL]
|
|
131
|
+
google_analytics: '[google analytics Id]'
|
|
132
|
+
disqus:
|
|
133
|
+
shortname: [discus-shotname]
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### Minifier
|
|
137
|
+
|
|
138
|
+
Visit [Jekyll-minifier](https://github.com/digitalsparky/jekyll-minifier) and add this to your `_config.yml` file to enable minifier.
|
|
139
|
+
|
|
140
|
+
### Pagination
|
|
141
|
+
|
|
142
|
+
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.
|
|
143
|
+
|
|
144
|
+
### Check here [_config.yml](https://github.com/rohitjain00/rohitjain00.github.io/blob/site/_config.yml) for example config file.
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
## Writing a new blog
|
|
148
|
+
|
|
149
|
+
Create a new folder `_posts` in root folder if not already exists.
|
|
150
|
+
|
|
151
|
+
1. Create a new markdown file in the format `yyyy-mm-dd-postname.md`
|
|
152
|
+
2. Make sure that disqus's shortname is valid.
|
|
153
|
+
3. Add YAML configuration to the post. Set `description` to control the summary shown on the blog index.
|
|
154
|
+
|
|
155
|
+
```yaml
|
|
156
|
+
---
|
|
157
|
+
layout: post
|
|
158
|
+
comments: [true | false]
|
|
159
|
+
title: Hello World
|
|
160
|
+
categories: [category1, category2]
|
|
161
|
+
description: A short introduction to this post.
|
|
162
|
+
---
|
|
163
|
+
Post Text.
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
The blog index uses `description` when it is present. Otherwise, it shows a plain-text preview of the post excerpt, limited to 30 words. Individual post pages continue to display the complete post.
|
|
167
|
+
|
|
168
|
+
## Troubleshooting
|
|
169
|
+
- ` Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes`
|
|
170
|
+
Node JS is missing from your system. In ubuntu install using `sudo apt-get install nodejs` or refer to [this](https://stackoverflow.com/questions/9202324/execjs-could-not-find-a-javascript-runtime-but-execjs-and-therubyracer-are-in)
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
## Contributing
|
|
174
|
+
|
|
175
|
+
Bug reports and pull requests are welcome on GitHub at <https://github.com/rohitjain00/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.
|
|
176
|
+
|
|
177
|
+
## Development
|
|
178
|
+
|
|
179
|
+
The project targets Ruby 3.2.0 and Jekyll 4.4. For a native setup, install Ruby and Node.js, then run `bundle install`.
|
|
180
|
+
|
|
181
|
+
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.
|
|
182
|
+
|
|
183
|
+
### Docker
|
|
184
|
+
|
|
185
|
+
Docker is the recommended setup because it provides the required Ruby and Node.js versions. With Docker Desktop running, build and start the development server:
|
|
186
|
+
|
|
187
|
+
```sh
|
|
188
|
+
docker compose up --build
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
Open `http://localhost:4000`. Source files are mounted into the container, so Jekyll rebuilds the site when they change. Stop the server with `Ctrl+C`; use `docker compose down` to remove the container.
|
|
192
|
+
|
|
193
|
+
To verify that the site compiles without starting the server, run:
|
|
194
|
+
|
|
195
|
+
```sh
|
|
196
|
+
docker compose build
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
The gem contains the files under `_layouts`, `_includes`, `_sass`, and `assets`, plus the README, license, and changelog. Update `spec.files` in `dev-portfolio-blog.gemspec` when adding another packaged directory.
|
|
200
|
+
|
|
201
|
+
## Release
|
|
202
|
+
|
|
203
|
+
Version 0.2.0 adds the Docker development environment, Ruby 3.2 and Jekyll 4.4 support, short blog-index previews, bounded gem dependencies, and updated Sass and minifier configuration. See [CHANGELOG.md](CHANGELOG.md) for the release history.
|
|
204
|
+
|
|
205
|
+
Before releasing a new version, update the version in `dev-portfolio-blog.gemspec` and add its changes to `CHANGELOG.md`. Run a clean build and create the gem from the verified container:
|
|
206
|
+
|
|
207
|
+
```sh
|
|
208
|
+
docker compose build --no-cache
|
|
209
|
+
docker compose run --rm --no-deps site gem build dev-portfolio-blog.gemspec
|
|
98
210
|
```
|
|
99
211
|
|
|
100
|
-
|
|
212
|
+
Inspect the generated gem before publishing:
|
|
101
213
|
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
permalink: /about/
|
|
105
|
-
title: About
|
|
214
|
+
```sh
|
|
215
|
+
docker compose run --rm --no-deps site gem specification ./dev-portfolio-blog-0.2.0.gem --yaml
|
|
106
216
|
```
|
|
107
217
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
```yaml
|
|
111
|
-
layout: home
|
|
112
|
-
home_text: Text
|
|
113
|
-
title: [Home Page Title]
|
|
114
|
-
```
|
|
218
|
+
Commit the release, create an annotated version tag, and push both:
|
|
115
219
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
220
|
+
```sh
|
|
221
|
+
git add dev-portfolio-blog.gemspec CHANGELOG.md
|
|
222
|
+
git commit -m "Release version 0.2.0"
|
|
223
|
+
git tag -a v0.2.0 -m "Release version 0.2.0"
|
|
224
|
+
git push origin master
|
|
225
|
+
git push origin v0.2.0
|
|
121
226
|
```
|
|
122
227
|
|
|
123
|
-
|
|
228
|
+
Sign in interactively so credentials and MFA codes are not stored in the repository or shell history:
|
|
124
229
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
resume_url: [PATH_TO_RESUME]
|
|
128
|
-
author_name: [YOUR_NAME]
|
|
129
|
-
description: [SITE_DESCRIPTION]
|
|
130
|
-
url: [WEBSITE_URL]
|
|
131
|
-
google_analytics: '[google analytics Id]'
|
|
132
|
-
disqus:
|
|
133
|
-
shortname: [discus-shotname]
|
|
230
|
+
```sh
|
|
231
|
+
docker run --rm -it -v "${PWD}:/app" -v "${HOME}/.gem:/root/.gem" -w /app ruby:3.2-bullseye gem signin
|
|
134
232
|
```
|
|
135
233
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
Visit [Jekyll-minifier](https://github.com/digitalsparky/jekyll-minifier) and add this to your `_config.yml` file to enable minifier.
|
|
139
|
-
|
|
140
|
-
### Pagination
|
|
141
|
-
|
|
142
|
-
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.
|
|
234
|
+
Publish the verified artifact using the saved RubyGems credentials:
|
|
143
235
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
## Writing a new blog
|
|
148
|
-
|
|
149
|
-
Create a new folder `_posts` in root folder if not already exists.
|
|
150
|
-
|
|
151
|
-
1. Create a new markdown file in the format `yyyy-mm-dd-postname.md`
|
|
152
|
-
2. Make sure that disqus's shortname is valid.
|
|
153
|
-
3. Add yaml configuartion to the post
|
|
154
|
-
|
|
155
|
-
```yaml
|
|
156
|
-
---
|
|
157
|
-
layout: post
|
|
158
|
-
comments: [true | false]
|
|
159
|
-
title: Hello World
|
|
160
|
-
categories: [category1, category2]
|
|
161
|
-
---
|
|
162
|
-
Post Text.
|
|
236
|
+
```sh
|
|
237
|
+
docker run --rm -it -v "${PWD}:/app" -v "${HOME}/.gem:/root/.gem" -w /app ruby:3.2-bullseye gem push dev-portfolio-blog-0.2.0.gem
|
|
163
238
|
```
|
|
164
239
|
|
|
165
|
-
|
|
166
|
-
## Contributing
|
|
167
|
-
|
|
168
|
-
Bug reports and pull requests are welcome on GitHub at <https://github.com/rohitjain00/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.
|
|
169
|
-
|
|
170
|
-
## Development
|
|
171
|
-
|
|
172
|
-
To set up your environment to develop this theme, run `bundle install`.
|
|
173
|
-
|
|
174
|
-
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.
|
|
175
|
-
|
|
176
|
-
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
|
177
|
-
To add a custom directory to your theme-gem, please edit the regexp in `dev-portfolio-blog.gemspec` accordingly.
|
|
240
|
+
Never commit `.gem/credentials` or an API key. Confirm the published version at [RubyGems](https://rubygems.org/gems/dev-portfolio-blog).
|
|
178
241
|
|
|
179
242
|
### Read about the themes and how it's implemented [here](https://github.com/rohitjain00/dev-portfolio-blog/wiki/Theme-Management)
|
|
180
|
-
|
|
181
|
-
## License
|
|
182
|
-
|
|
183
|
-
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
|
184
|
-
|
|
185
|
-
If you like my work, you can buy me a coffee here :smile:
|
|
186
|
-
|
|
187
|
-
<a href="https://www.buymeacoffee.com/rohitjain00" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-blue.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
|
|
243
|
+
|
|
244
|
+
## License
|
|
245
|
+
|
|
246
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
|
247
|
+
|
|
248
|
+
If you like my work, you can buy me a coffee here :smile:
|
|
249
|
+
|
|
250
|
+
<a href="https://www.buymeacoffee.com/rohitjain00" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-blue.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
|
data/_includes/analytics.html
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
<!-- Global site tag (gtag.js) - Google Analytics -->
|
|
2
|
-
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
|
|
3
|
-
<script>
|
|
4
|
-
window.dataLayer = window.dataLayer || [];
|
|
5
|
-
function gtag(){dataLayer.push(arguments);}
|
|
6
|
-
gtag('js', new Date());
|
|
7
|
-
|
|
8
|
-
gtag('config', '{{ site.google_analytics }}');
|
|
9
|
-
</script>
|
|
1
|
+
<!-- Global site tag (gtag.js) - Google Analytics -->
|
|
2
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
|
|
3
|
+
<script>
|
|
4
|
+
window.dataLayer = window.dataLayer || [];
|
|
5
|
+
function gtag(){dataLayer.push(arguments);}
|
|
6
|
+
gtag('js', new Date());
|
|
7
|
+
|
|
8
|
+
gtag('config', '{{ site.google_analytics }}');
|
|
9
|
+
</script>
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
<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
|
-
(function() {
|
|
8
|
-
var d = document, s = d.createElement('script');
|
|
9
|
-
s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
|
|
10
|
-
s.setAttribute('data-timestamp', +new Date());
|
|
11
|
-
(d.head || d.body).appendChild(s);
|
|
12
|
-
})();
|
|
13
|
-
</script>
|
|
1
|
+
<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
|
+
(function() {
|
|
8
|
+
var d = document, s = d.createElement('script');
|
|
9
|
+
s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
|
|
10
|
+
s.setAttribute('data-timestamp', +new Date());
|
|
11
|
+
(d.head || d.body).appendChild(s);
|
|
12
|
+
})();
|
|
13
|
+
</script>
|
|
14
14
|
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
|
data/_includes/navigation.html
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
<ul>
|
|
2
|
-
<li>
|
|
3
|
-
<a href = "{{ '/' | relative_url }}">
|
|
4
|
-
Home
|
|
5
|
-
</a>
|
|
6
|
-
</li>
|
|
7
|
-
<li>
|
|
8
|
-
<a href = "{{ 'about/' | relative_url }}">
|
|
9
|
-
About
|
|
10
|
-
</a>
|
|
11
|
-
</li>
|
|
12
|
-
<li>
|
|
13
|
-
<a href = "{{ 'blog/' | relative_url }}">
|
|
14
|
-
Blog
|
|
15
|
-
</a>
|
|
16
|
-
</li>
|
|
17
|
-
<li>
|
|
18
|
-
<a href = "{{ site.resume_url | relative_url }}">
|
|
19
|
-
Resume
|
|
20
|
-
</a>
|
|
21
|
-
</li>
|
|
1
|
+
<ul>
|
|
2
|
+
<li>
|
|
3
|
+
<a href = "{{ '/' | relative_url }}">
|
|
4
|
+
Home
|
|
5
|
+
</a>
|
|
6
|
+
</li>
|
|
7
|
+
<li>
|
|
8
|
+
<a href = "{{ 'about/' | relative_url }}">
|
|
9
|
+
About
|
|
10
|
+
</a>
|
|
11
|
+
</li>
|
|
12
|
+
<li>
|
|
13
|
+
<a href = "{{ 'blog/' | relative_url }}">
|
|
14
|
+
Blog
|
|
15
|
+
</a>
|
|
16
|
+
</li>
|
|
17
|
+
<li>
|
|
18
|
+
<a href = "{{ site.resume_url | relative_url }}">
|
|
19
|
+
Resume
|
|
20
|
+
</a>
|
|
21
|
+
</li>
|
|
22
22
|
</ul>
|