ultimate-jekyll-manager 0.0.36 → 0.0.38
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.
- package/README.md +20 -0
- package/dist/cli.js +3 -0
- package/dist/commands/audit.js +15 -0
- package/dist/commands/translation.js +15 -0
- package/dist/defaults/dist/_includes/main/global/body.html +33 -0
- package/dist/defaults/dist/_includes/main/global/head.html +42 -77
- package/dist/defaults/dist/_layouts/main/global/default.html +4 -1
- package/dist/defaults/dist/_layouts/themes/bootstrap/frontend/default.html +14 -2
- package/dist/defaults/dist/_layouts/themes/geeks/frontend/default copy.html +47 -0
- package/dist/defaults/dist/_layouts/themes/geeks/frontend/default.html +5 -1
- package/dist/defaults/dist/feeds/posts.xml +11 -2
- package/dist/defaults/dist/sitemap.xml +6 -1
- package/dist/gulp/main.js +4 -2
- package/dist/gulp/tasks/audit.js +270 -0
- package/dist/gulp/tasks/jekyll.js +6 -3
- package/dist/gulp/tasks/translation.js +166 -58
- package/dist/gulp/tasks/utils/collectTextNodes.js +94 -0
- package/dist/gulp/tasks/utils/dictionary.js +50 -0
- package/dist/gulp/tasks/utils/formatDocument.js +45 -0
- package/package.json +11 -6
package/README.md
CHANGED
|
@@ -57,7 +57,27 @@ npm start -- --debug=true
|
|
|
57
57
|
```
|
|
58
58
|
* `--ujPluginDevMode=true` - Enables the development mode for the [Ultimate Jekyll Ruby plugin](https://github.com/itw-creative-works/jekyll-uj-powertools).
|
|
59
59
|
```bash
|
|
60
|
+
npm start -- --ujPluginDevMode=true
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Running Specific Tasks
|
|
64
|
+
You can run specific tasks using the `npm run gulp` command with the appropriate task name.
|
|
65
|
+
|
|
66
|
+
Some of these require environment variables to be set and other tasks to be run first.
|
|
60
67
|
|
|
68
|
+
Here are some examples:
|
|
69
|
+
|
|
70
|
+
### Run the `audit` task:
|
|
71
|
+
```bash
|
|
72
|
+
npx uj audit
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Run the `translation` task:
|
|
76
|
+
```bash
|
|
77
|
+
GH_TOKEN=XXX \
|
|
78
|
+
GITHUB_REPOSITORY=XXX \
|
|
79
|
+
npx uj translation
|
|
80
|
+
```
|
|
61
81
|
<!-- Developing -->
|
|
62
82
|
## 🛠 Developing
|
|
63
83
|
1. Clone the repo to your local machine.
|
package/dist/cli.js
CHANGED
|
@@ -10,6 +10,9 @@ const ALIASES = {
|
|
|
10
10
|
install: ['-i', 'i', '--install'],
|
|
11
11
|
setup: ['-s', '--setup'],
|
|
12
12
|
version: ['-v', '--version'],
|
|
13
|
+
// Tasks
|
|
14
|
+
audit: ['-a', '--audit'],
|
|
15
|
+
translation: ['-t', '--translation'],
|
|
13
16
|
};
|
|
14
17
|
|
|
15
18
|
// Function to resolve command name from aliases
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Libraries
|
|
2
|
+
const Manager = new (require('../build.js'));
|
|
3
|
+
const logger = Manager.logger('audit');
|
|
4
|
+
const { execute } = require('node-powertools');
|
|
5
|
+
|
|
6
|
+
// Load package
|
|
7
|
+
const package = Manager.getPackage('main');
|
|
8
|
+
const project = Manager.getPackage('project');
|
|
9
|
+
|
|
10
|
+
module.exports = async function (options) {
|
|
11
|
+
// Log
|
|
12
|
+
logger.log(`Starting audit...`);
|
|
13
|
+
|
|
14
|
+
await execute('UJ_FORCE_AUDIT=true bundle exec npm run gulp -- audit', { log: true })
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Libraries
|
|
2
|
+
const Manager = new (require('../build.js'));
|
|
3
|
+
const logger = Manager.logger('translation');
|
|
4
|
+
const { execute } = require('node-powertools');
|
|
5
|
+
|
|
6
|
+
// Load package
|
|
7
|
+
const package = Manager.getPackage('main');
|
|
8
|
+
const project = Manager.getPackage('project');
|
|
9
|
+
|
|
10
|
+
module.exports = async function (options) {
|
|
11
|
+
// Log
|
|
12
|
+
logger.log(`Starting translation...`);
|
|
13
|
+
|
|
14
|
+
await execute('UJ_FORCE_TRANSLATION=true bundle exec npm run gulp -- translation', { log: true })
|
|
15
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<!-- Alerts -->
|
|
2
|
+
<!-- Master - Outdated Alert Box -->
|
|
3
|
+
<div
|
|
4
|
+
class="main-alert main-alert-top main-alert-fixed main-alert-outdated bg-danger animation-fade-in"
|
|
5
|
+
role="alert" aria-live="polite" aria-label="Outdated browser"
|
|
6
|
+
hidden>
|
|
7
|
+
<span class="main-alert-close">×</span>
|
|
8
|
+
<div>
|
|
9
|
+
<i class="fa-solid fa-warning fa-bounce me-2"></i>
|
|
10
|
+
You are using an outdated browser that our site <strong>DOES NOT</strong> support. Please <a href="https://www.google.com/chrome" rel="nofollow" target="_blank">click here</a> to update your browser.
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
<div
|
|
14
|
+
class="main-alert main-alert-top main-alert-fixed main-alert-suspended bg-danger animation-fade-in"
|
|
15
|
+
role="alert" aria-live="polite" aria-label="Payment method issue"
|
|
16
|
+
hidden>
|
|
17
|
+
<span class="main-alert-close">×</span>
|
|
18
|
+
<div>
|
|
19
|
+
<i class="fa-solid fa-warning fa-bounce me-2"></i>
|
|
20
|
+
There is a <strong>problem with your payment method</strong>. To continue using <strong>{{ site.brand.name }}</strong>, please <a href="{{ site.url }}/account#billing" target="_blank">update your payment method</a>.
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
<div
|
|
24
|
+
class="main-alert main-alert-top main-alert-fixed main-alert-sale bg-primary animation-fade-in"
|
|
25
|
+
role="alert" aria-live="polite" aria-label="Flash sale"
|
|
26
|
+
hidden>
|
|
27
|
+
<span class="main-alert-close">×</span>
|
|
28
|
+
<div>
|
|
29
|
+
<i class="fa-solid fa-stopwatch fa-beat me-2"></i>
|
|
30
|
+
<strong>FLASH SALE!</strong>
|
|
31
|
+
Save <strong>15%</strong> at checkout—today only! <a href="{{ site.url }}/pricing" target="_blank">Claim discount</a>.
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
@@ -11,34 +11,34 @@
|
|
|
11
11
|
{% endif %}
|
|
12
12
|
|
|
13
13
|
<!-- Prefetch -->
|
|
14
|
-
<link rel="dns-prefetch" href="https://fonts.googleapis.com"
|
|
15
|
-
<link rel="dns-prefetch" href="https://fonts.gstatic.com" crossorigin
|
|
16
|
-
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net"
|
|
17
|
-
<link rel="dns-prefetch" href="https://cdnjs.cloudflare.com"
|
|
14
|
+
<link rel="dns-prefetch" href="https://fonts.googleapis.com"/>
|
|
15
|
+
<link rel="dns-prefetch" href="https://fonts.gstatic.com" crossorigin/>
|
|
16
|
+
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net"/>
|
|
17
|
+
<link rel="dns-prefetch" href="https://cdnjs.cloudflare.com"/>
|
|
18
18
|
|
|
19
19
|
<!-- Meta -->
|
|
20
|
-
<meta charset="utf-8"
|
|
21
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"
|
|
22
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"
|
|
20
|
+
<meta charset="utf-8"/>
|
|
21
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
22
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
|
|
23
23
|
{% if site.meta.viewport != '' and site.meta.viewport != false and site.meta.viewport != null %}
|
|
24
|
-
<meta name="viewport" content="{{ site.meta.viewport }}"
|
|
24
|
+
<meta name="viewport" content="{{ site.meta.viewport }}"/>
|
|
25
25
|
{% else %}
|
|
26
26
|
<!-- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, minimum-scale=1, maximum-scale=5"> --> <!-- DISABLED 4/8/23 to prevent auto-zooming on text fields -->
|
|
27
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no"
|
|
27
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no"/>
|
|
28
28
|
{% endif %}
|
|
29
|
-
<meta name="HandheldFriendly" content="True"
|
|
30
|
-
<meta name="MobileOptimized" content="320"
|
|
31
|
-
<meta name="generator" content="Ultimate Jekyll"
|
|
29
|
+
<meta name="HandheldFriendly" content="True"/>
|
|
30
|
+
<meta name="MobileOptimized" content="320"/>
|
|
31
|
+
<meta name="generator" content="Ultimate Jekyll"/>
|
|
32
32
|
|
|
33
33
|
<!-- Referrer -->
|
|
34
|
-
<meta name="referrer" content="{{ page.meta.referrer | default: layout.meta.referrer | default: site.meta.referrer | default: 'strict-origin-when-cross-origin' }}"
|
|
34
|
+
<meta name="referrer" content="{{ page.meta.referrer | default: layout.meta.referrer | default: site.meta.referrer | default: 'strict-origin-when-cross-origin' }}"/>
|
|
35
35
|
|
|
36
36
|
<!-- Canonical -->
|
|
37
|
-
<link rel="canonical" href="{{ site.url }}{{ page-url-stripped }}"
|
|
37
|
+
<link rel="canonical" href="{{ site.url }}{{ page-url-stripped }}"/>
|
|
38
38
|
|
|
39
39
|
<!-- Robots -->
|
|
40
40
|
{%- if page.meta.index == false or layout.meta.index == false or site.meta.index == false -%}
|
|
41
|
-
<meta name="robots" content="noindex"
|
|
41
|
+
<meta name="robots" content="noindex"/>
|
|
42
42
|
{% endif %}
|
|
43
43
|
|
|
44
44
|
<!-- Keywords -->
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
{%- else -%}
|
|
50
50
|
{% assign page-keywords = '' %}
|
|
51
51
|
{%- endif -%}
|
|
52
|
-
<meta name="
|
|
52
|
+
<meta name="keywords" content="{{ page-keywords }}"/>
|
|
53
53
|
|
|
54
54
|
<!-- Manifest.json -->
|
|
55
|
-
<link rel="manifest" href="{{ site.url }}/manifest.json"
|
|
55
|
+
<link rel="manifest" href="{{ site.url }}/manifest.json"/>
|
|
56
56
|
|
|
57
57
|
<!-- Title -->
|
|
58
58
|
{%- if page-is-post and page.post.title != null and page.post.title != '' -%}
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
{% assign page-title = site.meta.title | liquify %}
|
|
66
66
|
{%- endif -%}
|
|
67
67
|
<title>{{ page-title }}</title>
|
|
68
|
-
<meta name="twitter:title" content="{{ page-title }}"
|
|
69
|
-
<meta property="og:title" content="{{ page-title }}"
|
|
68
|
+
<meta name="twitter:title" content="{{ page-title }}"/>
|
|
69
|
+
<meta property="og:title" content="{{ page-title }}"/>
|
|
70
70
|
|
|
71
71
|
<!-- Description -->
|
|
72
72
|
{%- if page-is-post and page.post.excerpt != null and page.post.excerpt != '' -%}
|
|
@@ -78,9 +78,9 @@
|
|
|
78
78
|
{%- else -%}
|
|
79
79
|
{% assign page-description = site.meta.description | liquify %}
|
|
80
80
|
{%- endif -%}
|
|
81
|
-
<meta name="description" content="{{ page-description }}"
|
|
82
|
-
<meta name="twitter:description" content="{{ page-description }}"
|
|
83
|
-
<meta property="og:description" content="{{ page-description }}"
|
|
81
|
+
<meta name="description" content="{{ page-description }}"/>
|
|
82
|
+
<meta name="twitter:description" content="{{ page-description }}"/>
|
|
83
|
+
<meta property="og:description" content="{{ page-description }}"/>
|
|
84
84
|
|
|
85
85
|
<!-- Image -->
|
|
86
86
|
{%- if page-is-post and page.post.id != null and page.post.id != '' -%}
|
|
@@ -90,30 +90,29 @@
|
|
|
90
90
|
{%- else -%}
|
|
91
91
|
{% capture page-image %}{%- if site.meta.og-image contains '://' -%}{%- else -%}{{ site.url }}/assets/images/og{%- endif -%}{{ site.meta.og-image }}{% endcapture %}
|
|
92
92
|
{%- endif -%}
|
|
93
|
-
<meta name="twitter:image" content="{{ page-image }}"
|
|
94
|
-
<meta property="og:image" content="{{ page-image }}"
|
|
93
|
+
<meta name="twitter:image" content="{{ page-image }}"/>
|
|
94
|
+
<meta property="og:image" content="{{ page-image }}"/>
|
|
95
95
|
|
|
96
96
|
<!-- OG: Twitter -->
|
|
97
|
-
<meta name="twitter:card" content="summary"
|
|
98
|
-
<meta name="twitter:site" content="@{{ site.socials.twitter }}"
|
|
99
|
-
<meta name="twitter:widgets:theme" content="light"
|
|
97
|
+
<meta name="twitter:card" content="summary"/>
|
|
98
|
+
<meta name="twitter:site" content="@{{ site.socials.twitter }}"/>
|
|
99
|
+
<meta name="twitter:widgets:theme" content="light"/>
|
|
100
100
|
|
|
101
101
|
<!-- OG: Facebook / Open Graph -->
|
|
102
|
-
<meta property="og:url" content="{{ site.url }}{{ page-url-stripped }}"
|
|
102
|
+
<meta property="og:url" content="{{ site.url }}{{ page-url-stripped }}"/>
|
|
103
103
|
{%- if page-is-post -%}
|
|
104
104
|
{% assign og-type = 'article' %}
|
|
105
105
|
{%- else -%}
|
|
106
106
|
{% assign og-type = 'website' %}
|
|
107
107
|
{%- endif -%}
|
|
108
|
-
<meta property="og:type" content="{{ og-type }}"
|
|
108
|
+
<meta property="og:type" content="{{ og-type }}"/>
|
|
109
109
|
|
|
110
110
|
<!-- Main Feed -->
|
|
111
|
-
<link href="{{ site.url }}/feeds/posts.xml" type="application/atom+xml" rel="alternate" title="{{ site.brand.name }} Feed"
|
|
111
|
+
<link href="{{ site.url }}/feeds/posts.xml" type="application/atom+xml" rel="alternate" title="{{ site.brand.name }} Feed"/>
|
|
112
112
|
|
|
113
113
|
<!-- Language Tags -->
|
|
114
|
-
<link rel="alternate" href="{{ site.url }}{{ page-url-stripped }}" hreflang="x-default"
|
|
115
|
-
<link rel="alternate" href="{{ site.url }}{{ page-url-stripped }}" hreflang="en"
|
|
116
|
-
<!-- <link rel="alternate" href="{{ site.url }}/es/{{ page-url-stripped }}" hreflang="es"> -->
|
|
114
|
+
<link rel="alternate" href="{{ site.url }}{{ page-url-stripped }}" hreflang="x-default"/>
|
|
115
|
+
<link rel="alternate" href="{{ site.url }}{{ page-url-stripped }}" hreflang="{{ site.translation.default | default: 'en' }}"/>
|
|
117
116
|
|
|
118
117
|
<!-- Favicon -->
|
|
119
118
|
{%- if site.favicon.path != null and site.favicon.path != '' -%}
|
|
@@ -121,24 +120,24 @@
|
|
|
121
120
|
{%- else -%}
|
|
122
121
|
{% assign favicon-path = site.url | append: '/assets/images/favicon' %}
|
|
123
122
|
{%- endif -%}
|
|
124
|
-
<link rel="apple-touch-icon" sizes="180x180" href="{{ favicon-path }}/apple-touch-icon.png?cb={{ site.uj.cache_breaker }}"
|
|
125
|
-
<link rel="icon" type="image/png" sizes="32x32" href="{{ favicon-path }}/favicon-32x32.png?cb={{ site.uj.cache_breaker }}"
|
|
126
|
-
<link rel="icon" type="image/png" sizes="16x16" href="{{ favicon-path }}/favicon-16x16.png?cb={{ site.uj.cache_breaker }}"
|
|
127
|
-
<link rel="mask-icon" href="{{ favicon-path }}/safari-pinned-tab.svg" color="{{ site.favicon.safari-pinned-tab }}"
|
|
128
|
-
<link rel="shortcut icon" type="image/x-icon" href="{{ favicon-path }}/favicon.ico?cb={{ site.uj.cache_breaker }}"
|
|
129
|
-
<meta name="msapplication-TileColor" content="{{ site.favicon.msapp-tile-color }}"
|
|
130
|
-
<meta name="msapplication-config" content="{{ favicon-path }}/browserconfig.xml?cb={{ site.uj.cache_breaker }}"
|
|
131
|
-
<meta name="theme-color" content="{{ site.favicon.theme-color }}"
|
|
123
|
+
<link rel="apple-touch-icon" sizes="180x180" href="{{ favicon-path }}/apple-touch-icon.png?cb={{ site.uj.cache_breaker }}"/>
|
|
124
|
+
<link rel="icon" type="image/png" sizes="32x32" href="{{ favicon-path }}/favicon-32x32.png?cb={{ site.uj.cache_breaker }}"/>
|
|
125
|
+
<link rel="icon" type="image/png" sizes="16x16" href="{{ favicon-path }}/favicon-16x16.png?cb={{ site.uj.cache_breaker }}"/>
|
|
126
|
+
<link rel="mask-icon" href="{{ favicon-path }}/safari-pinned-tab.svg" color="{{ site.favicon.safari-pinned-tab }}"/>
|
|
127
|
+
<link rel="shortcut icon" type="image/x-icon" href="{{ favicon-path }}/favicon.ico?cb={{ site.uj.cache_breaker }}"/>
|
|
128
|
+
<meta name="msapplication-TileColor" content="{{ site.favicon.msapp-tile-color }}"/>
|
|
129
|
+
<meta name="msapplication-config" content="{{ favicon-path }}/browserconfig.xml?cb={{ site.uj.cache_breaker }}"/>
|
|
130
|
+
<meta name="theme-color" content="{{ site.favicon.theme-color }}"/>
|
|
132
131
|
|
|
133
132
|
<!-- Browser Support -->
|
|
134
133
|
<!--[if lte IE 9]>
|
|
135
|
-
<link rel="stylesheet" type="text/css" href="/assets/css/main/lte-ie9.css?cb={{ site.uj.cache_breaker }}"
|
|
134
|
+
<link rel="stylesheet" type="text/css" href="/assets/css/main/lte-ie9.css?cb={{ site.uj.cache_breaker }}"/>
|
|
136
135
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
|
|
137
136
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js"></script>
|
|
138
137
|
<![endif]-->
|
|
139
138
|
|
|
140
139
|
<!-- CSS Bundle -->
|
|
141
|
-
<link rel="stylesheet" type="text/css" href="{{ site.url }}/assets/css/main.bundle.css?cb={{ site.uj.cache_breaker }}"
|
|
140
|
+
<link rel="stylesheet" type="text/css" href="{{ site.url }}/assets/css/main.bundle.css?cb={{ site.uj.cache_breaker }}"/>
|
|
142
141
|
|
|
143
142
|
<!-- Style - Scripts are Disabled -->
|
|
144
143
|
<noscript>
|
|
@@ -149,40 +148,6 @@
|
|
|
149
148
|
</style>
|
|
150
149
|
</noscript>
|
|
151
150
|
|
|
152
|
-
<!-- Alerts -->
|
|
153
|
-
<!-- Master - Outdated Alert Box -->
|
|
154
|
-
<div
|
|
155
|
-
class="main-alert main-alert-top main-alert-fixed main-alert-outdated bg-danger animation-fade-in"
|
|
156
|
-
role="alert" aria-live="polite" aria-label="Outdated browser"
|
|
157
|
-
hidden>
|
|
158
|
-
<span class="main-alert-close">×</span>
|
|
159
|
-
<div>
|
|
160
|
-
<i class="fa-solid fa-warning fa-bounce me-2"></i>
|
|
161
|
-
You are using an outdated browser that our site <strong>DOES NOT</strong> support. Please <a href="https://www.google.com/chrome" rel="nofollow" target="_blank">click here</a> to update your browser.
|
|
162
|
-
</div>
|
|
163
|
-
</div>
|
|
164
|
-
<div
|
|
165
|
-
class="main-alert main-alert-top main-alert-fixed main-alert-suspended bg-danger animation-fade-in"
|
|
166
|
-
role="alert" aria-live="polite" aria-label="Payment method issue"
|
|
167
|
-
hidden>
|
|
168
|
-
<span class="main-alert-close">×</span>
|
|
169
|
-
<div>
|
|
170
|
-
<i class="fa-solid fa-warning fa-bounce me-2"></i>
|
|
171
|
-
There is a <strong>problem with your payment method</strong>. To continue using <strong>{{ site.brand.name }}</strong>, please <a href="{{ site.url }}/account#billing" target="_blank">update your payment method</a>.
|
|
172
|
-
</div>
|
|
173
|
-
</div>
|
|
174
|
-
<div
|
|
175
|
-
class="main-alert main-alert-top main-alert-fixed main-alert-sale bg-primary animation-fade-in"
|
|
176
|
-
role="alert" aria-live="polite" aria-label="Flash sale"
|
|
177
|
-
hidden>
|
|
178
|
-
<span class="main-alert-close">×</span>
|
|
179
|
-
<div>
|
|
180
|
-
<i class="fa-solid fa-stopwatch fa-beat me-2"></i>
|
|
181
|
-
<strong>FLASH SALE!</strong>
|
|
182
|
-
Save <strong>15%</strong> at checkout—today only! <a href="{{ site.url }}/pricing" target="_blank">Claim discount</a>.
|
|
183
|
-
</div>
|
|
184
|
-
</div>
|
|
185
|
-
|
|
186
151
|
<!-- App - Head Content -->
|
|
187
152
|
{%- if page.settings.include-app-head == false -%}
|
|
188
153
|
{% elsif layout.settings.include-app-head == false %}
|
|
@@ -8,7 +8,7 @@ layout: null
|
|
|
8
8
|
|
|
9
9
|
<!DOCTYPE html>
|
|
10
10
|
<html
|
|
11
|
-
lang="en"
|
|
11
|
+
lang="{{ site.translation.default | default: 'en' }}"
|
|
12
12
|
class="{{ layout.html.class }} {{ page.html.class }}" {{ layout.html.attributes }} {{ page.html.attributes }}
|
|
13
13
|
|
|
14
14
|
data-theme-id="{{ site.theme.id }}"
|
|
@@ -27,6 +27,9 @@ layout: null
|
|
|
27
27
|
class="{{ layout.body.class }} {{ page.body.class }}" {{ layout.body.attributes }} {{ page.body.attributes }}
|
|
28
28
|
>
|
|
29
29
|
|
|
30
|
+
<!-- Head -->
|
|
31
|
+
{%- include /main/global/body.html -%}
|
|
32
|
+
|
|
30
33
|
<!-- Header -->
|
|
31
34
|
{%- if page.settings.include-app-header == false -%}
|
|
32
35
|
{% elsif layout.settings.include-app-header == false %}
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
---
|
|
2
2
|
### ALL PAGES ###
|
|
3
|
-
layout:
|
|
3
|
+
layout: main/global/default
|
|
4
4
|
|
|
5
5
|
### REGULAR PAGES ###
|
|
6
|
+
|
|
6
7
|
---
|
|
7
|
-
{
|
|
8
|
+
{%- include /themes/bootstrap/header.html -%}
|
|
9
|
+
|
|
10
|
+
<!-- ========== MAIN CONTENT ========== -->
|
|
11
|
+
<main>
|
|
12
|
+
{% if page.extension == '.md' %}
|
|
13
|
+
{{ content | liquify | markdownify }}
|
|
14
|
+
{%- else -%}
|
|
15
|
+
{{ content | liquify }}
|
|
16
|
+
{%- endif -%}
|
|
17
|
+
</main>
|
|
18
|
+
|
|
19
|
+
{%- include /themes/bootstrap/footer.html -%}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
### ALL PAGES ###
|
|
3
|
+
layout: main/global/default
|
|
4
|
+
|
|
5
|
+
### REGULAR PAGES ###
|
|
6
|
+
head:
|
|
7
|
+
pre-bundle-css: '
|
|
8
|
+
{%- include /themes/geeks/head-pre-bundle.html -%}
|
|
9
|
+
'
|
|
10
|
+
|
|
11
|
+
foot:
|
|
12
|
+
pre-bundle-script: '
|
|
13
|
+
{%- include /themes/geeks/foot-pre-bundle.html -%}
|
|
14
|
+
'
|
|
15
|
+
|
|
16
|
+
settings:
|
|
17
|
+
include-app-foot: false
|
|
18
|
+
include-app-head: false
|
|
19
|
+
include-app-footer: false
|
|
20
|
+
include-app-header: false
|
|
21
|
+
include-script-bundle: true
|
|
22
|
+
include-script-core: true
|
|
23
|
+
include-css-bundle: false
|
|
24
|
+
manager-configuration: "
|
|
25
|
+
{
|
|
26
|
+
libraries: {
|
|
27
|
+
cookieconsent: {
|
|
28
|
+
enabled: true
|
|
29
|
+
},
|
|
30
|
+
chatsy: {
|
|
31
|
+
enabled: true
|
|
32
|
+
},
|
|
33
|
+
sentry: {
|
|
34
|
+
enabled: true
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
}
|
|
38
|
+
"
|
|
39
|
+
---
|
|
40
|
+
{%- include /themes/geeks/header.html -%}
|
|
41
|
+
|
|
42
|
+
<!-- ========== MAIN CONTENT ========== -->
|
|
43
|
+
<main class="bg-white">
|
|
44
|
+
{{ content | liquify | markdownify }}
|
|
45
|
+
</main>
|
|
46
|
+
|
|
47
|
+
{%- include /themes/geeks/footer.html -%}
|
|
@@ -41,7 +41,11 @@ settings:
|
|
|
41
41
|
|
|
42
42
|
<!-- ========== MAIN CONTENT ========== -->
|
|
43
43
|
<main class="bg-white">
|
|
44
|
-
{
|
|
44
|
+
{% if page.extension == '.md' %}
|
|
45
|
+
{{ content | liquify | markdownify }}
|
|
46
|
+
{%- else -%}
|
|
47
|
+
{{ content | liquify }}
|
|
48
|
+
{%- endif -%}
|
|
45
49
|
</main>
|
|
46
50
|
|
|
47
51
|
{%- include /themes/geeks/footer.html -%}
|
|
@@ -3,9 +3,18 @@ layout: null
|
|
|
3
3
|
permalink: /feeds/posts.xml
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
<rss
|
|
6
|
+
<rss
|
|
7
|
+
version="2.0"
|
|
8
|
+
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
9
|
+
xmlns:content="http://purl.org/rss/1.0/modules/content/"
|
|
10
|
+
xmlns:atom="http://www.w3.org/2005/Atom"
|
|
11
|
+
>
|
|
7
12
|
<channel>
|
|
8
|
-
<atom:link
|
|
13
|
+
<atom:link
|
|
14
|
+
href="{{ site.url }}{{ page.url }}"
|
|
15
|
+
rel="self"
|
|
16
|
+
type="application/rss+xml"
|
|
17
|
+
/>
|
|
9
18
|
<title>
|
|
10
19
|
<![CDATA[
|
|
11
20
|
{{ site.brand.name }} Blog
|
|
@@ -6,7 +6,12 @@ sitemap:
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
9
|
-
<urlset
|
|
9
|
+
<urlset
|
|
10
|
+
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
|
11
|
+
xmlns:xhtml="http://www.w3.org/1999/xhtml"
|
|
12
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
13
|
+
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
|
14
|
+
>
|
|
10
15
|
{% assign pages = site.pages %}
|
|
11
16
|
{% assign default-time = site.time | date_to_xmlschema %}
|
|
12
17
|
|
package/dist/gulp/main.js
CHANGED
|
@@ -5,6 +5,7 @@ const argv = Manager.getArguments();
|
|
|
5
5
|
const { series, parallel, watch } = require('gulp');
|
|
6
6
|
const path = require('path');
|
|
7
7
|
const jetpack = require('fs-jetpack');
|
|
8
|
+
const glob = require('glob').globSync;
|
|
8
9
|
|
|
9
10
|
// Load package
|
|
10
11
|
const package = Manager.getPackage('main');
|
|
@@ -14,7 +15,7 @@ const project = Manager.getPackage('project');
|
|
|
14
15
|
logger.log('Starting...', argv);
|
|
15
16
|
|
|
16
17
|
// Load tasks
|
|
17
|
-
const tasks =
|
|
18
|
+
const tasks = glob('*.js', { cwd: `${__dirname}/tasks` });
|
|
18
19
|
|
|
19
20
|
// Init global
|
|
20
21
|
global.tasks = {};
|
|
@@ -47,6 +48,7 @@ exports.build = series(
|
|
|
47
48
|
exports.distribute,
|
|
48
49
|
parallel(exports.sass, exports.webpack, exports.imagemin),
|
|
49
50
|
exports.jekyll,
|
|
51
|
+
exports.audit,
|
|
50
52
|
exports.translation,
|
|
51
53
|
);
|
|
52
54
|
|
|
@@ -56,6 +58,6 @@ exports.default = series(
|
|
|
56
58
|
// exports.clean,
|
|
57
59
|
exports.serve,
|
|
58
60
|
exports.build,
|
|
59
|
-
exports.developmentRebuild,
|
|
61
|
+
// exports.developmentRebuild,
|
|
60
62
|
// exports.watcher,
|
|
61
63
|
);
|