dark-blog-theme 0.1.9 → 1.0.1

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: 5b1c54887b9172bfc17e0df6d225613e3616ad0f9fb6a8be3dbdd96611fcbdd2
4
- data.tar.gz: 466f99a17ff232a07302aa66f93fd309b5713cbe4c3e64602d50773a71a69d2b
3
+ metadata.gz: 4ba29f4b80d3673e842ccc171dbc0a99571528b5ad99174ae89f82f64b6e6a55
4
+ data.tar.gz: f2fa934f1e75a07955f942d4531ba36402990712bd4c2883deb9e684cb9cbed5
5
5
  SHA512:
6
- metadata.gz: fdbf25b429c15b8ec45a45d2fd987a1321e61e811bcc9d9165113b1a79edf9966bfeb78809beae5c69bf5523bf22f3a0392f5fef345cc4a704736ddb1f145c0c
7
- data.tar.gz: 36fe7745d05e34e2a12891ed2ae859ecd2e55c894c3127512c4ee5fef9245a5e70ca9eaa3483a695683e2d46df1d7d82a03102d2d1eaf6a9665834c7c2f2ea0a
6
+ metadata.gz: 797680cdfc5054fe23a37403105476c1c1c145a5ccae0c23d71285ccabbac7851e95056b9a3f8ad93f87b0bfa15ee45c9dc4d4e85d9853645781d7b3fa4b4d26
7
+ data.tar.gz: ef6010b0cf13ac8002c3ebe118cb4a1cbe12a575f63d2c30582026994a0b5e7f15d60329f8a8f9d8f8a32cebba59118da72274d511ad9f2d01ca3f854eed17f5
data/_config.yml CHANGED
@@ -18,7 +18,7 @@
18
18
  # You can create any custom variable you would like, and they will be accessible
19
19
  # in the templates via {{ site.myvariable }}.
20
20
  show_excerpts: true
21
- title: Your awesome title
21
+ title: Awesome Title
22
22
  email: your-email@example.com
23
23
  description: >- # this means to ignore newlines until "baseurl:"
24
24
  Write an awesome description for your new site here. You can edit this
data/_data/images.json ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "logo":"/assets/images/logo"
3
+ }
@@ -1,26 +1,23 @@
1
1
  <header class="site-header" role="banner">
2
-
3
- <div class="wrapper">
4
- {%- assign default_paths = site.pages | map: "path" -%}
2
+ <div class="wrapper header-container">
3
+ {%- assign default_paths = site.pages | map: 'path' -%}
5
4
  {%- assign page_paths = site.header_pages | default: default_paths -%}
5
+ <img class="logo" src="{{- "theme-assets/theme-images/logo.svg" | relative_url -}}">
6
6
  <a class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
7
-
8
7
  {%- if page_paths -%}
9
8
  <nav class="site-nav">
10
- <input type="checkbox" id="nav-trigger" class="nav-trigger" />
9
+ <input type="checkbox" id="nav-trigger" class="nav-trigger">
11
10
  <label for="nav-trigger">
12
11
  <span class="menu-icon">
13
- <svg viewBox="0 0 18 15" width="18px" height="15px">
14
- <path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"/>
15
- </svg>
12
+ <img src="{{- "theme-assets/theme-images/menu.svg" | relative_url -}}" alt="menu-icon">
16
13
  </span>
17
14
  </label>
18
15
 
19
16
  <div class="trigger">
20
17
  {%- for path in page_paths -%}
21
- {%- assign my_page = site.pages | where: "path", path | first -%}
18
+ {%- assign my_page = site.pages | where: 'path', path | first -%}
22
19
  {%- if my_page.title -%}
23
- <a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
20
+ <a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
24
21
  {%- endif -%}
25
22
  {%- endfor -%}
26
23
  </div>
data/_layouts/home.html CHANGED
@@ -13,14 +13,17 @@ layout: default
13
13
  <ul class="post-list">
14
14
  {%- for post in site.posts -%}
