dark-blog-theme 0.1.9 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_config.yml +1 -1
- data/_data/images.json +3 -0
- data/_includes/header.html +7 -9
- data/_layouts/home.html +10 -7
- data/_layouts/post.html +1 -0
- data/_sass/minima/_base.scss +10 -1
- data/_sass/minima/_layout.scss +34 -23
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 310f0408074b80c8a8044808bb86f404660fc8d6ec0ce3e01d5d75204f9454b1
|
4
|
+
data.tar.gz: 984b9eecc48d3a8d2ea4c27e04e76340ef8000649996be7f1c95fc1f8162e71c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f89b1a5febecaa7cc989efb5fef9ce23b777ec7583ba69749f7f4b981bbbf910b8e318be11d4f6f437f0f204d69eb8e863e7c752be8261b67708ccea134d9d8c
|
7
|
+
data.tar.gz: 3d6aa2581eb36fd8cfc648cfb523c19f902225d0607a2295fef28fed96f95c537350e65e00103c565de9780ee9e6e1fe530e5a3441a0df4f842ed47eaa7d94fe
|
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:
|
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
data/_includes/header.html
CHANGED
@@ -1,26 +1,24 @@
|
|
1
1
|
<header class="site-header" role="banner">
|
2
|
-
|
3
|
-
|
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="/assets/images/logo.svg">
|
6
6
|
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
|
7
7
|
|
8
8
|
{%- if page_paths -%}
|
9
9
|
<nav class="site-nav">
|
10
|
-
<input type="checkbox" id="nav-trigger" class="nav-trigger"
|
10
|
+
<input type="checkbox" id="nav-trigger" class="nav-trigger">
|
11
11
|
<label for="nav-trigger">
|
12
12
|
<span class="menu-icon">
|
13
|
-
<
|
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>
|
13
|
+
<img src="{{- "assets/images/menu.svg" | relative_url -}}" alt="menu-icon">
|
16
14
|
</span>
|
17
15
|
</label>
|
18
16
|
|
19
17
|
<div class="trigger">
|
20
18
|
{%- for path in page_paths -%}
|
21
|
-
{%- assign my_page = site.pages | where:
|
19
|
+
{%- assign my_page = site.pages | where: 'path', path | first -%}
|
22
20
|
{%- if my_page.title -%}
|
23
|
-
|
21
|
+
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
|
24
22
|
{%- endif -%}
|
25
23
|
{%- endfor -%}
|
26
24
|
</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
|
-
{%-
|
17
|
-
|
18
|
-
|
19
|
-
|
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
|
-
</
|
22
|
-
|
23
|
-
|
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,7 @@ 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
|
+
<img src="{{- page.image | relative_url -}}" alt="" class="featured-image">
|
7
8
|
<p class="post-meta">
|
8
9
|
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
|
9
10
|
{%- assign date_format = site.minima.date_format | default: '%b %-d, %Y' -%}
|
data/_sass/minima/_base.scss
CHANGED
@@ -174,7 +174,16 @@ 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
189
|
src: url("/assets/fonts/Virgil.woff2");
|
data/_sass/minima/_layout.scss
CHANGED
@@ -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
|
-
|
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:
|
62
|
-
border:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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.
|
4
|
+
version: 1.0.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-
|
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
|