dark-blog-theme 2.0.1 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c183078884ab6e6ab82b9f1076d1dcccd28d59cfc1634d773a23f85acd3ea84
4
- data.tar.gz: cd3da78f9db00bdafa834d48368e1f663e98ae5724745f5e969a5730b6f0a1fe
3
+ metadata.gz: c0c7c1154bebe192e2966b603874b0399840044a8d3755110b6cc74f9b8198a6
4
+ data.tar.gz: c466a6a1512f11fbde6f220b258b48c2f74c2120d3d4024644d3c580179ce990
5
5
  SHA512:
6
- metadata.gz: e0c10815f8523a78d7abc5e496069c01c566cbb3d3f077e851620500ad4292112b6dec613aa335630869ec9c59418213926516faa447823729af84a9b2e55591
7
- data.tar.gz: 5835d3068d4c7288d28efcd33d7596208080f04ff4f8518e0547b7151930b34f6740da7c39bb8aa7e9626cd395b6e3b63228d0f12a3ed98a0bfd7e97949ee256
6
+ metadata.gz: 83a873160325c72c1e0197df3b944bc864dda15246ed77343f48be087d20f0ee80aff6578690fa14c6cd328b1c67fd7b9ac984c5d81e7ad2bb981d1933024d6f
7
+ data.tar.gz: f22cf63935f0e052136f5140b76bd8da4ad0ed4c87b2f6b6ca59e6e8f1f41544be3966744aa9d0a4a33304747234d9ace816daccc0b8b0bb0901c747cf355c95
data/README.md CHANGED
@@ -1,12 +1,45 @@
1
- # darkBlog
1
+ # Jekyll Dark Theme for Blogs
2
2
 
