@paroicms/site-generator-plugin 0.28.2 → 0.29.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.
@@ -67,7 +67,7 @@ function templateOfMainMenu(ctx) {
67
67
  const menuItems = homeType.routingChildren?.filter((typeName) => typeName !== "search" && typeName !== "searchPage");
68
68
  if (!menuItems || menuItems.length === 0)
69
69
  return;
70
- const itemTemplates = menuItems.map((typeName) => `{% set ${typeName} = doc(site.home.${typeName}) %}
70
+ const itemTemplates = menuItems.map((typeName) => `{% set ${typeName} = doc(site.home.routing.${typeName}) %}
71
71
  {% if ${typeName} %}
72
72
  <a
73
73
  data-menu-item-id="{{ ${typeName}.id }}"
@@ -89,7 +89,7 @@ function templateOfSearchOpener(ctx) {
89
89
  if (!typeName)
90
90
  return;
91
91
  return `<div class="Row center">
92
- {% set ${typeName} = doc(site.home.${typeName}) %}
92
+ {% set ${typeName} = doc(site.home.routing.${typeName}) %}
93
93
  {% if ${typeName} %}
94
94
  {% out searchOpener(url: ${typeName}.url, iconColor: "#fff") %}
95
95
  {% endif %}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paroicms/site-generator-plugin",
3
- "version": "0.28.2",
3
+ "version": "0.29.0",
4
4
  "description": "ParoiCMS Site Generator Plugin",
5
5
  "keywords": [
6
6
  "paroicms",