You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,9 @@ It supports YAML front-matter in the markdown files. All front-matter attributes
47
47
48
48
CommonMark and GitHub Flavored Markdown (GFM) are supported. Syntax highlighting for code blocks is also included. Some additional extensions are also supported such as custom attributes.
49
49
50
+
51
+
An optional web component `<show-meta>` is also provided to display the current page's metadata (front-matter attributes). This is useful for debugging and development.
52
+
50
53
See the [node documentation](./docs/nodes/uib-markweb.md) for full details.
Copy file name to clipboardExpand all lines: docs/nodes/uib-markweb.md
+21-15Lines changed: 21 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: uib-markweb - Dynamic web sites using Markdown
3
3
description: >
4
4
The `uib-markweb` node allows you to create dynamic web sites using Markdown files.
5
5
created: 2026-01-09 15:10:14
6
-
updated: 2026-02-01 15:37:55
6
+
updated: 2026-02-02 16:10:39
7
7
status: Release
8
8
since: v7.6.0
9
9
---
@@ -74,32 +74,38 @@ These provide more complex processing than simple variable replacement. They are
74
74
75
75
These provide simple variable replacement from front-matter and global/system fields. They are enclosed in `{{...}}` tags.
76
76
77
-
All front-matter fields from the Markdown files can be used as variables. Some common ones are:
77
+
All front-matter fields from the Markdown files can be used as variables. Some common ones are listed here.
78
+
79
+
If not provided in the front-matter, the following default fields are always available, generated from the filing system information of the source Markdown files:
78
80
79
81
*`title` - The title of the page.
80
-
*`description` - The description of the page.
81
-
*`author` - The author of the page.
82
82
*`created` - The creation date of the page.
83
83
*`updated` - The last updated date of the page.
84
-
*`status` - The status of the page. E.g., `draft`, `published`, etc.
85
-
*`tags` - The list of tags of the page.
86
-
*`category` - The category of the page.
87
84
88
-
In addition, a global JSON config file is provided, the default version adds, you may override these in `global-attributes.json` in the config folder:
85
+
From system data and not overridable by front-matter:
86
+
87
+
*`depth` - How deep in the folder structure the page is.
88
+
*`path` - The current page path relative to the site root.
89
+
*`toUrl` - The resource URL of the current page relative to the site root.
90
+
*`fsMtimeMs` - The last modified time of the source file in milliseconds since epoch. (Used internally checking for file updates).
91
+
*`type` - The type of page: `file` or `folder`.
89
92
90
-
*`status` - The default page status if pages don't provide one. `Draft`.
93
+
Provided by the default global config file but overridable by front-matter. Additional ones may be added in your own `global-attributes.json` file:
91
94
92
-
*From system data:
95
+
*`status` - The status of the page. E.g., `draft`, `published`, etc. *Default is `draft`.*
93
96
94
-
*`depth` - How deep in the folder structure the page is.
95
-
*`path` - The current page path relative to the site root.
96
-
*`toUrl` - The resource URL of the current page relative to the site root.
97
+
Other commonly used front-matter fields you may wish to include in your Markdown files:
98
+
99
+
*`description` - The description of the page.
100
+
*`author` - The author of the page.
101
+
*`tags` - The list of tags of the page.
102
+
*`category` - The category of the page.
97
103
98
104
* Possible future globals:
99
105
100
106
*`template` - A different HTML template to the default to allow for different page layouts.
101
-
*`siteTitle` - The site title from global config.
102
-
*`siteDescription` - The site description from global config.
107
+
*`siteTitle` - The site title from global config. (Read-only).
108
+
*`siteDescription` - The site description from global config. (Read-only).
Copy file name to clipboardExpand all lines: docs/roadmap/next.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,22 +26,27 @@ A node that creates a website out of a folder of markdown content.
26
26
27
27
*[ ]~~Check if return msgs get clientId, etc.~~ They don't, should they?
28
28
*[ ] Indexes cannot currently deal with rename or delete events.
29
+
*[ ] Generate title, created, updated from file details if not in front-matter.
30
+
*[ ] Watcher for config folder.
31
+
*[ ] Cache the default config folder files to avoid re-reading on every page load.
32
+
*[ ] Watcher for default config folder?
33
+
*[ ] Make sure nav and index are rebuilt on file changes.
29
34
30
35
#### Wish list:
31
36
32
37
*[x] Level specifier on nav element to limit depth and start level.
33
38
*[x] On scroll, when nav menu scrolls offscreen, collapse it to a burger menu and keep it visible.
34
39
*[x] Use server fs watch to provide live updates to pages. Send msg to ALL connected clients when a file changes. Clients can then decide what to do (e.g. reload if they are viewing that page).
40
+
*[x] Allow source folder to be outside the userDir folder.
35
41
36
42
*[-] Auto-menu generation.
37
43
*[x] Horizontal
38
44
*[ ] Vertical options.
39
45
40
-
*[ ]Allow source folder to be outside the userDir folder.
46
+
*[ ]Add watcher to the page template and global attributes files to auto-reload changes.
41
47
*[ ] Improve HTML styling.
42
48
*[ ] Page aliases. Allow front-matter `alias` field to specify alternative url paths for a page. Also have a master map.
43
49
*[ ] Add manual index-rebuild button to Editor.
44
-
*[ ] Add watcher to the page template and global attributes files to auto-reload changes.
0 commit comments