@paroicms/playground_demo1 0.52.1 → 0.53.1

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.
@@ -1,12 +1,12 @@
1
1
 
2
- > @paroicms/playground_demo1@0.52.1 build
2
+ > @paroicms/playground_demo1@0.53.1 build
3
3
  > npm run scss
4
4
 
5
5
 
6
- > @paroicms/playground_demo1@0.52.1 scss
6
+ > @paroicms/playground_demo1@0.53.1 scss
7
7
  > npm run _scss -- --no-source-map --style=compressed
8
8
 
9
9
 
10
- > @paroicms/playground_demo1@0.52.1 _scss
10
+ > @paroicms/playground_demo1@0.53.1 _scss
11
11
  > sass theme/assets/scss/index.scss theme/assets/css/index.css --no-source-map --style=compressed
12
12
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @paroicms/playground_seoul
2
2
 
3
+ ## 0.53.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [2abb874]
8
+ - @paroicms/quill-editor-plugin@1.32.1
9
+
10
+ ## 0.53.0
11
+
12
+ ### Minor Changes
13
+
14
+ - b456d80: Add labeling fields; Improve field values
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [b456d80]
19
+ - @paroicms/content-loading-plugin@0.16.0
20
+ - @paroicms/quill-editor-plugin@1.32.0
21
+
3
22
  ## 0.52.1
4
23
 
5
24
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paroicms/playground_demo1",
3
- "version": "0.52.1",
3
+ "version": "0.53.1",
4
4
  "description": "Boilerplate website for ParoiCMS",
5
5
  "author": "Paroi Team",
6
6
  "license": "MIT",
@@ -25,9 +25,9 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@paroicms/contact-form-plugin": "0.23.0",
28
- "@paroicms/content-loading-plugin": "0.15.0",
28
+ "@paroicms/content-loading-plugin": "0.16.0",
29
29
  "@paroicms/public-menu-plugin": "0.11.0",
30
- "@paroicms/quill-editor-plugin": "1.31.1"
30
+ "@paroicms/quill-editor-plugin": "1.32.1"
31
31
  },
32
32
  "devDependencies": {
33
33
  "concurrently": "~9.1.2",
package/site-schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "7",
2
+ "version": "8",
3
3
  "languages": ["en"],
4
4
  "plugins": [
5
5
  "@paroicms/quill-editor-plugin",
@@ -69,12 +69,16 @@
69
69
  "route": ":yyyy/:mm/:dd/:relativeId-:slug",
70
70
  "relativeIdGenerator": ["default", 6],
71
71
  "withFeaturedImage": true,
72
- "fields": ["leadParagraph", "htmlContent"],
73
- "labeling": [
72
+ "fields": [
74
73
  {
74
+ "name": "tags",
75
+ "localized": false,
76
+ "storedAs": "labeling",
75
77
  "taxonomy": "tags",
76
- "relation": "multiple"
77
- }
78
+ "multiple": true
79
+ },
80
+ "leadParagraph",
81
+ "htmlContent"
78
82
  ]
79
83
  },
80
84
  {
@@ -143,8 +147,7 @@
143
147
  "localized": false,
144
148
  "storedAs": "varchar",
145
149
  "dataType": "string",
146
- "enum": ["left", "right"],
147
- "visibility": ["overview", "table", "feed"]
150
+ "enum": ["left", "right"]
148
151
  },
149
152
  "image",
150
153
  "htmlContent"
@@ -20,7 +20,12 @@
20
20
  "addChild": "Add a post"
21
21
  },
22
22
  "post": {
23
- "label": "Post"
23
+ "label": "Post",
24
+ "fields": {
25
+ "tags": {
26
+ "label": "Tags"
27
+ }
28
+ }
24
29
  },
25
30
  "postTags": {
26
31
  "label": "Tags",
@@ -20,7 +20,12 @@
20
20
  "addChild": "Ajouter un article"
21
21
  },
22
22
  "post": {
23
- "label": "Article"
23
+ "label": "Article",
24
+ "fields": {
25
+ "tags": {
26
+ "label": "Tags"
27
+ }
28
+ }
24
29
  },
