summaryrefslogtreecommitdiffhomepage
path: root/vhosts/blog/nuldoc-src/ndoc/document.ts
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-02-22 01:51:21 +0900
committernsfisis <nsfisis@gmail.com>2024-02-24 14:24:15 +0900
commit7c81d7bf5bcb6fb9578ae4ae54684742bf9ae35d (patch)
tree4534959896de4ba5492f8f35417fd45670296574 /vhosts/blog/nuldoc-src/ndoc/document.ts
parentb72e1bd7b40f1c9c3558b6ed50367a2b7fc11d62 (diff)
downloadnsfisis.dev-7c81d7bf5bcb6fb9578ae4ae54684742bf9ae35d.tar.gz
nsfisis.dev-7c81d7bf5bcb6fb9578ae4ae54684742bf9ae35d.tar.zst
nsfisis.dev-7c81d7bf5bcb6fb9578ae4ae54684742bf9ae35d.zip
feat(blog/nuldoc): implement generating Atom feed
Diffstat (limited to 'vhosts/blog/nuldoc-src/ndoc/document.ts')
-rw-r--r--vhosts/blog/nuldoc-src/ndoc/document.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/vhosts/blog/nuldoc-src/ndoc/document.ts b/vhosts/blog/nuldoc-src/ndoc/document.ts
index 31bae616..cbf0473c 100644
--- a/vhosts/blog/nuldoc-src/ndoc/document.ts
+++ b/vhosts/blog/nuldoc-src/ndoc/document.ts
@@ -7,6 +7,7 @@ import { Element, findFirstChildElement } from "../dom.ts";
export type Document = {
root: Element;
sourceFilePath: string;
+ uuid: string;
link: string;
title: string;
description: string; // TODO: should it be markup text?
@@ -18,6 +19,7 @@ export function createNewDocumentFromRootElement(
root: Element,
meta: {
article: {
+ uuid: string;
title: string;
description: string;
tags: string[];
@@ -43,6 +45,7 @@ export function createNewDocumentFromRootElement(
return {
root: root,
sourceFilePath: sourceFilePath,
+ uuid: meta.article.uuid,
link: link,
title: meta.article.title,
description: meta.article.description,