Changes
6 changed files (+18/-17)
-
-
@@ -88,23 +88,6 @@export interface ObsidianMarkdownParserOptions { /** * Whether to enable reading of YAML frontmatter. * * ## `title` * * Use property value as a document title. * * ## `name` * * Use property value as a document name. * * ## `lang` / `language` * * Use property value as a document language. * * ## `createdAt` / `updatedAt` * * Use property values as corresponding metadata dates. * * @default false */ frontmatter?: boolean;
-
@@ -286,6 +269,7 @@ const frontmatter = yamlFrontmatter.extract(decoded);const name = getFrontMatterValue(frontmatter.attrs, "name"); const title = getFrontMatterValue(frontmatter.attrs, "title"); const description = getFrontMatterValue(frontmatter.attrs, "description"); const lang = getFrontMatterValue(frontmatter.attrs, "lang") || getFrontMatterValue(frontmatter.attrs, "language"); const createdAt = getFrontMatterDate(frontmatter.attrs, "createdAt");
-
@@ -300,6 +284,7 @@ documentMetadata: {...documentMetadata, name: name || documentMetadata.name, title: title || documentMetadata.title, description: description || documentMetadata.description, language: lang || documentMetadata.language, createdAt: createdAt || documentMetadata.createdAt, updatedAt: updatedAt || documentMetadata.updatedAt,
-
-
-
@@ -16,6 +16,7 @@- *Document name* - *Document title* - Whether the document is the default document of Vault - Description (optional) - Language (optional) - Creation date-time (optional) - Update date-time (optional)
-
-
-
@@ -2,6 +2,7 @@ ---createdAt: 2024-04-07T18:00:00+09:00 updatedAt: 2024-04-14T13:00:00+09:00 defaultDocument: true description: Overview of Macana, an opinionated static site generator for Obsidian Vault. --- Macana is a tool to generate a static website from an Obsidian Vault.
-
-
-
@@ -26,6 +26,12 @@Title of the document. By default, file name is used as a title. ## `description` - Type: `description` Description text of the document. ## `lang` - Type: `string`
-
-
-
@@ -25,6 +25,9 @@ <head><meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>{document.metadata.title} - {websiteTitle}</title> {document.metadata.description && ( <meta name="description" content={document.metadata.description} /> )} <link rel="stylesheet" href={resolveURL(assets.globalCss)}
-
-
-
@@ -69,6 +69,11 @@ */readonly name: string; /** * Description of the document. */ readonly description?: string; /** * Human-readable text representing a title of the *document*. * Although there is no restriction on available characters, you should avoid using * control characters.
-