3
- Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
3
+ Minimalistic dark theme for [Jekyll](https://jekyllrb.com/) blogs with 5 different color schemes.
4
+ | | |
5
+ | ----------------------- | ----------------------- |
6
+ | ![GitHub](/etc/ss1.png) | ![GitHub](/etc/ss2.png) |
4
7
 
5
- To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
8
+ ## Installation
6
9
 
7
- TODO: Delete this and the text above, and describe your gem
10
+ if you are using github pages, the recommended method is following:
8
11
 
9
- ## Installation
12
+ - Add following lines to your `Gemfile`:
13
+
14
+ ```ruby
15
+ source "https://rubygems.org"
16
+
17
+ gem "github-pages", "~> 231", group: :jekyll_plugins
18
+ gem "jekyll-include-cache", group: :jekyll_plugins
19
+ ```
20
+
21
+ - Add jekyll-include-cache to the plugins array of your `_config.yml`
22
+
23
+ ```yaml
24
+ plugins:
25
+ - jekyll-include-cache
26
+ ```
27
+
28
+ - And then execute this command in shell:
29
+
30
+ ```bash
31
+ $ bundle
32
+ ```
33
+
34
+ - Add this your `_config.yml` file.
35
+
36
+ ```yml
37
+ remote_theme: "gulnoor/jekyll-blog-theme"
38
+ ```
39
+
40
+ - Remove any other theme: or remote_theme: entry.
41
+
42
+ ## Alternate Method
10
43
 
11
44
  Add this line to your Jekyll site's `Gemfile`:
12
45
 
@@ -32,18 +65,15 @@ Or install it yourself as:
32
65
 
33
66
  TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
34
67
 
35
- ## Contributing
36
-
37
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/darkBlog. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](https://www.contributor-covenant.org/) code of conduct.
68
+ ### TODO
38
69
 
39
- ## Development
70
+ - [ ] Grid layout for posts on home page
71
+ - [ ] Add support for comments
72
+ - [ ] Search functionality
40
73
 
41
- To set up your environment to develop this theme, run `bundle install`.
42
-
43
- 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.
74
+ ## Contributing
44
75
 
45
- When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
46
- To add a custom directory to your theme-gem, please edit the regexp in `darkBlog.gemspec` accordingly.
76
+ Bug reports and pull requests are welcome on GitHub at https://github.com/gulnoor/darkBlog
47
77
 
48
78
  ## License
49
79
 
@@ -1,10 +1,7 @@
1
1
  <footer class="site-footer h-card">
2
2
  <data class="u-url" href="{{ "/" | relative_url }}"></data>
3
-
4
3
  <div class="wrapper">
5
-
6
4
  <h2 class="footer-heading">{{ site.title | escape }}</h2>
7
-
8
5
  <div class="footer-col-wrapper">
9
6
  <div class="footer-col footer-col-1">
10
7
  <ul class="contact-list">
@@ -18,21 +15,15 @@
18
15
  {%- if site.email -%}
19
16
  <li><a class="u-email" href="mailto:{{ site.email }}">{{ site.email }}</a></li>
20
17
  {%- endif -%}
21
-
22
18
  </ul>
23
-
24
19
  <!-- <p id="diplayselectedtheme"></p> -->
25
20
  </div>
26
-
27
21
  <div class="footer-col footer-col-2">
28
22
  {%- include social.html -%}
29
23
  </div>
30
-
31
24
  <div class="footer-col footer-col-3">
32
25
  <p>{{- site.description | escape -}}</p>
33
26
  </div>
34
27
  </div>
35
-
36
28
  </div>
37
-
38
29
  </footer>
@@ -1,7 +1,10 @@
1
1
  <header class="site-header" role="banner">
2
+ {%- include theme_picker.html -%}
3
+
2
4
  <div class="wrapper header-container">
3
5
  {%- assign default_paths = site.pages | map: 'path' -%}
4
6
  {%- assign page_paths = site.header_pages | default: default_paths -%}
7
+
5
8
  <a class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
6
9
  <img class="logo" src="{{- "assets/theme-assets/theme-images/logo.svg" | relative_url -}}">
7
10
  {%- if page_paths -%}
data/_layouts/home.html CHANGED
@@ -9,7 +9,6 @@ layout: default
9
9
  {{ content }}
10
10
 
11
11
  {%- if site.posts.size > 0 -%}
12
- {%- include theme_picker.html -%}
13
12
  <h2 class="post-list-heading">{{ page.list_title | default: 'Featured Posts' }}</h2>
14
13
  <ul class="post-list">
15
14
  {%- for post in site.posts -%}
@@ -173,7 +173,6 @@ figure {
173
173
  --md-sys-color-surface-container-high: rgb(37 43 42);
174
174
  --md-sys-color-surface-container-highest: rgb(47 54 53);
175
175
  }
176
-
177
176
  .dark-green {
178
177
  --md-sys-color-primary: rgb(177 209 138);
179
178
  --md-sys-color-surface-tint: rgb(177 209 138);
@@ -225,7 +224,6 @@ figure {
225
224
  --md-sys-color-surface-container-high: rgb(40 43 36);
226
225
  --md-sys-color-surface-container-highest: rgb(51 54 46);
227
226
  }
228
-
229
227
  .dark-pink {
230
228
  --md-sys-color-primary: rgb(240 179 231);
231
229
  --md-sys-color-surface-tint: rgb(240 179 231);
@@ -277,14 +275,16 @@ figure {
277
275
  --md-sys-color-surface-container-high: rgb(47 40 45);
278
276
  --md-sys-color-surface-container-highest: rgb(58 51 56);
279
277
  }
278
+
280
279
  .logo {
281
- height: 150px;
282
- // padding-right: 10%;
280
+ height: 120px;
281
+ @include media-query($on-palm){
282
+ height: 90px;
283
+ }
283
284
  }
284
285
  .header-container {
285
286
  display: flex;
286
287
  justify-content: center;
287
- align-items: center;
288
288
  flex-direction: column;
289
289
  }
290
290
  @font-face {
@@ -6,7 +6,6 @@
6
6
  border-top: 5px solid var(--md-sys-color-outline-dark);
7
7
  // border-bottom: 1px solid var(--md-sys-color-outline);
8
8
  min-height: $spacing-unit * 1.865;
9
-
10
9
  // Positioning context for the mobile navigation icon
11
10
  position: relative;
12
11
  }
@@ -32,7 +31,6 @@
32
31
 
33
32
  @include media-query($on-palm) {
34
33
  font-size: 38px;
35
- padding-right: 43px;
36
34
  }
37
35
 
38
36
  &,
@@ -43,6 +41,8 @@
43
41
  .select-theme {
44
42
  width: 26px;
45
43
  height: 26px;
44
+ cursor: pointer;
45
+ margin-left: 0.72vw;
46
46
  border-radius: 999px;
47
47
  }
48
48
  .theme-input {
@@ -53,7 +53,10 @@
53
53
  }
54
54
  .theme-picker {
55
55
  display: flex;
56
- justify-content: center;
56
+ // width: 100%;
57
+ padding-top: 22px;
58
+ padding-right: 15px;
59
+ justify-content: flex-end;
57
60
  }
58
61
  #pink-theme {
59
62
  background-color: #f0b3e7;
@@ -95,7 +98,7 @@
95
98
  @include media-query($on-palm) {
96
99
  position: absolute;
97
100
  top: 15px;
98
- right: $spacing-unit / 2;
101
+ // right: $spacing-unit / 2;
99
102
  background-color: var(--md-sys-color-surface-container);
100
103
  border-radius: 8px;
101
104
  text-align: right;
@@ -105,7 +108,6 @@
105
108
 
106
109
  label[for="nav-trigger"] {
107
110
  display: block;
108
- float: right;
109
111
  width: 36px;
110
112
  height: 36px;
111
113
  z-index: 2;
@@ -230,7 +232,6 @@
230
232
 
231
233
  .post-list-heading {
232
234
  @include relative-font-size(1.75);
233
- margin-top: 15px;
234
235
  }
235
236
 
236
237
  .post-list {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dark-blog-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gul Noor
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-26 00:00:00.000000000 Z
11
+ date: 2024-07-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: