-
Notifications
You must be signed in to change notification settings - Fork 37
/
frontmatter.ziggy-schema
52 lines (49 loc) · 1.56 KB
/
frontmatter.ziggy-schema
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
root = Frontmatter
///A RFC 3339 date string, eg "2024-10-24T00:00:00".
@date = bytes,
struct Frontmatter {
///The title of this page.
title: ?bytes,
///A short description that the section page has
///access to.
description: ?bytes,
///The main author of this page.
author: ?bytes,
date: ?@date,
tags: ?[bytes],
///Alternative paths where this content will also be
///made available.
aliases: ?[bytes],
///When set to true this file will be ignored when
///bulding the website.
draft: ?bool,
///Path to a layout file inside of the configured
///layouts directory.
layout: bytes,
///Alternative versions of this page, created by
///rendering the content using a different layout.
///Useful for creating RSS feeds, for example.
alternatives: ?[Alternative],
///Ignore other markdown files in this directory and
///any sub-directory. Can only be meaningfully set to
///true for 'index.smd' pages.
skip_subdirs: ?bool,
///User-defined properties that you can then reference
///in templates.
custom: ?map[any],
}
struct Alternative {
///Path to a layout file inside of the configured
///layouts directory.
layout: bytes,
///Output path, relative to the current directory.
///Use an absolute path to refer to the website's root
///directory.
output: bytes,
///Useful when generating `<link rel="alternate">`
///elements.
title: ?bytes,
///Useful when generating `<link rel="alternate">`
///elements.
type: ?bytes,
}