@paroicms/playground_demo2 0.69.2 → 0.70.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_demo2@0.69.2 build
2
+ > @paroicms/playground_demo2@0.70.1 build
3
3
  > npm run scss
4
4
 
5
5
 
6
- > @paroicms/playground_demo2@0.69.2 scss
6
+ > @paroicms/playground_demo2@0.70.1 scss
7
7
  > npm run _scss -- --no-source-map --style=compressed
8
8
 
9
9
 
10
- > @paroicms/playground_demo2@0.69.2 _scss
10
+ > @paroicms/playground_demo2@0.70.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,37 @@
1
1
  # @paroicms/playground_seoul
2
2
 
3
+ ## 0.70.1
4
+
5
+ ### Patch Changes
6
+
7
+ - d8036cb: Fixed part display HTML fields in Admin-UI
8
+ - @paroicms/script-lib@0.3.1
9
+ - @paroicms/contact-form-plugin@0.33.1
10
+ - @paroicms/content-loading-plugin@0.27.1
11
+ - @paroicms/internal-link-plugin@0.22.1
12
+ - @paroicms/list-field-plugin@0.26.1
13
+ - @paroicms/public-menu-plugin@0.19.1
14
+ - @paroicms/quill-editor-plugin@1.42.1
15
+ - @paroicms/video-plugin@0.36.1
16
+
17
+ ## 0.70.0
18
+
19
+ ### Minor Changes
20
+
21
+ - c9eb26a: Added 'set' and 'out' liquid tags
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies [c9eb26a]
26
+ - @paroicms/content-loading-plugin@0.27.0
27
+ - @paroicms/internal-link-plugin@0.22.0
28
+ - @paroicms/contact-form-plugin@0.33.0
29
+ - @paroicms/quill-editor-plugin@1.42.0
30
+ - @paroicms/public-menu-plugin@0.19.0
31
+ - @paroicms/list-field-plugin@0.26.0
32
+ - @paroicms/video-plugin@0.36.0
33
+ - @paroicms/script-lib@0.3.0
34
+
3
35
  ## 0.69.2
4
36
 
5
37
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paroicms/playground_demo2",
3
- "version": "0.69.2",
3
+ "version": "0.70.1",
4
4
  "description": "Demonstration website for ParoiCMS",
5
5
  "author": "Paroi Team",
6
6
  "license": "MIT",
@@ -24,14 +24,14 @@
24
24
  "_pino-pretty": "pino-pretty -U false -x 'stats:25' -X 'stats:grey' -t 'yyyy-mm-dd HH:MM:ss.l' -i 'hostname,pid,fqdn'"
25
25
  },
26
26
  "dependencies": {
27
- "@paroicms/contact-form-plugin": "0.32.2",
28
- "@paroicms/content-loading-plugin": "0.26.2",
29
- "@paroicms/internal-link-plugin": "0.21.2",
30
- "@paroicms/list-field-plugin": "0.25.2",
31
- "@paroicms/public-menu-plugin": "0.18.2",
32
- "@paroicms/quill-editor-plugin": "1.41.2",
33
- "@paroicms/script-lib": "0.2.2",
34
- "@paroicms/video-plugin": "0.35.2"
27
+ "@paroicms/contact-form-plugin": "0.33.1",
28
+ "@paroicms/content-loading-plugin": "0.27.1",
29
+ "@paroicms/internal-link-plugin": "0.22.1",
30
+ "@paroicms/list-field-plugin": "0.26.1",
31
+ "@paroicms/public-menu-plugin": "0.19.1",
32
+ "@paroicms/quill-editor-plugin": "1.42.1",
33
+ "@paroicms/script-lib": "0.3.1",
34
+ "@paroicms/video-plugin": "0.36.1"
35
35
  },
36
36
  "devDependencies": {
37
37
  "concurrently": "~9.1.2",
package/site-schema.json CHANGED
@@ -52,7 +52,7 @@
52
52
  },
53
53
  {
54
54
  "listName": "sections",
55
- "parts": ["partner", "sideImage"],
55
+ "parts": ["partner", "sideImage", "bookPage"],
56
56
  "sorting": "manual"
57
57
  }
58
58
  ],
@@ -105,6 +105,11 @@
105
105
  "sorting": "manual"
106
106
  }
107
107
  },