25
30
  "postTags": {
26
31
  "label": "Tags",
@@ -21,12 +21,14 @@
21
21
 
22
22
  <div class="Flex spaceBetween">
23
23
  {% if doc.siblings.previous %}
24
- <a href="{{ doc.siblings.previous.url }}" title="{{ doc.siblings.previous.title }}">← {{ "previous" | t }}</a>
24
+ <a href="{{ doc.siblings.previous.url }}" title="{{ doc.siblings.previous.title }}"
25
+ >← {{ 'previous' | t -}}
26
+ </a>
25
27
  {% else %}
26
28
  <span></span>
27
29
  {% endif %}
28
30
  {% if doc.siblings.next %}
29
- <a href="{{ doc.siblings.next.url }}" title="{{ doc.siblings.next.title }}">{{ "next" | t }} →</a>
31
+ <a href="{{ doc.siblings.next.url }}" title="{{ doc.siblings.next.title }}">{{ 'next' | t }} →</a>
30
32
  {% endif %}
31
33
  </div>
32
34
  </div>
@@ -34,11 +36,11 @@
34
36
  </div>
35
37
 
36
38
  <div class="DocHeader-middle">
37
- {% if doc.labeling.tags %}
38
- <div class="Annotation">doc.labeling.tags</div>
39
+ {% if doc.field.tags %}
40
+ <div class="Annotation">doc.field.tags</div>
39
41
  <div class="Tile-tags">
40
42
  Tags:
41
- {% for tag in doc.labeling.tags %}
43
+ {% for tag in doc.field.tags %}
42
44
  <span class="Tag">{{ tag.title }}</span>
43
45
  {% endfor %}
44
46
  </div>
@@ -48,17 +50,20 @@
48
50
  {% if doc.featuredImage %}
49
51
  <div class="DocHeader-right">
50
52
  <div class="Annotation">doc.featuredImage</div>
51
- {% useImage img
53
+ {%
54
+ useImage img
52
55
  , uid: doc.featuredImage.uid
53
- , size: "x200" %}
56
+ , size: "x200"
57
+ %}
54
58
  <img
55
59
  class="Block"
56
60
  src="{{ img.url }}"
57
61
  width="{{ img.width }}"
58
62
  height="{{ img.height }}"
59
63
  loading="lazy"
60
- alt="">
64
+ alt=""
65
+ >
61
66
  </div>
62
67
  {% endif %}
63
68
  </header>
64
- </div>
69
+ </div>
@@ -4,32 +4,33 @@
4
4
  <h3 class="Tile-h1">{{ doc.title }}</h3>
5
5
  <p class="Tile-excerpt">{{ doc.excerpt | makeExcerpt: 40 }}</p>
6
6
 
7
- {% if doc.labeling.tags %}
7
+ {% if doc.field.tags %}
8
8
  <div class="Tile-tags">
9
9
  Tags:
10
- {% for tag in doc.labeling.tags %}
10
+ {% for tag in doc.field.tags %}
11
11
  <span class="Tag">{{ tag.title }}</span>
12
12
  {% endfor %}
13
13
  </div>
14
14
  {% endif %}
15
15
 
16
- <div>
17
- Published at {{ doc.publishDate | formatDate: "long" }}
18
- </div>
16
+ <div>Published at {{ doc.publishDate | formatDate: 'long' }}</div>
19
17
  </div>
20
18
  <div class="Tile-right">
21
19
  {% if doc.defaultImage %}
22
- {% useImage im
20
+ {%
21
+ useImage im
23
22
  , uid: doc.defaultImage.uid
24
- , size: "x250x" %}
23
+ , size: "x250x"
24
+ %}
25
25
  <img
26
26
  class="Img"
27
27
  src="{{ im.url }}"
28
28
  width="{{ im.width }}"
29
29
  height="{{ im.height }}"
30
30
  loading="lazy"
31
- alt="">
31
+ alt=""
32
+ >
32
33
  {% endif %}
33
34
  </div>
34
35
  </article>
35
- </a>
36
+ </a>
@@ -1,39 +1,41 @@
1
1
  <a class="Block Mb" href="{{ doc.url }}">
2
2
  <article class="Tile">
3
3
  <div class="Tile-text">
4
- <h3 class="Tile-h1">{{ doc.title }}
4
+ <h3 class="Tile-h1">
5
+ {{ doc.title }}
5
6
  <span class="Tag">{{ doc.typeLabel }}</span>
6
7
  </h3>
7
8
  <p class="Tile-excerpt">{{ doc.excerpt | makeExcerpt: 40 }}</p>
8
9
 
9
- {% if doc.labeling.tags %}
10
+ {% if doc.field.tags %}
10
11
  <div class="Tile-tags">
11
12
  Tags:
12
- {% for tag in doc.labeling.tags %}
13
+ {% for tag in doc.field.tags %}
13
14
  <span class="Tag">{{ tag.title }}</span>
14
15
  {% endfor %}
15
16
  </div>
16
17
  {% endif %}
17
18
 
18
- {% if doc.type == "post" %}
19
- <div>
20
- Published at {{ doc.publishDate | formatDate: "long" }}
21
- </div>
19
+ {% if doc.type == 'post' %}
20
+ <div>Published at {{ doc.publishDate | formatDate: 'long' }}</div>
22
21
  {% endif %}
23
22
  </div>
24
23
  <div class="Tile-right">
25
24
  {% if doc.defaultImage %}
26
- {% useImage im
25
+ {%
26
+ useImage im
27
27
  , uid: doc.defaultImage.uid
28
- , size: "x250x" %}
28
+ , size: "x250x"
29
+ %}
29
30
  <img
30
31
  class="Img"
31
32
  src="{{ im.url }}"
32
33
  width="{{ im.width }}"
33
34
  height="{{ im.height }}"
34
35
  loading="lazy"
35
- alt="">
36
+ alt=""
37
+ >
36
38
  {% endif %}
37
39
  </div>
38
40
  </article>
39
- </a>
41
+ </a>
@@ -1,11 +1,6 @@
1
1
  {% layout "layouts/main-layout.liquid" doc: doc site: site %}
2
2
  {% block %}
3
- {%
4
- getPaginatedDocs posts
5
- , parentId: site.home.posts.id
6
- , labeledById: doc.id
7
- , pageSize: 4
8
- %}
3
+ {% getPaginatedDocs posts, parentId: site.home.posts.id, labeledById: doc.id, labeledByField: "tags", pageSize: 4 %}
9
4
 
10
5
  {% render 'partials/breadcrumb', doc: doc, site: site %}
11
6
  {% render 'partials/doc-header.liquid', doc: doc, site: site %}
@@ -22,7 +17,7 @@
22
17
  <div class="Container pad Mt Mb">
23
18
  <div class="Grid12">
24
19
  <div class="Annotation Column4 Span6">
25
- getPaginatedDocs posts, parentId: site.home.posts.id, labeledById: doc.id, pageSize: 4
20
+ getPaginatedDocs posts, parentId: site.home.posts.id, labeledById: doc.id, labeledByField: "tags", pageSize: 4
26
21
  </div>
27
22
  </div>
28
23
  <div