Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// contentlayer.config.ts
import { defineDocumentType, makeSource } from "contentlayer/source-files";
var Post = defineDocumentType(() => ({
name: "Post",
filePathPattern: `**/*.mdx`,
contentType: "mdx",
fields: {
title: {
type: "string",
required: true
},
date: {
type: "date",
required: true
},
description: {
type: "string",
required: true
},
author: {
type: "string",
required: true
},
tags: {
type: "list",
of: { type: "string" },
required: true
},
image: {
type: "string",
required: false
}
},
computedFields: {
slug: {
type: "string",
resolve: (post) => post._raw.flattenedPath
}
}
}));
var contentlayer_config_default = makeSource({
contentDirPath: "src/content/blog/posts",
documentTypes: [Post],
disableImportAliasWarning: true
});
export {
Post,
contentlayer_config_default as default
};
//# sourceMappingURL=compiled-contentlayer-config-MRT7HULO.mjs.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../contentlayer.config.ts"],
"sourcesContent": ["import { defineDocumentType, makeSource } from 'contentlayer/source-files'\n\nexport const Post = defineDocumentType(() => ({\n name: 'Post',\n filePathPattern: `**/*.mdx`,\n contentType: 'mdx',\n fields: {\n title: {\n type: 'string',\n required: true,\n },\n date: {\n type: 'date',\n required: true,\n },\n description: {\n type: 'string',\n required: true,\n },\n author: {\n type: 'string',\n required: true,\n },\n tags: {\n type: 'list',\n of: { type: 'string' },\n required: true,\n },\n image: {\n type: 'string',\n required: false,\n },\n },\n computedFields: {\n slug: {\n type: 'string',\n resolve: (post) => post._raw.flattenedPath,\n },\n },\n}))\n\nexport default makeSource({\n contentDirPath: 'src/content/blog/posts',\n documentTypes: [Post],\n disableImportAliasWarning: true,\n}) "],
"mappings": ";AAAA,SAAS,oBAAoB,kBAAkB;AAExC,IAAM,OAAO,mBAAmB,OAAO;AAAA,EAC5C,MAAM;AAAA,EACN,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,QAAQ;AAAA,IACN,OAAO;AAAA,MACL,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,aAAa;AAAA,MACX,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,IAAI,EAAE,MAAM,SAAS;AAAA,MACrB,UAAU;AAAA,IACZ;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,EACF;AAAA,EACA,gBAAgB;AAAA,IACd,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS,CAAC,SAAS,KAAK,KAAK;AAAA,IAC/B;AAAA,EACF;AACF,EAAE;AAEF,IAAO,8BAAQ,WAAW;AAAA,EACxB,gBAAgB;AAAA,EAChB,eAAe,CAAC,IAAI;AAAA,EACpB,2BAA2B;AAC7B,CAAC;",
"names": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// contentlayer.config.ts
import { defineDocumentType, makeSource } from "contentlayer/source-files";
var Post = defineDocumentType(() => ({
name: "Post",
filePathPattern: `**/*.mdx`,
contentType: "mdx",
fields: {
title: {
type: "string",
required: true
},
date: {
type: "date",
required: true
},
description: {
type: "string",
required: true
},
author: {
type: "string",
required: true
},
tags: {
type: "list",
of: { type: "string" },
required: true
},
image: {
type: "string",
required: false
}
},
computedFields: {
slug: {
type: "string",
resolve: (post) => post._raw.flattenedPath
}
}
}));
var contentlayer_config_default = makeSource({
contentDirPath: "content/blog",
documentTypes: [Post]
});
export {
Post,
contentlayer_config_default as default
};
//# sourceMappingURL=compiled-contentlayer-config-MYFUZF63.mjs.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": ["../../../contentlayer.config.ts"],
"sourcesContent": ["import { defineDocumentType, makeSource } from 'contentlayer/source-files'\n\nexport const Post = defineDocumentType(() => ({\n name: 'Post',\n filePathPattern: `**/*.mdx`,\n contentType: 'mdx',\n fields: {\n title: {\n type: 'string',\n required: true,\n },\n date: {\n type: 'date',\n required: true,\n },\n description: {\n type: 'string',\n required: true,\n },\n author: {\n type: 'string',\n required: true,\n },\n tags: {\n type: 'list',\n of: { type: 'string' },\n required: true,\n },\n image: {\n type: 'string',\n required: false,\n },\n },\n computedFields: {\n slug: {\n type: 'string',\n resolve: (post) => post._raw.flattenedPath,\n },\n },\n}))\n\nexport default makeSource({\n contentDirPath: 'content/blog',\n documentTypes: [Post],\n}) "],
"mappings": ";AAAA,SAAS,oBAAoB,kBAAkB;AAExC,IAAM,OAAO,mBAAmB,OAAO;AAAA,EAC5C,MAAM;AAAA,EACN,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,QAAQ;AAAA,IACN,OAAO;AAAA,MACL,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,aAAa;AAAA,MACX,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,IAAI,EAAE,MAAM,SAAS;AAAA,MACrB,UAAU;AAAA,IACZ;AAAA,IACA,OAAO;AAAA,MACL,MAAM;AAAA,MACN,UAAU;AAAA,IACZ;AAAA,EACF;AAAA,EACA,gBAAgB;AAAA,IACd,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS,CAAC,SAAS,KAAK,KAAK;AAAA,IAC/B;AAAA,EACF;AACF,EAAE;AAEF,IAAO,8BAAQ,WAAW;AAAA,EACxB,gBAAgB;AAAA,EAChB,eAAe,CAAC,IAAI;AACtB,CAAC;",
"names": []
}
438 changes: 438 additions & 0 deletions .contentlayer/.cache/v0.3.4/data-MRT7HULO.json

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions .contentlayer/.cache/v0.3.4/data-MYFUZF63.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"cacheItemsMap": {
"hello-world.mdx": {
"document": {
"title": "Hello World",
"date": "2024-06-04T00:00:00.000Z",
"description": "Welcome to my blog! This is my first post.",
"author": "Pythoness Programmer",
"tags": [
"welcome",
"introduction"
],
"body": {
"raw": "\n# Hello World\n\nWelcome to my blog! This is my first post. I'll be sharing my thoughts on programming, technology, and more.\n\n## What to Expect\n\n- Technical articles\n- Coding tips\n- Industry insights\n- Personal experiences\n\nStay tuned for more content! ",
"code": "var Component=(()=>{var m=Object.create;var i=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var u=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty;var x=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),y=(e,n)=>{for(var o in n)i(e,o,{get:n[o],enumerable:!0})},s=(e,n,o,l)=>{if(n&&typeof n==\"object\"||typeof n==\"function\")for(let r of g(n))!p.call(e,r)&&r!==o&&i(e,r,{get:()=>n[r],enumerable:!(l=d(n,r))||l.enumerable});return e};var f=(e,n,o)=>(o=e!=null?m(u(e)):{},s(n||!e||!e.__esModule?i(o,\"default\",{value:e,enumerable:!0}):o,e)),j=e=>s(i({},\"__esModule\",{value:!0}),e);var h=x((D,c)=>{c.exports=_jsx_runtime});var w={};y(w,{default:()=>W,frontmatter:()=>_});var t=f(h()),_={title:\"Hello World\",date:new Date(17174592e5),description:\"Welcome to my blog! This is my first post.\",author:\"Pythoness Programmer\",tags:[\"welcome\",\"introduction\"]};function a(e){let n=Object.assign({h1:\"h1\",p:\"p\",h2:\"h2\",ul:\"ul\",li:\"li\"},e.components);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{children:\"Hello World\"}),`\n`,(0,t.jsx)(n.p,{children:\"Welcome to my blog! This is my first post. I'll be sharing my thoughts on programming, technology, and more.\"}),`\n`,(0,t.jsx)(n.h2,{children:\"What to Expect\"}),`\n`,(0,t.jsxs)(n.ul,{children:[`\n`,(0,t.jsx)(n.li,{children:\"Technical articles\"}),`\n`,(0,t.jsx)(n.li,{children:\"Coding tips\"}),`\n`,(0,t.jsx)(n.li,{children:\"Industry insights\"}),`\n`,(0,t.jsx)(n.li,{children:\"Personal experiences\"}),`\n`]}),`\n`,(0,t.jsx)(n.p,{children:\"Stay tuned for more content!\"})]})}function b(e={}){let{wrapper:n}=e.components||{};return n?(0,t.jsx)(n,Object.assign({},e,{children:(0,t.jsx)(a,e)})):a(e)}var W=b;return j(w);})();\n;return Component;"
},
"_id": "hello-world.mdx",
"_raw": {
"sourceFilePath": "hello-world.mdx",
"sourceFileName": "hello-world.mdx",
"sourceFileDir": ".",
"contentType": "mdx",
"flattenedPath": "hello-world"
},
"type": "Post",
"slug": "hello-world"
},
"documentHash": "1749075898702",
"hasWarnings": false,
"documentTypeName": "Post"
}
}
}
Loading
Loading