108
+ {
109
+ "typeName": "bookPage",
110
+ "kind": "part",
111
+ "fields": ["title", "htmlContent"]
112
+ },
108
113
  {
109
114
  "typeName": "exhibition",
110
115
  "kind": "document",
@@ -1,11 +1,11 @@
1
- {% layout "layouts/main-layout.liquid" doc: doc site: site %}
1
+ {% layout 'layouts/main-layout.liquid' %}
2
2
  {% block %}
3
- <main class="Container">
4
- <div class="Text">
5
- <h1>404</h1>
6
- <p>
7
- {{ "This page does not exist. We offer you to <a href='/'>return to home page</a>." | t | raw }}
8
- </p>
9
- </div>
10
- </main>
11
- {% endblock %}
3
+ <main class="Container">
4
+ <div class="Text">
5
+ <h1>404</h1>
6
+ <p>
7
+ {{ "This page does not exist. We offer you to <a href='/'>return to home page</a>." | t | raw }}
8
+ </p>
9
+ </div>
10
+ </main>
11
+ {% endblock %}
@@ -1,12 +1,12 @@
1
- {% layout "layouts/main-layout.liquid" doc: doc site: site %}
1
+ {% layout 'layouts/main-layout.liquid' %}
2
2
  {% block %}
3
3
  <main class="Container">
4
- {% render 'partials/breadcrumb', doc: doc, site: site %}
4
+ {% render 'partials/breadcrumb', doc: doc %}
5
5
  {% if doc.featuredImage %}
6
6
  <div class="HeroBanner">
7
- {% useImage smallImg, image: doc.featuredImage resize: "324x200" %}
8
- {% useImage mediumImg, image: doc.featuredImage resize: "1024x545" %}
9
- {% useImage largeImg, image: doc.featuredImage resize: "1200x545" %}
7
+ {% set smallImg = image(doc.featuredImage, resize: "324x200") %}
8
+ {% set mediumImg = image(doc.featuredImage, resize: "1024x545") %}
9
+ {% set largeImg = image(doc.featuredImage, resize: "1200x545") %}
10
10
 
11
11
  <picture>
12
12
  <source
@@ -1,10 +1,10 @@
1
- {% layout "layouts/main-layout.liquid" doc: doc site: site %}
1
+ {% layout 'layouts/main-layout.liquid' %}
2
2
  {% block %}
3
3
  <main class="Container">
4
- {% render 'partials/breadcrumb', doc: doc, site: site %}
4
+ {% render 'partials/breadcrumb', doc: doc %}
5
5
  <h1>{{ doc.title }}</h1>
6
6
  <div class="Text">{{ doc.field.htmlContent | raw }}</div>
7
7
  <p>{{ site.field.contactEmail | obfuscate: 'asLink' }}&#32;-&#32;{{ site.field.phone | obfuscate: 'asLink' }}</p>
8
- {% contactForm %}
8
+ {% out contactForm %}
9
9
  </main>
10
10
  {% endblock %}
@@ -4,32 +4,16 @@
4
4
  , site: site
5
5
  %}
6
6
  {% block %}
7
- {%
8
- getPaginatedDocs exhibitions
9
- , parentId: doc.id
10
- , pageSize: 4
11
- %}
12
7
  <div class="PageContent Container pt0">
13
- {% render 'partials/breadcrumb', doc: doc, site: site %}
8
+ {% render 'partials/breadcrumb', doc: doc %}
14
9
  <div class="PageContent-headerPage Container">
15
10
  <h1 class="PageContent-h1 upper">
16
11
  {{ doc.title }}
17
12
  </h1>
18
13
  </div>
14
+ {% set exhibitions = paginatedDocs(doc.routing.children, by: 4) %}
19
15
  <div class="Container">
20
- <div
21
- class="Grid12"
22
- data-effect="paInfiniteLoading"
23
- data-parent-id="{{ doc.id }}"
24
- data-start="{{ exhibitions.pageSize }}"
25
- data-limit="{{ exhibitions.pageSize }}"
26
- data-total="{{ exhibitions.total }}"
27
- data-template="post"
28
- >
29
- {% for exhibition in exhibitions.items %}
30
- {% render 'partials/post.public.liquid', doc: exhibition %}
31
- {% endfor %}
32
- </div>
16
+ {% out infiniteLoading(class: "Grid12", paginatedDocs: exhibitions, template: "partials/post.public") %}
33
17
  </div>
34
18
  </div>
35
19
  {% endblock %}
@@ -1,19 +1,10 @@
1
- {% layout "layouts/main-layout.liquid" doc: doc site: site %}
1
+ {% layout 'layouts/main-layout.liquid' %}
2
2
  {% block %}
3
3
  <main>
4
4
  {% if doc.featuredImage %}
5
- {%
6
- useImage smallImg image: doc.featuredImage
7
- , resize: "360x100"
8
- %}
9
- {%
10
- useImage mediumImg image: doc.featuredImage
11
- , resize: "820x150"
12
- %}
13
- {%
14
- useImage largeImg image: doc.featuredImage
15
- , resize: "1920x275"
16
- %}
5
+ {% set smallImg = image(doc.featuredImage, resize: "360x100") %}
6
+ {% set mediumImg = image(doc.featuredImage, resize: "820x150") %}
7
+ {% set largeImg = image(doc.featuredImage, resize: "1920x275") %}
17
8
 
18
9
  <picture class="HeroBanner">
19
10
  <source
@@ -46,11 +37,7 @@
46
37
  </picture>
47
38
  {% endif %}
48
39
 
49
- {%
50
- getDocs posts
51
- , parentId: site.home.posts.id
52
- , limit: 4
53
- %}
40
+ {% set posts = docs(site.home.posts.children, limit: 4) %}
54
41
  <section class="TileList Container">
55
42
  <h2>
56
43
  {{ 'Latest posts' | t }}
@@ -60,25 +47,22 @@
60
47
  {% render 'partials/post.public.liquid', doc: post %}
61
48
  {% endfor %}
62
49
  </div>
63
- {% if site.home.posts %}
64
- {% assign postsPage = site.home.posts.doc %}
50
+ {% set postsPage = doc(site.home.posts) %}
51
+ {% if postsPage %}
65
52
  <a href="{{ postsPage.url }}">
66
53
  {{ 'All posts' | t }}
67
54
  </a>
68
55
  {% endif %}
69
56
  </section>
70
57
 
71
- {% getDocs pages, parentId: site.home.pages.id %}
58
+ {% set pages = docs(site.home.pages.children) %}
72
59
  <section class="TileList Container">
73
60
  <h2>{{ 'Pages' | t }}</h2>
74
61
  <div class="Grid12">
75
62
  {% for gPage in pages %}
76
63
  <article class="Tile2 Span4">
77
64
  {% if gPage.defaultImage %}
78
- {%
79
- useImage image image: gPage.defaultImage
80
- , resize: "200x200"
81
- %}
65
+ {% set image = image(gPage.defaultImage, resize: "200x200") %}
82
66
  <img
83
67
  class="Tile2-img"
84
68
  src="{{ image.url }}"
@@ -107,10 +91,7 @@
107
91
  {% if item.type == 'partner' %}
108
92
  <div class="PartItem partner">
109
93
  {% if item.defaultImage %}
110
- {%
111
- useImage image image: item.defaultImage
112
- , resize: "200x200"
113
- %}
94
+ {% set image = image(item.defaultImage, resize: "200x200") %}
114
95
 
115
96
  <img
116
97
  src="{{ image.url }}"
@@ -137,10 +118,7 @@
137
118
  {% else %}
138
119
  <div class="PartItem sideImage">
139
120
  {% if item.defaultImage %}
140
- {%
141
- useImage image image: item.defaultImage
142
- , resize: "200x200"
143
- %}
121
+ {% set image = image(item.defaultImage, resize: "200x200") %}
144
122
 
145
123
  <img
146
124
  src="{{ image.url }}"
@@ -169,10 +147,7 @@
169
147
  {% if item.type == 'partner' %}
170
148
  <div class="PartItem partner">
171
149
  {% if item.defaultImage %}
172
- {%
173
- useImage image image: item.defaultImage
174
- , resize: "200x200"
175
- %}
150
+ {% set image = image(item.defaultImage, resize: "200x200") %}
176
151
 
177
152
  <img
178
153
  src="{{ image.url }}"
@@ -199,10 +174,7 @@
199
174
  {% else %}
200
175
  <div class="PartItem sideImage">
201
176
  {% if item.defaultImage %}
202
- {%
203
- useImage image image: item.defaultImage
204
- , resize: "200x200"
205
- %}
177
+ {% set image = image(item.defaultImage, resize: "200x200") %}
206
178
 
207
179
  <img
208
180
  src="{{ image.url }}"
@@ -1,8 +1,8 @@
1
- {% layout "layouts/main-layout.liquid" doc: doc site: site %}
1
+ {% layout 'layouts/main-layout.liquid' %}
2
2
  {% block %}
3
3
  <p>
4
4
  {% for translation in doc.translations %}
5
5
  <a href="{{ translation.url }}">{{ translation.languageLabel }}</a>
6
6
  {% endfor %}
7
7
  </p>
8
- {% endblock %}
8
+ {% endblock %}
@@ -14,11 +14,11 @@
14
14
  </head>
15
15
 
16
16
  <body>
17
- {% render 'partials/header', doc: doc, site: site %}
17
+ {% render 'partials/header', doc: doc %}
18
18
 
19
19
  {% block -%}
20
20
  {%- endblock %}
21
21
 
22
- {% render 'partials/footer', doc: doc, site: site %}
22
+ {% render 'partials/footer', doc: doc %}
23
23
  </body>
24
24
  </html>
@@ -1,12 +1,12 @@
1
- {% layout "layouts/main-layout.liquid" doc: doc site: site %}
1
+ {% layout 'layouts/main-layout.liquid' %}
2
2
  {% block %}
3
3
  <main class="Container">
4
- {% render 'partials/breadcrumb', doc: doc, site: site %}
4
+ {% render 'partials/breadcrumb', doc: doc %}
5
5
  {% if doc.featuredImage %}
6
6
  <div class="HeroBanner">
7
- {% useImage smallImg, image: doc.featuredImage, resize: "324x200" %}
8
- {% useImage mediumImg, image: doc.featuredImage, resize: "1024x545" %}
9
- {% useImage largeImg, image: doc.featuredImage, resize: "1200x545" %}
7
+ {% set smallImg = image(doc.featuredImage, resize: "324x200") %}
8
+ {% set mediumImg = image(doc.featuredImage, resize: "1024x545") %}
9
+ {% set largeImg = image(doc.featuredImage, resize: "1200x545") %}
10
10
 
11
11
  <picture>
12
12
  <source
@@ -45,9 +45,9 @@
45
45
  {% if doc.field.gallery %}
46
46
  <div class="Gallery ">
47
47
  {% for media in doc.field.gallery %}
48
- {% useImage smallImg, image: media, resize: "324x200" %}
49
- {% useImage mediumImg, image: media, resize: "1024x545" %}
50
- {% useImage largeImg, image: media, resize: "1200x545" %}
48
+ {% set smallImg = image(media, resize: "324x200") %}
49
+ {% set mediumImg = image(media, resize: "1024x545") %}
50
+ {% set largeImg = image(media, resize: "1200x545") %}
51
51
 
52
52
  <picture>
53
53
  <source
@@ -89,21 +89,23 @@
89
89
  <p>testTime: {{ doc.field.testTime }}</p>
90
90
 
91
91
  <div class="Paginate Grid12">
92
- {% if doc.siblings.previous %}
93
- <a href="{{ doc.siblings.previous.url }}" class="Paginate-prev Span6">
92
+ {% set previous = doc(doc.siblings.previous) %}
93
+ {% if previous %}
94
+ <a href="{{ previous.url }}" class="Paginate-prev Span6">
94
95
  <span class="Paginate-prevBtn">
95
96
  {{ 'Previous' | t }}
96
97
  </span>
97
- <h2 class="Paginate-title EllipsisLine2">{{ doc.siblings.previous.title }}</h2>
98
+ <h2 class="Paginate-title EllipsisLine2">{{ previous.title }}</h2>
98
99
  </a>
99
100
  {% endif %}
100
101
 
101
- {% if doc.siblings.next %}
102
- <a href="{{ doc.siblings.next.url }}" class="Paginate-next Span6">
102
+ {% set next = doc(doc.siblings.next) %}
103
+ {% if next %}
104
+ <a href="{{ next.url }}" class="Paginate-next Span6">
103
105
  <span class="Paginate-nextBtn ">
104
106
  {{ 'Next' | t }}
105
107
  </span>
106
- <h2 class="Paginate-title EllipsisLine2">{{ doc.siblings.next.title }}</h2>
108
+ <h2 class="Paginate-title EllipsisLine2">{{ next.title }}</h2>
107
109
  </a>
108
110
  {% endif %}
109
111
  </div>
@@ -1,35 +1,15 @@
1
- {%
2
- layout "layouts/main-layout.liquid"
3
- , doc: doc
4
- , site: site
5
- %}
1
+ {% layout "layouts/main-layout.liquid", doc: doc %}
6
2
  {% block %}
7
- {%
8
- getPaginatedDocs pages
9
- , parentId: doc.id
10
- , pageSize: 4
11
- %}
12
3
  <div class="PageContent Container pt0">
13
- {% render 'partials/breadcrumb', doc: doc, site: site %}
4
+ {% render 'partials/breadcrumb', doc: doc %}
14
5
  <div class="PageContent-headerPage Container">
15
6
  <h1 class="PageContent-h1 upper">
16
7
  {{ doc.title }}
17
8
  </h1>
18
9
  </div>
10
+ {% set pages = paginatedDocs(doc.routing.children, by: 4) %}
19
11
  <div class="Container">
20
- <div
21
- class="Grid12"
22
- data-effect="paInfiniteLoading"
23
- data-parent-id="{{ doc.id }}"
24
- data-start="{{ pages.pageSize }}"
25
- data-limit="{{ pages.pageSize }}"
26
- data-total="{{ pages.total }}"
27
- data-template="post"
28
- >
29
- {% for page in pages.items %}
30
- {% render 'partials/post.public.liquid', doc: page, site: site %}
31
- {% endfor %}
32
- </div>
12
+ {% out infiniteLoading(class: "Grid12", paginatedDocs: pages, template: "partials/post.public") %}
33
13
  </div>
34
14
  </div>
35
15
  {% endblock %}
@@ -1,7 +1,7 @@
1
1
  <footer class="SiteFooter Container">
2
2
  <span>{{ site.field.title }}</span>
3
- {% if site.home.contactPage %}
4
- {% assign contactPage = site.home.contactPage.doc %}
3
+ {% set contactPage = doc(site.home.contactPage) %}
4
+ {% if contactPage %}
5
5
  <a class="BoringBorders" href="{{ contactPage.url }}">{{ contactPage.title }}</a>
6
6
  {% endif %}
7
7
  </footer>
@@ -6,10 +6,7 @@
6
6
  title="{{ "Aller à l'accueil" | t }}"
7
7
  >
8
8
  {% if site.field.logo %}
9
- {%
10
- useImage logo image: site.field.logo
11
- , resize: "x50"
12
- %}
9
+ {% set logo = image(site.field.logo, resize: "x50") %}
13
10
  <img
14
11
  src="{{ logo.url }}"
15
12
  alt=""
@@ -30,32 +27,32 @@
30
27
  <li>
31
28
  <a class="BoringBorders" data-menu-item-id="{{ site.home.id }}" href="{{ site.home.url }}">{{ 'Home' | t }}</a>
32
29
  </li>
33
- {% if site.home.posts %}
34
- {% assign postsPage = site.home.posts.doc %}
30
+ {% set postsPage = doc(site.home.posts) %}
31
+ {% if postsPage %}
35
32
  <li>
36
33
  <a class="BoringBorders" data-menu-item-id="{{ postsPage.id }}" href="{{ postsPage.url }}">
37
34
  {{- postsPage.title -}}
38
35
  </a>
39
36
  </li>
40
37
  {% endif %}
41
- {% if site.home.exhibition %}
42
- {% assign exhibitionPage = site.home.exhibition.doc %}
38
+ {% set exhibitionPage = doc(site.home.exhibition) %}
39
+ {% if exhibitionPage %}
43
40
  <li>
44
41
  <a class="BoringBorders" data-menu-item-id="{{ exhibitionPage.id }}" href="{{ exhibitionPage.url }}">
45
42
  {{- exhibitionPage.title -}}
46
43
  </a>
47
44
  </li>
48
45
  {% endif %}
49
- {% if site.home.aboutPage %}
50
- {% assign aboutPage = site.home.aboutPage.doc %}
46
+ {% set aboutPage = doc(site.home.aboutPage) %}
47
+ {% if aboutPage %}
51
48
  <li>
52
49
  <a class="BoringBorders" data-menu-item-id="{{ aboutPage.id }}" href="{{ aboutPage.url }}">
53
50
  {{- aboutPage.title -}}
54
51
  </a>
55
52
  </li>
56
53
  {% endif %}
57
- {% if site.home.contactPage %}
58
- {% assign contactPage = site.home.contactPage.doc %}
54
+ {% set contactPage = doc(site.home.contactPage) %}
55
+ {% if contactPage %}
59
56
  <li>
60
57
  <a class="BoringBorders" data-menu-item-id="{{ contactPage.id }}" href="{{ contactPage.url }}">
61
58
  {{- contactPage.field.buttonLabel -}}
@@ -64,18 +61,13 @@
64
61
  {% endif %}
65
62
  </ul>
66
63
  </nav>
67
- {% if site.home.searchPage %}
68
- {% assign searchPage = site.home.searchPage.doc %}
69
- <div>
70
- <div
71
- class="HeaderBar-searchBtn"
72
- data-effect="paSearchOpener"
73
- data-icon-color=""
74
- data-search-url="{{ searchPage.url }}"
75
- ></div>
76
- <div data-mobile-menu="button"></div>
77
- </div>
78
- {% endif %}
64
+ <div>
65
+ {% set searchPage = doc(site.home.searchPage) %}
66
+ {% if searchPage %}
67
+ {% out searchOpener(url: searchPage.url, class: "HeaderBar-searchBtn") %}
68
+ {% endif %}
69
+ <div data-mobile-menu="button"></div>
70
+ </div>
79
71
  </header>
80
72
  <div
81
73
  class="_paMobileMenu"
@@ -1,9 +1,6 @@
1
1
  <article class="Tile Span6 Grid6">
2
2
  {% if doc.defaultImage %}
3
- {%
4
- useImage image image: doc.defaultImage
5
- , resize: "345x295"
6
- %}
3
+ {% set image = image(doc.defaultImage, resize: "345x295") %}
7
4
  <div class="Span3">
8
5
  <img
9
6
  class="Tile-img"
@@ -1,9 +1,6 @@
1
1
  <article class="ResultItem Tile Grid12">
2
2
  {% if doc.defaultImage %}
3
- {%
4
- useImage image image: doc.defaultImage
5
- , resize: "345x295"
6
- %}
3
+ {% set image = image(doc.defaultImage, resize: "345x295") %}
7
4
  <div class="Span3">
8
5
  <img
9
6
  class="Tile-img"
@@ -1,7 +1,7 @@
1
- {% layout "layouts/main-layout.liquid" doc: doc site: site %}
1
+ {% layout 'layouts/main-layout.liquid' %}
2
2
  {% block %}
3
3
  <div class="Container">
4
- {% render 'partials/breadcrumb', doc: doc, site: site %}
4
+ {% render 'partials/breadcrumb', doc: doc %}
5
5
  <h1>{{ doc.title }}</h1>
6
6
 
7
7
  {% if doc.field.tags %}
@@ -20,9 +20,9 @@
20
20
 
21
21
  {% if doc.featuredImage %}
22
22
  <div class="HeroBanner">
23
- {% useImage smallImg image: doc.featuredImage resize: "324x200" %}
24
- {% useImage mediumImg image: doc.featuredImage resize: "1024x545" %}
25
- {% useImage largeImg image: doc.featuredImage resize: "1200x545" %}
23
+ {% set smallImg = image(doc.featuredImage, resize: "324x200") %}
24
+ {% set mediumImg = image(doc.featuredImage, resize: "1024x545") %}
25
+ {% set largeImg = image(doc.featuredImage, resize: "1200x545") %}
26
26
 
27
27
  <picture>
28
28
  <source
@@ -51,21 +51,23 @@
51
51
  {% endif %}
52
52
  <div class="Container Text selfContained justified">{{ doc.field.htmlContent | raw }}</div>
53
53
  <div class="Paginate Grid12">
54
- {% if doc.siblings.previous %}
55
- <a href="{{ doc.siblings.previous.url }}" class="Paginate-prev Span6">
54
+ {% set previous = doc(doc.siblings.previous) %}
55
+ {% if previous %}
56
+ <a href="{{ previous.url }}" class="Paginate-prev Span6">
56
57
  <span class="Paginate-prevBtn">
57
58
  {{ 'Previous' | t }}
58
59
  </span>
59
- <h2 class="Paginate-title EllipsisLine2">{{ doc.siblings.previous.title }}</h2>
60
+ <h2 class="Paginate-title EllipsisLine2">{{ previous.title }}</h2>
60
61
  </a>
61
62
  {% endif %}
62
63
 
63
- {% if doc.siblings.next %}
64
- <a href="{{ doc.siblings.next.url }}" class="Paginate-next Span6">
64
+ {% set next = doc(doc.siblings.next) %}
65
+ {% if next %}
66
+ <a href="{{ next.url }}" class="Paginate-next Span6">
65
67
  <span class="Paginate-nextBtn ">
66
68
  {{ 'Next' | t }}
67
69
  </span>
68
- <h2 class="Paginate-title EllipsisLine2">{{ doc.siblings.next.title }}</h2>
70
+ <h2 class="Paginate-title EllipsisLine2">{{ next.title }}</h2>
69
71
  </a>
70
72
  {% endif %}
71
73
  </div>
@@ -1,35 +1,15 @@
1
- {%
2
- layout "layouts/main-layout.liquid"
3
- , doc: doc
4
- , site: site
5
- %}
1
+ {% layout "layouts/main-layout.liquid", doc: doc %}
6
2
  {% block %}
7
- {%
8
- getPaginatedDocs posts
9
- , parentId: doc.id
10
- , pageSize: 4
11
- %}
12
3
  <div class="PageContent Container pt0">
13
- {% render 'partials/breadcrumb', doc: doc, site: site %}
4
+ {% render 'partials/breadcrumb', doc: doc %}
14
5
  <div class="PageContent-headerPage Container">
15
6
  <h1 class="PageContent-h1 upper">
16
7
  {{ doc.title }}
17
8
  </h1>
18
9
  </div>
10
+ {% set posts = paginatedDocs(doc.routing.children, by: 4) %}
19
11
  <div class="Container">
20
- <div
21
- class="Grid12"
22
- data-effect="paInfiniteLoading"
23
- data-parent-id="{{ doc.id }}"
24
- data-start="{{ posts.pageSize }}"
25
- data-limit="{{ posts.pageSize }}"
26
- data-total="{{ posts.total }}"
27
- data-template="post"
28
- >
29
- {% for post in posts.items %}
30
- {% render 'partials/post.public.liquid', doc: post, site: site %}
31
- {% endfor %}
32
- </div>
12
+ {% out infiniteLoading(class: "Grid12", paginatedDocs: posts, template: "partials/post.public") %}
33
13
  </div>
34
14
  </div>
35
15
  {% endblock %}
@@ -1,13 +1,13 @@
1
1
  {% layout 'layouts/main-layout.liquid' %}
2
2
  {% block %}
3
3
  <div class="Container w100">
4
- {% render 'partials/breadcrumb', doc: doc, site: site %}
4
+ {% render 'partials/breadcrumb', doc: doc %}
5
5
  {% if doc.featuredImage %}
6
6
  <div class="HeroBanner">
7
7
  <picture>
8
- {% useImage smallImg, image: doc.featuredImage resize: "324x200" %}
9
- {% useImage mediumImg, image: doc.featuredImage resize: "1024x545" %}
10
- {% useImage largeImg, image: doc.featuredImage resize: "1200x545" %}
8
+ {% set smallImg = image(doc.featuredImage, resize: "324x200") %}
9
+ {% set mediumImg = image(doc.featuredImage, resize: "1024x545") %}
10
+ {% set largeImg = image(doc.featuredImage, resize: "1200x545") %}
11
11
 
12
12
  <source
13
13
  width="{{ smallImg.width }}"
@@ -41,10 +41,6 @@
41
41
  {% endif %}
42
42
  <h1>{{ doc.title }}</h1>
43
43
  <div class="Text">{{ doc.field.htmlContent | raw }}</div>
44
- <div
45
- data-effect="paSearchApp"
46
- data-template="result-item"
47
- data-limit="1"
48
- ></div>
44
+ {% out searchApp(template: "partials/result-item.public", by: 1) %}
49
45
  </div>
50
46
  {% endblock %}
@@ -4,32 +4,16 @@
4
4
  , site: site
5
5
  %}
6
6
  {% block %}
7
- {%
8
- getPaginatedDocs shelves
9
- , parentId: doc.id
10
- , limit: 4
11
- %}
12
7
  <div class="PageContent Container pt0">
13
- {% render 'partials/breadcrumb', doc: doc, site: site %}
8
+ {% render 'partials/breadcrumb', doc: doc %}
14
9
  <div class="PageContent-headerPage Container">
15
10
  <h1 class="PageContent-h1 upper">
16
11
  {{ doc.title }}
17
12
  </h1>
18
13
  </div>
19
14
  <div class="Container">
