Front matter #7

Merged
c.fahner merged 8 commits from issues/4 into main 2026-06-18 18:34:16 +02:00
Owner

Resolves #4.

Resolves #4.
c.fahner added this to the v0.3 milestone 2026-06-15 12:11:04 +02:00
Author
Owner

Also resolves #1.

Also resolves #1.
@ -0,0 +11,4 @@
* Contains all recognized front matter properties.
*
* Front matter is considered the most explicit form of document metadata. It overrides metadata found
* in HTML `<meta>` elements or anything in the `<sl-section name=meta>` element.
Author
Owner

The tag is named SLS-SECTION (not SL-SECTION).

The tag is named `SLS-SECTION` (not `SL-SECTION`).
c.fahner marked this conversation as resolved
@ -0,0 +107,4 @@
$jsonContents = \substr($contents, $jsonStart, $jsonEnd - $jsonStart + 1);
$data = \json_decode($jsonContents, associative: true);
if (!\is_array($data)) {
Author
Owner
return \is_array($data)
  ? new self($data)
  : new self([ ]);
``` return \is_array($data) ? new self($data) : new self([ ]); ```
c.fahner marked this conversation as resolved
@ -0,0 +126,4 @@
}
public static function editedAtKeys(): iterable { // @phpstan-ignore missingType.iterableValue
yield from [ [ 'edited' ], [ 'updated' ] ];
Author
Owner

These should be obtained through reflection (for every tested property).

These should be obtained through reflection (for every tested property).
c.fahner marked this conversation as resolved
c.fahner added spent time 2026-06-18 16:19:21 +02:00
20 minutes
c.fahner changed title from WIP: Front matter to Front matter 2026-06-18 18:22:21 +02:00
c.fahner deleted branch issues/4 2026-06-18 18:34:16 +02:00
c.fahner referenced this pull request from a commit 2026-06-18 18:34:18 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Total time spent: 20 minutes
c.fahner
20 minutes
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
slendium/slendium-static!7
No description provided.