Skip to content

Commit 6c18ece

Browse files
committed
new version
1 parent f941a69 commit 6c18ece

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ All notable changes to this project will be documented in this file.
66
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this
77
project adheres to [Semantic Versioning](http://semver.org/).
88

9+
## [0.16.1] - 2025-07-03
10+
### Fixed
11+
- menu_links added through the CMS [#39]
12+
- Preview the homepage while editing the settings in the CMS.
13+
914
## [0.16.0] - 2025-05-07
1015
### Added
1116
- Paginate the post of a tag
@@ -268,7 +273,9 @@ First version
268273
[#27]: https://github.com/lumeland/theme-simple-blog/issues/27
269274
[#34]: https://github.com/lumeland/theme-simple-blog/issues/34
270275
[#35]: https://github.com/lumeland/theme-simple-blog/issues/35
276+
[#39]: https://github.com/lumeland/theme-simple-blog/issues/39
271277

278+
[0.16.1]: https://github.com/lumeland/theme-simple-blog/compare/v0.16.0...v0.16.1
272279
[0.16.0]: https://github.com/lumeland/theme-simple-blog/compare/v0.15.10...v0.16.0
273280
[0.15.10]: https://github.com/lumeland/theme-simple-blog/compare/v0.15.9...v0.15.10
274281
[0.15.9]: https://github.com/lumeland/theme-simple-blog/compare/v0.15.8...v0.15.9

_cms.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import lumeCMS from "lume/cms/mod.ts";
2-
import { Field } from "lume/cms/types.ts";
32

43
const cms = lumeCMS();
54

6-
const url: Field = {
5+
const url: Lume.CMS.Field = {
76
name: "url",
87
type: "text",
98
description: "The public URL of the page. Leave empty to use the file path.",
@@ -23,10 +22,12 @@ const url: Field = {
2322
},
2423
};
2524

26-
cms.document(
27-
"settings: Global settings for the site",
28-
"src:_data.yml",
29-
[
25+
cms.document({
26+
name: "settings",
27+
description: "Global settings for the site.",
28+
store: "src:_data.yml",
29+
url: "/",
30+
fields: [
3031
{
3132
name: "lang",
3233
type: "text",
@@ -80,7 +81,7 @@ cms.document(
8081
],
8182
},
8283
],
83-
);
84+
});
8485

8586
cms.collection(
8687
"posts: Blog posts",

0 commit comments

Comments
 (0)