15
15
  <li class="post-card">
16
- {%- assign date_format = site.minima.date_format | default: '%b %-d, %Y' -%}
17
- <span class="post-meta">{{ post.date | date: date_format }}</span>
18
- <h3>
19
- <a class="post-link" href="{{ post.url | relative_url }}">
16
+ {%- if post.image -%}
17
+ <img class="post-image" src="{{- post.image | relative_url -}}">
18
+ {%- endif -%}
19
+ <a class="post-link" href="{{ post.url | relative_url }}">
20
+ {%- assign date_format = site.minima.date_format | default: '%b %-d, %Y' -%}
21
+ <span class="post-meta">{{ post.date | date: date_format }}</span>
22
+ <h3>
20
23
  {{ post.title | escape }}
21
- </a>
22
- </h3>
23
- {{ post.excerpt }}
24
+ </h3>
25
+ <span class="post-excerpt">{{ post.excerpt }}</span>
26
+ </a>
24
27
  </li>
25
28
  {%- endfor -%}
26
29
  </ul>
data/_layouts/post.html CHANGED
@@ -4,6 +4,9 @@ layout: default
4
4
  <article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
5
5
  <header class="post-header">
6
6
  <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
7
+ {%- if page.image -%}
8
+ <img src="{{- page.image | relative_url -}}" alt="" class="featured-image">
9
+ {%- endif -%}
7
10
  <p class="post-meta">
8
11
  <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
9
12
  {%- assign date_format = site.minima.date_format | default: '%b %-d, %Y' -%}
@@ -174,10 +174,19 @@ figure {
174
174
  --md-sys-color-surface-container-high: rgb(47 40 45);
175
175
  --md-sys-color-surface-container-highest: rgb(58 51 56);
176
176
  }
177
-
177
+ .logo {
178
+ height: 150px;
179
+ padding-right: 10%;
180
+ }
181
+ .header-container {
182
+ display: flex;
183
+ justify-content: center;
184
+ align-items: center;
185
+ flex-direction: column;
186
+ }
178
187
  @font-face {
179
188
  font-family: Virgil;
180
- src: url("/assets/fonts/Virgil.woff2");
189
+ src: url("/theme-assets/theme-fonts/Virgil.woff2");
181
190
  }
182
191
  /**
183
192
  * Basic styling
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Site header
3
3
  */
4
-
4
+
5
5
  .site-header {
6
6
  border-top: 5px solid var(--md-sys-color-outline-dark);
7
7
  // border-bottom: 1px solid var(--md-sys-color-outline);
@@ -10,21 +10,24 @@
10
10
  // Positioning context for the mobile navigation icon
11
11
  position: relative;
12
12
  }
