@paroicms/site-generator-plugin 0.2.0 → 0.2.2
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/gen-backend/dist/generator/site-generator/common-template-creator.js +10 -8
- package/gen-backend/dist/generator/site-generator/site-generator.js +4 -4
- package/gen-backend/dist/generator/site-generator/theme-css.js +28 -14
- package/gen-front/dist/gen-front.css +1 -1
- package/gen-front/dist/gen-front.mjs +1 -1
- package/package.json +1 -1
|
@@ -37,7 +37,7 @@ function templateOfSiteLogoTitle(ctx) {
|
|
|
37
37
|
const content = [
|
|
38
38
|
siteType.fields?.includes("logo")
|
|
39
39
|
? `{% if site.field.logo %}
|
|
40
|
-
{% useImage logo uid: site.field.logo.uid size: "
|
|
40
|
+
{% useImage logo uid: site.field.logo.uid size: "50x50" %}
|
|
41
41
|
<img
|
|
42
42
|
src="{{ logo.url }}"
|
|
43
43
|
width="{{ logo.width }}"
|
|
@@ -51,8 +51,7 @@ function templateOfSiteLogoTitle(ctx) {
|
|
|
51
51
|
return `<a
|
|
52
52
|
class="Header-logo"
|
|
53
53
|
href="{{ site.home.url }}"
|
|
54
|
-
data-menu-
|
|
55
|
-
data-mobile-menu-part="logoTitle">
|
|
54
|
+
data-mobile-menu-part="logo">
|
|
56
55
|
${indent(content.filter(Boolean).join("\n"), 1, { skipFirst: true })}
|
|
57
56
|
</a>`;
|
|
58
57
|
}
|
|
@@ -82,11 +81,14 @@ function templateOfSearchOpener(ctx) {
|
|
|
82
81
|
const typeName = homeType.routingChildren?.find((typeName) => typeName === "search" || typeName === "searchPage");
|
|
83
82
|
if (!typeName)
|
|
84
83
|
return;
|
|
85
|
-
return
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
84
|
+
return `<div class="Row center">
|
|
85
|
+
{% getDoc ${typeName} id: site.home.${typeName}.id %}
|
|
86
|
+
<span
|
|
87
|
+
data-effect="paSearchOpener"
|
|
88
|
+
data-search-url="{{ ${typeName}.url }}"
|
|
89
|
+
data-icon-color="#fff"></span>
|
|
90
|
+
<div data-mobile-menu="button"></div>
|
|
91
|
+
</div>`;
|
|
90
92
|
}
|
|
91
93
|
export function templateOfSiteFooter(ctx) {
|
|
92
94
|
const content = [templateOfSiteFooterMention(ctx), templateOfLanguageSelector(ctx)];
|
|
@@ -66,11 +66,11 @@ function getPackageJsonContent(options) {
|
|
|
66
66
|
"_pino-pretty": "pino-pretty -U false -x 'stats:25' -X 'stats:grey' -t 'yyyy-mm-dd HH:MM:ss.l' -i 'hostname,pid,fqdn'",
|
|
67
67
|
},
|
|
68
68
|
dependencies: {
|
|
69
|
-
"@paroicms/contact-form-plugin": "
|
|
70
|
-
"@paroicms/content-loading-plugin": "
|
|
71
|
-
"@paroicms/public-menu-plugin": "
|
|
69
|
+
"@paroicms/contact-form-plugin": "*",
|
|
70
|
+
"@paroicms/content-loading-plugin": "*",
|
|
71
|
+
"@paroicms/public-menu-plugin": "*",
|
|
72
|
+
"@paroicms/quill-editor-plugin": "*",
|
|
72
73
|
"@paroicms/server": "*",
|
|
73
|
-
"@paroicms/quill-editor-plugin": "1.27.0",
|
|
74
74
|
},
|
|
75
75
|
devDependencies: {
|
|
76
76
|
concurrently: "~9.1.2",
|
|
@@ -120,18 +120,8 @@ nav {
|
|
|
120
120
|
margin: 0 15px;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
flex-basis: 100%;
|
|
126
|
-
order: 3;
|
|
127
|
-
margin: 10px 0 5px;
|
|
128
|
-
justify-content: flex-start;
|
|
129
|
-
overflow-x: auto;
|
|
130
|
-
padding-bottom: 5px;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
nav a {
|
|
123
|
+
nav a,
|
|
124
|
+
nav a:visited {
|
|
135
125
|
color: rgba(255, 255, 255, 0.85);
|
|
136
126
|
padding: 8px;
|
|
137
127
|
margin: 0 4px;
|
|
@@ -162,6 +152,24 @@ nav a.active::after {
|
|
|
162
152
|
border-radius: 1.5px;
|
|
163
153
|
}
|
|
164
154
|
|
|
155
|
+
._mobileMenu nav {
|
|
156
|
+
display: block;
|
|
157
|
+
margin-top: 40px;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
._mobileMenu nav a,
|
|
161
|
+
._mobileMenu nav a:visited,
|
|
162
|
+
._mobileMenu nav a:active,
|
|
163
|
+
._mobileMenu nav a:hover {
|
|
164
|
+
color: #333;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
._mobileMenu nav a {
|
|
168
|
+
display: block;
|
|
169
|
+
margin: 0;
|
|
170
|
+
padding: 10px;
|
|
171
|
+
}
|
|
172
|
+
|
|
165
173
|
/* Classes */
|
|
166
174
|
|
|
167
175
|
._bg2 {
|
|
@@ -252,7 +260,8 @@ nav a.active::after {
|
|
|
252
260
|
}
|
|
253
261
|
|
|
254
262
|
.Button,
|
|
255
|
-
.PaButton
|
|
263
|
+
.PaButton,
|
|
264
|
+
.PaIconButton {
|
|
256
265
|
background-color: #3498db;
|
|
257
266
|
border: 1px solid #3498db;
|
|
258
267
|
border-radius: 5px;
|
|
@@ -309,5 +318,10 @@ nav a.active::after {
|
|
|
309
318
|
|
|
310
319
|
.Row.spaceBetween {
|
|
311
320
|
justify-content: space-between;
|
|
312
|
-
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.Row.center {
|
|
324
|
+
align-items: center;
|
|
325
|
+
}
|
|
326
|
+
`;
|
|
313
327
|
}
|