dark-blog-theme 2.0.0 → 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: '083f22fc3deb226a8d02a30d132c401bddd1097f3f67c84317627488b4024a03'
4
- data.tar.gz: 229ee1b7269c2aa363ae3a8eab2dd2d99dbd3bf1e5ef54f309ee93fb3d614fba
3
+ metadata.gz: c0c7c1154bebe192e2966b603874b0399840044a8d3755110b6cc74f9b8198a6
4
+ data.tar.gz: c466a6a1512f11fbde6f220b258b48c2f74c2120d3d4024644d3c580179ce990
5
5
  SHA512:
6
- metadata.gz: dec744e534b7e1022a0624344dc1e8e0325ce6a1b22eb56f29bdfae4e1160f430e38229ebd6f2bd941774e0a13c5a47c30077c376414e21693a9f8259bdeb09b
7
- data.tar.gz: 17171da4ff48a9d831184870c16664f24403e7f773f6fccaf04ec5d31a61e5f880e5e0e0c6305e07929e606944ecaf759445fb11ca534b792060446586059063
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
  }
@@ -22,15 +21,16 @@
22
21
  @include relative-font-size(1.625);
23
22
  font-family: Virgil;
24
23
  font-weight: 300;
25
- font-size: 38px;
26
24
  text-align: center;
27
25
  letter-spacing: -1px;
28
26
  margin-bottom: 0;
29
27
  margin-top: 12px;
28
+ font-size: 56px;
29
+ padding-right: 0;
30
30
  // float: left;
31
31
 
32
- @media screen and (min-width: 500px) {
33
- font-size: 56px;
32
+ @include media-query($on-palm) {
33
+ font-size: 38px;
34
34
  }
35
35
 
36
36
  &,
@@ -41,16 +41,22 @@
41
41
  .select-theme {
42
42
  width: 26px;
43
43
  height: 26px;
44
+ cursor: pointer;
45
+ margin-left: 0.72vw;
44
46
  border-radius: 999px;
45
47
  }
46
48
  .theme-input {
49
+ visibility: hidden;
47
50
  // transform: translate(9999px,9999px);
48
51
  height: 0px;
49
52
  width: 0px;
50
53
  }
51
54
  .theme-picker {
52
55
  display: flex;
53
- justify-content: center;
56
+ // width: 100%;
57
+ padding-top: 22px;
58
+ padding-right: 15px;
59
+ justify-content: flex-end;
54
60
  }
55
61
  #pink-theme {
56
62
  background-color: #f0b3e7;
@@ -91,8 +97,8 @@
91
97
 
92
98
  @include media-query($on-palm) {
93
99
  position: absolute;
94
- top: 9px;
95
- right: $spacing-unit / 2;
100
+ top: 15px;
101
+ // right: $spacing-unit / 2;
96
102
  background-color: var(--md-sys-color-surface-container);
97
103
  border-radius: 8px;
98
104
  text-align: right;
@@ -102,7 +108,6 @@
102
108
 
103
109
  label[for="nav-trigger"] {
104
110
  display: block;
105
- float: right;
106
111
  width: 36px;
107
112
  height: 36px;
108
113
  z-index: 2;
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.0
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: