squarespace 多索引页面样式
squarespace multiple index page styles
Squarespace 文档说
Each template family has its own Index style that falls into one of three designs: Grid, Stacked, Slideshow.
在 index.conf 中,我看到我可以更改 indexType,我想我也可以更改布局以表示网格。但我也在使用堆叠布局。
有什么方法可以定义两个模板样式以在不同的索引页面上使用?
{
"title" : "Index",
"newTitle": "New Index",
"folder": true,
"fullData": true,
"acceptTypes" : [ "page", "gallery" ],
"addText": "Add Section",
"icon": "stacked",
"index" : true,
"indexType": "stacked"
}
是的,您可以通过定义两个索引 collection 类型来实现,每个类型都有自己的 .conf
、.list
、and/or .item
文件。您可以将一个保留为默认 index.*
,然后通过 copy/pasting 这些相同的文件创建 a custom collection,并将它们命名为 indexgrid.*
。然后,更新 indexgrid.conf
文件中的必要值(标题、图标和索引类型)。
当然,您可能会从具有 grid-based 索引页的模板中复制实际的 grid-based .list
文件。这样您就不必为网格索引编写自己的 HTML。
完成后,上传您的更改(并刷新您的 Squarespace 编辑 window),然后您将能够 select 在 "Index" 和 [=29= 之间](或您在 'title' 属性中键入的任何内容)在创建新页面时。
您当然可以将 index.*
文件重命名为 indexstacked.*
,然后根据需要将标题属性设置为 "Index-Stacked"。这样你就不必记住普通 "Index" 页面类型是 "stacked".
Squarespace 文档说
Each template family has its own Index style that falls into one of three designs: Grid, Stacked, Slideshow.
在 index.conf 中,我看到我可以更改 indexType,我想我也可以更改布局以表示网格。但我也在使用堆叠布局。
有什么方法可以定义两个模板样式以在不同的索引页面上使用?
{
"title" : "Index",
"newTitle": "New Index",
"folder": true,
"fullData": true,
"acceptTypes" : [ "page", "gallery" ],
"addText": "Add Section",
"icon": "stacked",
"index" : true,
"indexType": "stacked"
}
是的,您可以通过定义两个索引 collection 类型来实现,每个类型都有自己的 .conf
、.list
、and/or .item
文件。您可以将一个保留为默认 index.*
,然后通过 copy/pasting 这些相同的文件创建 a custom collection,并将它们命名为 indexgrid.*
。然后,更新 indexgrid.conf
文件中的必要值(标题、图标和索引类型)。
当然,您可能会从具有 grid-based 索引页的模板中复制实际的 grid-based .list
文件。这样您就不必为网格索引编写自己的 HTML。
完成后,上传您的更改(并刷新您的 Squarespace 编辑 window),然后您将能够 select 在 "Index" 和 [=29= 之间](或您在 'title' 属性中键入的任何内容)在创建新页面时。
您当然可以将 index.*
文件重命名为 indexstacked.*
,然后根据需要将标题属性设置为 "Index-Stacked"。这样你就不必记住普通 "Index" 页面类型是 "stacked".