jekyll-theme-doodle 4.5.0 → 5.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 904b21bc9b6033bed52eb7549f06e2c9903bc4f946e8db1927984fe8b279501c
4
- data.tar.gz: 48dbb16a8b04626f4b78ce018f7586539f77143eca6ab9848f8c7ed9816298d1
3
+ metadata.gz: 27b09237629b1b40332548fc3d357cbf9fedd050fd4f0e6d80a28adeb9dfab24
4
+ data.tar.gz: 873ef4144e6f89cc1d2f3704b1a5b8170c66fe7298a8585d8f1b684c94902d2e
5
5
  SHA512:
6
- metadata.gz: 953dcd52bc902f90fd6b3769686a0d4ee6af1e2378d4518d44731435c4ab0f61452087bfe5b89c9808bc952e7333c14ac7cf58f9d48f7aea5bb95ca22c5fd824
7
- data.tar.gz: 5c68706399d708755e31a171a7d48c07e72151ec7295ef9ee81565b1441b15546b23d7a13581344e4928c3bbbbeb3d925f17294df57cbc26139ba2de297219cc
6
+ metadata.gz: 5b7d98a564d066204c50596b6bd4b11ff6deeaf4e2d946af09db8a29e0d5d97bfd43b47e73556051ea41ba8645a78e7b88c795616bf227cfe061dbdd329b3d2f
7
+ data.tar.gz: 2558906289d9789bfdee5da1eb9a8998bef779c0b84ca169179a38fab497e887958482ebc92509f5e02cc04d871b98032146c831275329faad73d88f958082c2
data/README.md CHANGED
@@ -1,6 +1,26 @@
1
- # Jekyll Theme Doodle: for a playful and creative aesthetic
2
-
3
- Dark theme for [Jekyll](https://jekyllrb.com/) blogs with handwriting fonts and 5 color schemes.
1
+ # Doodle: A [Jekyll](https://jekyllrb.com/) theme for playful and creative aesthetic
2
+
3
+ ## Table of Contents
4
+
5
+ - [Features](#features)
6
+ - [Installation](#installation)
7
+ - [remote-themes](#remote-themes)
8
+ - [Alternate Method](#alternate-method)
9
+ - [Usage](#usage)
10
+ - [Pin a post](#pin-a-post)
11
+ - [Add tagline in header](#add-tagline-in-header)
12
+ - [Google analytics](#google-analytics)
13
+ - [Adding icons to naviagtion links](#adding-icons-to-naviagtion-links)
14
+ - [Contributing](#contributing)
15
+ - [License](#license)
16
+
17
+ ## Features
18
+
19
+ - dark mode
20
+ - 5 color schemes
21
+ - pinned posts
22
+ - handwriting fonts
23
+ - google analytics support
4
24
 
5
25
  You can preview the theme [here](https://gulnoor.github.io)
6
26
  | | |
@@ -9,6 +29,8 @@ You can preview the theme [here](https://gulnoor.github.io)
9
29
 
10
30
  ## Installation
11
31
 
32
+ ### remote-themes
33
+
12
34
  if you are using github pages, the recommended method is following:
13
35
 
14
36
  - Add following lines to your `Gemfile`:
@@ -41,7 +63,7 @@ remote_theme: "gulnoor/jekyll-theme-doodle"
41
63
 
42
64
  - Remove any other theme: or remote_theme: entry.
43
65
 
44
- ## Alternate Method
66
+ ### Alternate Method
45
67
 
46
68
  Add this line to your Jekyll site's `Gemfile`:
47
69
 
@@ -92,9 +114,27 @@ tagline: "Your awesome tagline"
92
114
 
93
115
  TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
94
116
 
95
- ### TODO
117
+ ### Google analytics
118
+
119
+ add your google analytics tracking id to \_config.yml
120
+
121
+ ```yaml
122
+ google_analytics: UA-NNNNNNNN-N
123
+ ```
124
+ ### Adding icons to naviagtion links
125
+ add the icon path to the page front matter e.g
126
+
127
+ ```yaml
128
+ ---
129
+ layout: page
130
+ title: "About"
131
+ permalink: /about/
132
+ icon: "/assets/icons/about.svg"
133
+ ---
134
+ ```
135
+
136
+ ## TODO
96
137
 
97
- - [ ] Analytics support
98
138
  - [ ] Add support for comments
99
139
  - [ ] Search functionality
100
140
 
data/_includes/head.html CHANGED
@@ -1,51 +1,51 @@
1
1
  <head>
2
- <meta charset="utf-8">
3
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
- <meta name="viewport" content="width=device-width, initial-scale=1">
2
+ <meta charset="utf-8" />
3
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
4
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
5
5
  <link
6
6
  rel="preload"
7
7
  href="/assets/theme-assets/theme-fonts/Excalifont-Regular.woff2"
8
8
  as="font"
9
9
  type="font/ttf"
10
10
  crossorigin
11
- >
11
+ />
12
12
  <link
13
13
  rel="preload"
14
14
  href="/assets/theme-assets/theme-fonts/comic shanns.otf"
15
15
  as="font"
16
16
  type="font/otf"
17
17
  crossorigin
18
- >
19
- {%- seo -%}
20
- <link
21
- rel="stylesheet"
22
- href="
23
- {{ "/assets/main.css" | relative_url
24
- }}
25
- "
26
- >
18
+ />
19
+ {%- seo -%} <link rel="stylesheet" href=" {{ "/assets/main.css" | relative_url
20
+ }} " >
27
21
  <script>
28
22
  const colors = {
29
- 'dark-pink': '#f0b3e7',
30
- 'dark-green': '#b1d18a',
31
- 'dark-yellow': '#dbc66e',
32
- 'dark-blue': '#aac7ff',
33
- 'dark-cyan': '#81d5cd',
23
+ "dark-pink": "#f0b3e7",
24
+ "dark-green": "#b1d18a",
25
+ "dark-yellow": "#dbc66e",
26
+ "dark-blue": "#aac7ff",
27
+ "dark-cyan": "#81d5cd",
28
+ "light-pink": "#f0b3e7",
29
+ "light-green": "#b1d18a",
30
+ "light-yellow": "#dbc66e",
31
+ "light-blue": "#aac7ff",
32
+ "light-cyan": "#81d5cd",
34
33
  };
35
- const root = document.querySelector('html');
36
- const theme = window.localStorage.getItem('theme');
34
+ const root = document.querySelector("html");
35
+ const theme = window.localStorage.getItem("theme");
36
+
37
37
  if (theme === null) {
38
- window.localStorage.setItem('theme', 'dark-pink');
39
- root.className = 'dark-pink';
40
- root.style.setProperty('--current-color', colors['dark-pink']);
38
+ theme = "dark-pink";
39
+ window.localStorage.setItem("theme", theme);
40
+ root.className = theme;
41
+ root.style.setProperty("--current-color", colors[theme]);
41
42
  } else {
42
43
  root.className = theme;
43
- root.style.setProperty('--current-color', colors[theme]);
44
+ root.style.setProperty("--current-color", colors[theme]);
44
45
  }
46
+
45
47
  </script>
46
48
  <script src="/assets/theme-assets/js/theme.js" defer></script>
47
- {%- feed_meta -%}
48
- {%- if jekyll.environment == 'production' and site.google_analytics -%}
49
- {%- include google-analytics.html -%}
50
- {%- endif -%}
49
+ {%- feed_meta -%} {%- if jekyll.environment == 'production' and
50
+ site.google_analytics -%} {%- include google-analytics.html -%} {%- endif -%}
51
51
  </head>
@@ -1,23 +1,16 @@
1
1
  {%- if page_paths -%}
2
- <nav class="navrail">
3
- <a class="navrail-button" href="/">
4
- <img
5
- class="navrail-icon"
6
- src="{{- "/assets/theme-assets/theme-icons/home2.svg" | relative_url -}}"
7
- >
8
- Home</a
9
- >
10
- {%- for path in page_paths -%}
11
- {%- assign my_page = site.pages | where: 'path', path | first -%}
12
- {%- if my_page.title -%}
13
- <a class="navrail-button" href="{{ my_page.url | relative_url }}">
14
- {%- if my_page.title -%}
15
- <img class="navrail-icon" src="{{- my_page.icon | relative_url -}}">
16
- {%- endif -%}
17
- {{ my_page.title | escape }}
18
- </a>
19
- {%- endif -%}
20
- {%- endfor -%}
21
-
22
- </nav>
2
+ <nav class="navrail">
3
+ <a class="navrail-button" href="/">
4
+ <img class="navrail-icon" src="{{-
5
+ "/assets/theme-assets/theme-icons/home2.svg" | relative_url -}}" > Home</a
6
+ >
7
+ {%- for path in page_paths -%} {%- assign my_page = site.pages | where:
8
+ 'path', path | first -%} {%- if my_page.title -%}
9
+ <a class="navrail-button" href="{{ my_page.url | relative_url }}">
10
+ {%- if my_page.title -%}
11
+ <img class="navrail-icon" src="{{- my_page.icon | relative_url -}}" />
12
+ {%- endif -%} {{ my_page.title | escape }}
13
+ </a>
14
+ {%- endif -%} {%- endfor -%}
15
+ </nav>
23
16
  {%- endif -%}
@@ -1,35 +1,43 @@
1
- <div class="theme-selector" id="themeSelector">
2
- <div class="theme-options" id="themeOptions">
3
- <div
4
- id="pink-theme"
5
- class="theme-option pink-theme"
6
- data-theme-class="dark-pink"
7
- data-color="#f0b3e7"
8
- ></div>
9
- <div
10
- id="green-theme"
11
- class="theme-option"
12
- data-theme-class="dark-green"
13
- data-color="#b1d18a"
14
- ></div>
15
- <div
16
- id="yellow-theme"
17
- class="theme-option"
18
- data-theme-class="dark-yellow"
19
- data-color="#dbc66e"
20
- ></div>
21
- <div
22
- data-theme-class="dark-blue"
23
- id="blue-theme"
24
- class="theme-option"
25
- data-color="#aac7ff"
26
- ></div>
27
- <div
28
- data-theme-class="dark-cyan"
29
- id="cyan-theme"
30
- class="theme-option"
31
- data-color="#81d5cd"
32
- ></div>
1
+ <div class="theme-wrapper">
2
+ <div class="theme-selector" id="themeSelector">
3
+ <div class="theme-options" id="themeOptions">
4
+ <div
5
+ id="pink-theme"
6
+ class="theme-option pink-theme"
7
+ data-theme-class="dark-pink"
8
+ data-color="#f0b3e7"
9
+ ></div>
10
+ <div
11
+ id="green-theme"
12
+ class="theme-option"
13
+ data-theme-class="dark-green"
14
+ data-color="#b1d18a"
15
+ ></div>
16
+ <div
17
+ id="yellow-theme"
18
+ class="theme-option"
19
+ data-theme-class="dark-yellow"
20
+ data-color="#dbc66e"
21
+ ></div>
22
+ <div
23
+ data-theme-class="dark-blue"
24
+ id="blue-theme"
25
+ class="theme-option"
26
+ data-color="#aac7ff"
27
+ ></div>
28
+ <div
29
+ data-theme-class="dark-cyan"
30
+ id="cyan-theme"
31
+ class="theme-option"
32
+ data-color="#81d5cd"
33
+ ></div>
34
+ </div>
35
+ <div class="current-theme" id="currentTheme"></div>
36
+ </div>
37
+ <div class="toggle-container">
38
+ <label class="toggle-switch">
39
+ <input type="checkbox" id="darkModeToggle" />
40
+ <span class="slider"></span>
41
+ </label>
33
42
  </div>
34
- <div class="current-theme" id="currentTheme"></div>
35
43
  </div>
data/_layouts/home.html CHANGED
@@ -7,8 +7,16 @@ layout: default
7
7
  {%- endif -%}
8
8
 
9
9
  {{ content }}
10
+ {% assign has_pinned_post = false %}
10
11
 
11
- {%- if site.posts.size > 0 -%}
12
+ {% for post in site.posts %}
13
+ {% if post.status == 'pinned' %}
14
+ {% assign has_pinned_post = true %}
15
+ {% break %}
16
+ {% endif %}
17
+ {% endfor %}
18
+
19
+ {% if has_pinned_post %}
12
20
  <h1 class="post-title">{{ page.list_title | default: 'Pinned Posts' }}</h1>
13
21
  <ul class="pinned-post-list">
14
22
  {%- for post in site.posts -%}
@@ -32,7 +40,7 @@ layout: default
32
40
  <path
33
41
  fill="none"
34
42
  class="pin-path"
35
- d="M-0.92 0.05 C-0.85 -7.96, -1.61 -37.45, 0.46 -48.12 C2.52 -58.8, 8.31 -63.66, 11.46 -64.01 C14.61 -64.36, 17.92 -61.96, 19.34 -50.21 C20.76 -38.46, 20.48 -4.19, 20 6.49 C19.52 17.16, 20.01 12.99, 16.44 13.85 C12.87 14.71, 2.49 13.98, -1.43 11.64 C-5.36 9.29, -6.38 13.15, -7.1 -0.21 C-7.81 -13.57, -8.39 -54.05, -5.72 -68.55 C-3.06 -83.05, 3.85 -87.21, 8.89 -87.23 C13.93 -87.26, 21.52 -74.71, 24.52 -68.68 C27.52 -62.66, 26.27 -53.89, 26.87 -51.11 M0.8 -0.97 C0.75 -9.29, -1.95 -39.43, -0.23 -49.77 C1.5 -60.1, 7.79 -63.14, 11.17 -62.99 C14.54 -62.84, 18.74 -60.01, 20.02 -48.88 C21.29 -37.74, 19.22 -6.54, 18.81 3.8 C18.39 14.14, 21.3 11.55, 17.53 13.15 C13.75 14.76, -0.1 15.77, -3.84 13.45 C-7.59 11.12, -4.38 13.08, -4.95 -0.79 C-5.52 -14.66, -9.58 -55.22, -7.24 -69.77 C-4.91 -84.32, 3.68 -88.43, 9.08 -88.08 C14.47 -87.73, 22.38 -73.79, 25.11 -67.69 C27.84 -61.59, 25.42 -54.5, 25.45 -51.48"
43
+ d="M-0.92 0.05 C-0.85 -7.96, -1.61 -37.45, 0.46 -48.12 C2.52 -58.8, 8.31 -63.66, 11.46 -64.01 C14.61 -64.36, 17.92 -61.96, 19.34 -50.21 C20.76 -38.46, 20.48 -4.19, 20 6.49 C19.52 17.16, 20.01 12.99, 16.44 13.85 C12.87 14.71, 2.49 13.98, -1.43 11.64 C-5.36 9.29, -6.38 13.15, -7.1 -0.21 C-7.81 -13.57, -8.39 -54.05, -5.72 -68.55 C-3.06 -83.05,style -87.21, 8.89 -87.23 C13.93 -87.26, 21.52 -74.71, 24.52 -68.68 C27.52 -62.66, 26.27 -53.89, 26.87 -51.11 M0.8 -0.97 C0.75 -9.29, -1.95 -39.43, -0.23 -49.77 C1.5 -60.1, 7.79 -63.14, 11.17 -62.99 C14.54 -62.84, 18.74 -60.01, 20.02 -48.88 C21.29 -37.74, 19.22 -6.54, 18.81 3.8 C18.39 14.14, 21.3 11.55, 17.53 13.15 C13.75 14.76, -0.1 15.77, -3.84 13.45 C-7.59 11.12, -4.38 13.08, -4.95 -0.79 C-5.52 -14.66, -9.58 -55.22, -7.24 -69.77 C-4.91 -84.32, 3.68 -88.43, 9.08 -88.08 C14.47 -87.73, 22.38 -73.79, 25.11 -67.69 C27.84 -61.59, 25.42 -54.5, 25.45 -51.48"
36
44
  ></path>
37
45
  </g>
38
46
  </g>
@@ -56,7 +64,7 @@ layout: default
56
64
  {%- endif -%}
57
65
  <div class="all-post-wrapper">
58
66
  {%- if site.posts.size > 0 -%}
59
- <h1 class="post-title">{{ page.list_title | default: 'All Posts' }}</h1>
67
+ <h1 class="post-title">{{ page.list_title | default: 'Recent Posts' }}</h1>
60
68
  <ul class="post-list">
61
69
  {%- for post in site.posts -%}
62
70
  <li class="post-card custom-border">
@@ -29,7 +29,7 @@ body {
29
29
  font: $base-font-weight #{$base-font-size}/#{$base-line-height}
30
30
  $base-font-family;
31
31
  color: $text-color;
32
- background-color: $background-color;
32
+ background-color: var(--md-sys-color-surface-container);
33
33
  -webkit-text-size-adjust: 100%;
34
34
  -webkit-font-feature-settings: "kern" 1;
35
35
  -moz-font-feature-settings: "kern" 1;
@@ -150,7 +150,6 @@ blockquote {
150
150
  margin-right: 12px;
151
151
  @include relative-font-size(1.125);
152
152
  letter-spacing: -1px;
153
- font-style: italic;
154
153
 
155
154
  > :last-child {
156
155
  margin-bottom: 0;
@@ -187,8 +186,8 @@ pre {
187
186
  * Wrapper
188
187
  */
189
188
  .wrapper {
190
- max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit} * 2));
191
- max-width: calc(#{$content-width} - (#{$spacing-unit} * 2));
189
+ max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit} * 2) + 48px);
190
+ max-width: calc(#{$content-width} - (#{$spacing-unit} * 2) + 48px);
192
191
  margin-right: auto;
193
192
  margin-left: auto;
194
193
  padding-right: $spacing-unit;
@@ -241,13 +240,14 @@ pre {
241
240
  table {
242
241
  display: block;
243
242
  overflow-x: auto;
244
- width: 100%;
243
+ width: fit-content;
244
+ max-width: 100%;
245
245
  margin-bottom: $spacing-unit;
246
- width: 100%;
247
246
  text-align: $table-text-align;
248
247
  color: var(--md-sys-color-on-surface);
249
248
  border-collapse: collapse;
250
249
  border: 1px solid var(--md-sys-color-outline);
250
+ border-radius: 8px;
251
251
  tr {
252
252
  &:nth-child(even) {
253
253
  background-color: var(--md-sys-color-surface-container-high);
@@ -258,12 +258,13 @@ table {
258
258
  padding: ($spacing-unit / 3) ($spacing-unit / 2);
259
259
  }
260
260
  th {
261
- background-color: var(--md-sys-color-surface-container-highest);
261
+ background-color: var(--md-sys-color-secondary-container);
262
+ color: var(--md-sys-color-on-secondary-container);
262
263
  // border: 1px solid darken($grey-color-light, 4%);
263
264
  // border-bottom-color: darken($grey-color-light, 12%);
264
265
  }
265
266
  td {
266
- border: 1px solid var(--md-sys-color-outline);
267
+ border-top: 1px solid var(--md-sys-color-outline);
267
268
  }
268
269
  }
269
270
 
@@ -75,5 +75,5 @@
75
75
  }
76
76
  .divider-path {
77
77
  stroke: var(--md-sys-color-outline);
78
- stroke-width: 2;
78
+ stroke-width: 1.5;
79
79
  }
@@ -2,6 +2,7 @@
2
2
  display: flex;
3
3
  justify-content: center;
4
4
  flex-direction: column;
5
+ padding-top: 24px;
5
6
  }
6
7
  .site-header {
7
8
  min-height: $spacing-unit * 1.865;
@@ -125,4 +125,8 @@
125
125
  }
126
126
  .navrail-icon {
127
127
  max-width: 40px;
128
+ filter: var(--on-surface-filter);
129
+ }
130
+ .menu-icon {
131
+ filter: var(--on-surface-filter);
128
132
  }
@@ -60,7 +60,7 @@
60
60
  justify-content: space-around;
61
61
  padding-top: 12px;
62
62
  list-style: none;
63
- background-color: var(--md-sys-color-surface-container);
63
+ background-color: var(--md-sys-color-surface-container-highest);
64
64
  border-radius: 24px;
65
65
  padding: $spacing-unit;
66
66
  min-height: 390px;
@@ -21,7 +21,7 @@
21
21
  }
22
22
  .post-excerpt {
23
23
  font-size: $small-font-size;
24
- color: $grey-color;
24
+ color: var(--md-sys-color-on-surface);
25
25
  }
26
26
  .post-link {
27
27
  display: block;
@@ -37,9 +37,17 @@
37
37
  @include relative-font-size(2.25);
38
38
  }
39
39
  }
40
-
40
+ .post {
41
+ background: var(--md-sys-color-surface);
42
+ border-radius: 24px;
43
+ padding: 24px;
44
+ @include media-query($on-palm){
45
+ padding: 8px;
46
+ }
47
+ }
41
48
  .post-content {
42
49
  margin-bottom: $spacing-unit;
50
+
43
51
  // text-align: justify;
44
52
  p {
45
53
  text-align: justify;
@@ -1,29 +1,35 @@
1
1
  .theme-selector {
2
- position: relative;
3
2
  display: flex;
3
+ }
4
+ .theme-wrapper {
5
+ display: flex;
6
+ position: absolute;
7
+ right: 0;
4
8
  justify-content: flex-end;
9
+ align-items: flex-start;
5
10
  margin-left: auto;
6
11
  padding: 6px;
7
12
  margin-top: 8px;
8
13
  margin-right: 8px;
9
- border-radius: 99px;
10
- background-color: rgba(70, 70, 70, 0.233);
14
+ border-radius: 16px;
15
+ background-color: rgba(159, 159, 159, 0.122);
11
16
  backdrop-filter: blur(8px);
12
17
  width: fit-content;
13
18
  @media screen and (min-width: 601px) {
14
19
  position: fixed;
15
20
  z-index: 103;
16
21
  bottom: 10px;
17
- left: 30px;
22
+ right: auto;
23
+ left: 9px;
18
24
  }
19
25
  }
20
26
 
21
27
  .current-theme {
22
- height: 26px;
23
- width: 26px;
28
+ height: 24px;
29
+ width: 24px;
24
30
  border-radius: 50%;
25
31
  background-color: var(--current-color); /* Initial theme color */
26
- margin-left: 12px;
32
+ margin-right: 10px;
27
33
  cursor: pointer;
28
34
  transition: transform 0.3s;
29
35
  }
@@ -31,7 +37,7 @@
31
37
  display: flex;
32
38
  gap: 10px;
33
39
  max-width: 0px;
34
- transition: all 0.3s;
40
+ transition: all 0.4s;
35
41
  }
36
42
  .theme-option {
37
43
  width: 26px;
@@ -39,3 +45,47 @@
39
45
  border-radius: 50%;
40
46
  cursor: pointer;
41
47
  }
48
+ .toggle-container {
49
+ display: flex;
50
+ align-items: center;
51
+ }
52
+
53
+ .toggle-switch {
54
+ position: relative;
55
+ display: inline-block;
56
+ width: 44px;
57
+ height: 24px;
58
+ }
59
+ .toggle-switch input {
60
+ opacity: 0;
61
+ width: 0;
62
+ height: 0;
63
+ }
64
+ .slider {
65
+ position: absolute;
66
+ cursor: pointer;
67
+ top: 0;
68
+ left: 0;
69
+ right: 0;
70
+ bottom: 0;
71
+ background-color: #ccc;
72
+ transition: 0.4s;
73
+ border-radius: 34px;
74
+ background-color: var(--md-sys-color-primary);
75
+ }
76
+ .slider:before {
77
+ position: absolute;
78
+ content: url("/assets/theme-assets/theme-icons/sun.svg");
79
+ height: 20px;
80
+ width: 20px;
81
+ left: 2px;
82
+ bottom: 2px;
83
+ background-color: var(--md-sys-color-surface-container-highest);
84
+ transition: 0.4s;
85
+ border-radius: 50%;
86
+ }
87
+ input:checked + .slider:before {
88
+ transform: translateX(20px);
89
+ content: url("/assets/theme-assets/theme-icons/moon.svg");
90
+
91
+ }