13
- .post-card{
13
+ .post-card {
14
14
  // border: 1px solid var(--md-sys-color-outline);
15
+ display: flex;
16
+ flex-direction: column;
15
17
  border-radius: 14px;
16
- padding:12px;
17
- background-color: var(--md-sys-color-surface-container)
18
-
18
+ padding: 12px;
19
+ background-color: var(--md-sys-color-surface-container);
19
20
  }
20
21
  .site-title {
21
22
  @include relative-font-size(1.625);
22
23
  font-family: Virgil;
23
24
  font-weight: 300;
25
+ font-size: 40px;
26
+ text-align: center;
24
27
  line-height: $base-line-height * $base-font-size * 2.25;
25
28
  letter-spacing: -1px;
26
29
  margin-bottom: 0;
27
- float: left;
30
+ // float: left;
28
31
 
29
32
  &,
30
33
  &:visited {
@@ -37,7 +40,7 @@
37
40
  line-height: $base-line-height * $base-font-size * 2.25;
38
41
 
39
42
  .nav-trigger {
40
- display: none;
43
+ display: none;
41
44
  }
42
45
 
43
46
  .menu-icon {
@@ -58,10 +61,12 @@
58
61
  position: absolute;
59
62
  top: 9px;
60
63
  right: $spacing-unit / 2;
61
- background-color: $background-color;
62
- border: 1px solid var(--md-sys-color-outline);
63
- border-radius: 5px;
64
+ background-color: var(--md-sys-color-surface-container);
65
+ border-radius: 8px;
64
66
  text-align: right;
67
+ padding-bottom: 3px;
68
+ padding-left: 2px;
69
+ padding-right: 2px;
65
70
 
66
71
  label[for="nav-trigger"] {
67
72
  display: block;
@@ -108,8 +113,6 @@
108
113
  }
109
114
  }
110
115
 
111
-
112
-
113
116
  /**
114
117
  * Site footer
115
118
  */
@@ -144,29 +147,29 @@
144
147
 
145
148
  .footer-col-1 {
146
149
  width: -webkit-calc(35% - (#{$spacing-unit} / 2));
147
- width: calc(35% - (#{$spacing-unit} / 2));
150
+ width: calc(35% - (#{$spacing-unit} / 2));
148
151
  }
149
152
 
150
153
  .footer-col-2 {
151
154
  width: -webkit-calc(20% - (#{$spacing-unit} / 2));
152
- width: calc(20% - (#{$spacing-unit} / 2));
155
+ width: calc(20% - (#{$spacing-unit} / 2));
153
156
  }
154
157
 
155
158
  .footer-col-3 {
156
159
  width: -webkit-calc(45% - (#{$spacing-unit} / 2));
157
- width: calc(45% - (#{$spacing-unit} / 2));
160
+ width: calc(45% - (#{$spacing-unit} / 2));
158
161
  }
159
162
 
160
163
  @include media-query($on-laptop) {
161
164
  .footer-col-1,
162
165
  .footer-col-2 {
163
166
  width: -webkit-calc(50% - (#{$spacing-unit} / 2));
164
- width: calc(50% - (#{$spacing-unit} / 2));
167
+ width: calc(50% - (#{$spacing-unit} / 2));
165
168
  }
166
169
 
167
170
  .footer-col-3 {
168
171
  width: -webkit-calc(100% - (#{$spacing-unit} / 2));
169
- width: calc(100% - (#{$spacing-unit} / 2));
172
+ width: calc(100% - (#{$spacing-unit} / 2));
170
173
  }
171
174
  }
172
175
 
@@ -174,12 +177,10 @@
174
177
  .footer-col {
175
178
  float: none;
176
179
  width: -webkit-calc(100% - (#{$spacing-unit} / 2));
177
- width: calc(100% - (#{$spacing-unit} / 2));
180
+ width: calc(100% - (#{$spacing-unit} / 2));
178
181
  }
179
182
  }
180
183
 
181
-
182
-
183
184
  /**
184
185
  * Page content
185
186
  */
@@ -209,15 +210,25 @@
209
210
  font-size: $small-font-size;
210
211
  color: $grey-color;
211
212
  }
212
-
213
+ .post-image{
214
+ height: 200px;
215
+ width: 100%;
216
+ }
217
+ .featured-image{
218
+ height: 300px;
219
+ width: 100%;
220
+ object-fit: contain;
221
+ }
222
+ .post-excerpt {
223
+ font-size: $small-font-size;
224
+ color: $grey-color;
225
+ }
213
226
  .post-link {
214
227
  display: block;
215
228
  @include relative-font-size(1.5);
216
229
  // font-family: Virgil;
217
230
  }
218
231
 
219
-
220
-
221
232
  /**
222
233
  * Posts
223
234
  */
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: 0.1.9
4
+ version: 1.0.1
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-25 00:00:00.000000000 Z
11
+ date: 2024-07-26 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -20,6 +20,7 @@ files:
20
20
  - LICENSE.txt
21
21
  - README.md
22
22
  - _config.yml
23
+ - _data/images.json
23
24
  - _includes/disqus_comments.html
24
25
  - _includes/footer.html
25
26
  - _includes/google-analytics.html