diff --git a/docs/content/docs/index.html b/docs/content/docs/index.html index d8c6718..81c9000 100644 --- a/docs/content/docs/index.html +++ b/docs/content/docs/index.html @@ -510,29 +510,29 @@ } .theme-dark [z-load*="/components/menu-overlay"] div[z-field="menu_overlay"] { background: radial-gradient(circle at bottom, black, #000000dd, #00000077, transparent)!important; -}
As described in the previous chapter, content pages are simple text files implemented using Markdown syntax, and that have front matter data where is possible to specify the page layout to be used, metadata and other options for the current content.
Example: index.md
---
+} Page editing and options
As described in the previous chapter, content pages are simple text files written using Markdown syntax, and also have front matter data where is possible to specify the page layout, metadata, and other options for the current content.
Example: index.md
---
layout: basic.liquid
tags: blog
group: blog
@@ -531,7 +531,7 @@
# Hello World!
Welcome to my blog about...
-
Front matter data
As shown in the example above, front matter data is enclosed in a block delimited by the sequence: ---
. Inside this block, data can be specified in the form <field_name>: <value>
, using the YAML syntax.
The following is a list of fields that can be used in the front matter.
layout
Sets the page layout to be used for the current content. Different page layouts are available depending on the starter template that is being used. The base zuix-web-starter
includes only one kind of page layout:
basic.liquid
(the one used for this page)homepage.liquid
(the home page layout)
To see layouts from other starter templates, referrer to the documentation included in the online demos of each template.
Adding a custom layout
Layouts are located in the ./source/_inc/layouts
folder.
A layout consists of a .liquid
file and, optionally, a folder with the same base name of the layout file, that may contain additional files required for the layout implementation.
So, to create a new layout, add <layout_name>.liquid
file to the ./source/_inc/layouts
folder.
Then, to use the new layout, specify its name in the layout
field of the page's front matter.
The ./source/_inc
folder, is also used to place common page's bits that can be reused across different layouts:
head_open.liquid
This file contains the initial part of the HTML
document with head
section and styles/scripts inclusion.head_close.html
This file just contains the </head>
closing tag, any custom code can be added to the head
section in the layout
template before this closing tagfooter.liquid
The common footer placed at the end of the page's content.body_end.liquid
This file can be used to place any common content or script before the end of the body
html_close.html
This file contains just the </html>
closing tag.
Example of a minimal layout template:
./source/_inc/layouts/my-new-layout.liquid
{% include "head_open.liquid" %}
+
Front matter data
As shown in the example above, front matter data is enclosed in a block delimited by the sequence: ---
. Inside this block, data can be specified in the form <field_name>: <value>
, using the YAML syntax.
The following fields can be used in the front matter:
layout
Sets the page layout to be used for the current content. Different page layouts are available depending on the starter template that is being used. The base zuix-web-starter
includes only one kind of page layout:
basic.liquid
(the one used for this page)homepage.liquid
(the home page layout)
To see layouts from other starter templates, referrer to the documentation included in the online demos of each template.
Adding a custom layout
Layouts are located in the ./source/_inc/layouts
folder.
A layout consists of a .liquid
file and, optionally, a folder with the same base name of the layout file, that may contain additional files required for the layout implementation.
So, to create a new layout, add <layout_name>.liquid
file to the ./source/_inc/layouts
folder.
Then, to use the new layout, specify its name in the layout
field of the page's front matter.
The ./source/_inc
folder, is also used to place common page's bits that can be reused across different layouts:
head_open.liquid
This file contains the initial part of the HTML
document with head
section and styles/scripts inclusion.head_close.html
This file just contains the </head>
closing tag, any custom code can be added to the head
section in the layout
template before this closing tagfooter.liquid
The common footer placed at the end of the page's content.body_end.liquid
This file can be used to place any common content or script before the end of the body
html_close.html
This file contains just the </html>
closing tag.
Example of a minimal layout template:
./source/_inc/layouts/my-new-layout.liquid
{% include "head_open.liquid" %}
<style>
{% include "./my-new-layout/style.css" %}
</style>
diff --git a/docs/feed/rss.xml b/docs/feed/rss.xml
index 37dfd40..0eecb24 100644
--- a/docs/feed/rss.xml
+++ b/docs/feed/rss.xml
@@ -7,8 +7,8 @@
en
- Tue, 30 May 2023 18:14:18 +0200
- Tue, 30 May 2023 18:14:18 +0200
+ Thu, 06 Jul 2023 16:19:22 +0200
+ Thu, 06 Jul 2023 16:19:22 +0200
Web Starter
https://zuixjs.github.io/zuix-web-starter//images/icons/icon-152x152.png
@@ -19,7 +19,7 @@
https://zuixjs.github.io/zuix-web-starter//search/
https://zuixjs.github.io/zuix-web-starter//search/
Search this website
- Tue, 30 May 2023 18:14:18 +0200
+ Thu, 06 Jul 2023 16:19:22 +0200
@@ -54,7 +54,7 @@
https://zuixjs.github.io/zuix-web-starter//content/docs/
https://zuixjs.github.io/zuix-web-starter//content/docs/
No description provided.
- Tue, 30 May 2023 18:14:18 +0200
+ Thu, 06 Jul 2023 16:19:22 +0200
@@ -89,7 +89,7 @@
https://zuixjs.github.io/zuix-web-starter//
https://zuixjs.github.io/zuix-web-starter//
About this web starter and how to get started with it.
- Tue, 30 May 2023 18:14:18 +0200
+ Thu, 06 Jul 2023 16:19:22 +0200
diff --git a/docs/js/zuix/zuix-bundler.js b/docs/js/zuix/zuix-bundler.js
index e380a76..4e308c7 100644
--- a/docs/js/zuix/zuix-bundler.js
+++ b/docs/js/zuix/zuix-bundler.js
@@ -1,4 +1,4 @@
-/* zuix.js v1.1.28 23.05.24 11:18:24 */
+/* zuix.js v1.1.29 23.06.22 15:11:52 */
var zuix;
/******/ (function() { // webpackBootstrap
diff --git a/docs/js/zuix/zuix-bundler.min.js b/docs/js/zuix/zuix-bundler.min.js
index 5f84b51..d6fa33a 100644
--- a/docs/js/zuix/zuix-bundler.min.js
+++ b/docs/js/zuix/zuix-bundler.min.js
@@ -1,4 +1,4 @@
-/* zuix.js v1.1.28 23.05.24 11:18:24 */
+/* zuix.js v1.1.29 23.06.22 15:11:52 */
/*! For license information please see zuix-bundler.min.js.LICENSE.txt */
var zuix;!function(){var e={460:function(e,t,n){"use strict";e.exports=n(94)()},35:function(e,t,n){var o,r=r||function(e){"use strict";if(!(void 0===e||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var t=e.document,n=function(){return e.URL||e.webkitURL||e},o=t.createElementNS("http://www.w3.org/1999/xhtml","a"),r="download"in o,i=/constructor/i.test(e.HTMLElement)||e.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent),u=function(t){(e.setImmediate||e.setTimeout)((function(){throw t}),0)},s=function(e){setTimeout((function(){"string"==typeof e?n().revokeObjectURL(e):e.remove()}),4e4)},c=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},l=function(t,l,d){d||(t=c(t));var f,p=this,z="application/octet-stream"===t.type,v=function(){!function(e,t,n){for(var o=(t=[].concat(t)).length;o--;){var r=e["on"+t[o]];if("function"==typeof r)try{r.call(e,e)}catch(e){u(e)}}}(p,"writestart progress write writeend".split(" "))};if(p.readyState=p.INIT,r)return f=n().createObjectURL(t),void setTimeout((function(){var e,t;o.href=f,o.download=l,e=o,t=new MouseEvent("click"),e.dispatchEvent(t),v(),s(f),p.readyState=p.DONE}));!function(){if((a||z&&i)&&e.FileReader){var o=new FileReader;return o.onloadend=function(){var t=a?o.result:o.result.replace(/^data:[^;]*;/,"data:attachment/file;");e.open(t,"_blank")||(e.location.href=t),t=void 0,p.readyState=p.DONE,v()},o.readAsDataURL(t),void(p.readyState=p.INIT)}f||(f=n().createObjectURL(t)),z?e.location.href=f:e.open(f,"_blank")||(e.location.href=f),p.readyState=p.DONE,v(),s(f)}()},d=l.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,n){return t=t||e.name||"download",n||(e=c(e)),navigator.msSaveOrOpenBlob(e,t)}:(d.abort=function(){},d.readyState=d.INIT=0,d.WRITING=1,d.DONE=2,d.error=d.onwritestart=d.onprogress=d.onwrite=d.onabort=d.onerror=d.onwriteend=null,function(e,t,n){return new l(e,t||e.name||"download",n)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);e.exports?e.exports.saveAs=r:null!==n.amdD&&null!==n.amdO&&(void 0===(o=function(){return r}.call(t,n,t,e))||(e.exports=o))},458:function(e){const t=Math.floor(1099511627776*Math.random()).toString(16),n=new RegExp('"@__(F|R)-'+t+'-(\\d+)__@"',"g"),o=/\{\s*\[native code\]\s*\}/g,r=/[<>\/\u2028\u2029]/g,i={"<":"\\u003C",">":"\\u003E","/":"\\u002F","\u2028":"\\u2028","\u2029":"\\u2029"};function a(e){return i[e]}e.exports=function(e,i){i||(i={}),"number"!=typeof i&&"string"!=typeof i||(i={space:i});const u=[],s=[];let c;return c=i.isJSON&&!i.space?JSON.stringify(e):JSON.stringify(e,i.isJSON?null:function(e,n){if(!n)return n;const o=typeof n;return"object"===o?(r=n,"[object RegExp]"===Object.prototype.toString.call(r)?"@__R-"+t+"-"+(s.push(n)-1)+"__@":n):"function"===o?"@__F-"+t+"-"+(u.push(n)-1)+"__@":n;var r},i.space),"string"!=typeof c?String(c):(c=c.replace(r,a),0===u.length&&0===s.length?c:c.replace(n,(function(e,t,n){if("R"===t)return s[n].toString();const r=u[n],i=r.toString();if(o.test(i))throw new TypeError("Serializing native function: "+r.name);return i})))}},94:function(e,t,n){"use strict";const o=n(35),r=n(458),i=n(541);function a(){const e="app.bundle.js",t=zuix.bundle();let n="\n/*";n+="\n * zUIx Application Bundle",n+="\n * ",n+="\n * "+e+" generated by *zuix-bundler*",n+="\n * on "+(new Date).toISOString(),n+="\n * ",n+="\n * Resource list ("+t.length+"):",n+="\n * ";for(let e=0;e\/\u2028\u2029]/g,i={"<":"\\u003C",">":"\\u003E","/":"\\u002F","\u2028":"\\u2028","\u2029":"\\u2029"};function a(e){return i[e]}e.exports=function(e,i){i||(i={}),"number"!=typeof i&&"string"!=typeof i||(i={space:i});const u=[],s=[];let l;return l=i.isJSON&&!i.space?JSON.stringify(e):JSON.stringify(e,i.isJSON?null:function(e,n){if(!n)return n;const o=typeof n;return"object"===o?(r=n,"[object RegExp]"===Object.prototype.toString.call(r)?"@__R-"+t+"-"+(s.push(n)-1)+"__@":n):"function"===o?"@__F-"+t+"-"+(u.push(n)-1)+"__@":n;var r},i.space),"string"!=typeof l?String(l):(l=l.replace(r,a),0===u.length&&0===s.length?l:l.replace(n,(function(e,t,n){if("R"===t)return s[n].toString();const r=u[n],i=r.toString();if(o.test(i))throw new TypeError("Serializing native function: "+r.name);return i})))}},94:function(e,t,n){const o=n(35),r=n(458),i=n(541);function a(){const e="app.bundle.js",t=zuix.bundle();let n="\n/*";n+="\n * zUIx Application Bundle",n+="\n * ",n+="\n * "+e+" generated by *zuix-bundler*",n+="\n * on "+(new Date).toISOString(),n+="\n * ",n+="\n * Resource list ("+t.length+"):",n+="\n * ";for(let e=0;e` (or `z-field=""`)
+ * attribute matching the given value.
* This method implements a caching mechanism and automatic
* disposal of allocated objects and events.
*
@@ -3214,7 +3214,7 @@ zuix.context('field-test', (ctx) => {
});
*
- * @param {!string} fieldName Value to match in the *z-field* attribute
+ * @param {!string} fieldName The name of the `#` (or `z-field="name"`) attribute of the element(s) to get.
* @return {ZxQuery} A `{ZxQuery}` object wrapping the matching element(s).
*/
ComponentContext.prototype.field = function(fieldName) {
@@ -3334,9 +3334,9 @@ ComponentContext.prototype.style = function(css) {
* @example
```html
-
+
-
+
```
*
- * @param {!string} fieldName Value of *z-field* to look for
+ * @param {!string} fieldName The name of the `#` (or `z-field="name"`) attribute of the element(s) to get
* @param {!Element} [container] Starting DOM element for this search (**default:** *document*)
* @param {object} [context] The context
- * @return {ZxQuery} ZxQuery object with elements matching the given `z-field` attribute.
+ * @return {ZxQuery} A `{ZxQuery}` object wrapping the matching element(s).
* If there's just one matching element, then the returned object will also have the additional method `field(fieldName)`
* to search for fields inside the element itself.
*
@@ -6766,11 +6767,11 @@ Zuix.prototype.unload = function(context) {
- Card 1
+ Card 1
- Card 2
+ Card 2
@@ -6787,10 +6788,10 @@ Zuix.prototype.unload = function(context) {
```
- Card 1
+ Card 1
- Card 2
+ Card 2