20
- <div
21
- class="Grid12"
22
- data-effect="paInfiniteLoading"
23
- data-parent-id="{{ doc.id }}"
24
- data-start="{{ shelves.pageSize }}"
25
- data-limit="{{ shelves.pageSize }}"
26
- data-total="{{ shelves.total }}"
27
- data-template="post"
28
- >
29
- {% for shelf in shelves.items %}
30
- {% render 'partials/post.public.liquid', doc: shelf %}
31
- {% endfor %}
32
- </div>
15
+ {% set shelves = paginatedDocs(doc.routing.children, by: 4) %}
16
+ {% out infiniteLoading(class: "Grid12", paginatedDocs: shelves, template: "partials/post.public") %}
33
17
  </div>
34
18
  </div>
35
19
  {% endblock %}
@@ -1,7 +1,10 @@
1
- {% layout "layouts/main-layout.liquid" doc: doc site: site %}
1
+ {% layout 'layouts/main-layout.liquid' %}
2
2
  {% block %}
3
- <main class="Container">
4
- <h1>{{ doc.title }}</h1>
5
- <div class="Container Text selfContained justified">{{ doc.field.htmlContent | raw }}</div>
6
- </main>
7
- {% endblock %}
3
+ <main class="Container">
4
+ <h1>{{ doc.title }}</h1>
5
+ <div class="Container Text selfContained justified">{{ doc.field.htmlContent | raw }}</div>
6
+
7
+ {% set posts = paginatedDocs(site.home.posts.children, by: 4, term: doc, labeledWith: "tags") %}
8
+ {% out infiniteLoading(class: "Grid12", paginatedDocs: posts, template: "partials/post.public") %}
9
+ </main>
10
+ {% endblock %}
@@ -1,12 +1,12 @@
1
- {% layout "layouts/main-layout.liquid" doc: doc site: site %}
1
+ {% layout 'layouts/main-layout.liquid' %}
2
2
  {% block %}
3
3
  <main class="Container">
4
- {% render 'partials/breadcrumb', doc: doc, site: site %}
4
+ {% render 'partials/breadcrumb', doc: doc %}
5
5
  {% if doc.featuredImage %}
6
6
  <div class="HeroBanner">
7
- {% useImage smallImg image: doc.featuredImage resize: "324x200" %}
8
- {% useImage mediumImg image: doc.featuredImage resize: "1024x545" %}
9
- {% useImage largeImg image: doc.featuredImage resize: "1200x545" %}
7
+ {% set smallImg = image(doc.featuredImage, resize: "324x200") %}
8
+ {% set mediumImg = image(doc.featuredImage, resize: "1024x545") %}
9
+ {% set largeImg = image(doc.featuredImage, resize: "1200x545") %}
10
10
 
11
11
  <picture>
12
12
  <source
@@ -46,21 +46,23 @@
46
46
 
47
47
  <div class="Container Text selfContained justified">{{ doc.field.htmlContent | raw }}</div>
48
48
  <div class="Paginate Grid12">
49
- {% if doc.siblings.previous %}
50
- <a href="{{ doc.siblings.previous.url }}" class="Paginate-prev Span6">
49
+ {% set previous = doc(doc.siblings.previous) %}
50
+ {% if previous %}
51
+ <a href="{{ previous.url }}" class="Paginate-prev Span6">
51
52
  <span class="Paginate-prevBtn">
52
53
  {{ 'Previous' | t }}
53
54
  </span>
54
- <h2 class="Paginate-title EllipsisLine2">{{ doc.siblings.previous.title }}</h2>
55
+ <h2 class="Paginate-title EllipsisLine2">{{ previous.title }}</h2>
55
56
  </a>
56
57
  {% endif %}
57
58
 
58
- {% if doc.siblings.next %}
59
- <a href="{{ doc.siblings.next.url }}" class="Paginate-next Span6">
59
+ {% set next = doc(doc.siblings.next) %}
60
+ {% if next %}
61
+ <a href="{{ next.url }}" class="Paginate-next Span6">
60
62
  <span class="Paginate-nextBtn ">
61
63
  {{ 'Next' | t }}
62
64
  </span>
63
- <h2 class="Paginate-title EllipsisLine2">{{ doc.siblings.next.title }}</h2>
65
+ <h2 class="Paginate-title EllipsisLine2">{{ next.title }}</h2>
64
66
  </a>
65
67
  {% endif %}
66
68
  </div>