this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: add theme and fonts

authored by

Julien Calixte and committed by
Julien Calixte
3859d381 90bf9854

+20
+12
packages/cli/src/extensions/litenote.ts
··· 242 242 record.images = images 243 243 } 244 244 245 + if (post.frontmatter.theme) { 246 + record.theme = post.frontmatter.theme 247 + } 248 + 249 + if (post.frontmatter.fontSize) { 250 + record.fontSize = post.frontmatter.fontSize 251 + } 252 + 253 + if (post.frontmatter.fontFamily) { 254 + record.fontFamily = post.frontmatter.fontFamily 255 + } 256 + 245 257 await agent.com.atproto.repo.putRecord({ 246 258 repo: agent.did!, 247 259 collection: LEXICON,
+5
packages/cli/src/lib/markdown.ts
··· 94 94 const coverField = mapping?.coverImage || "ogImage"; 95 95 frontmatter.ogImage = raw[coverField] || raw.ogImage; 96 96 97 + // Theme, font family and font size 98 + frontmatter.theme = raw.theme; 99 + frontmatter.fontFamily = raw.fontFamily; 100 + frontmatter.fontSize = raw.fontSize; 101 + 97 102 // Tags mapping 98 103 const tagsField = mapping?.tags || "tags"; 99 104 frontmatter.tags = raw[tagsField] || raw.tags;
+3
packages/cli/src/lib/types.ts
··· 86 86 87 87 export interface PostFrontmatter { 88 88 title: string; 89 + theme?: string 90 + fontFamily?: string 91 + fontSize?: number 89 92 description?: string; 90 93 bskyPost?: string; 91 94 publishDate: string;