Skip to content

Commit

Permalink
feat: 1.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
GabsEdits committed Apr 12, 2024
1 parent 0dd4f80 commit 39a69ad
Show file tree
Hide file tree
Showing 3 changed files with 159 additions and 3 deletions.
8 changes: 7 additions & 1 deletion components/posts.data.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import path from "path";
import { createContentLoader } from "vitepress";
import { fileURLToPath } from 'url';
import { dirname } from 'path';

interface Post {
title: string;
Expand All @@ -8,9 +10,13 @@ interface Post {
}

declare const data: Post[];

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

export { data };

export default createContentLoader(path.join(__dirname, "../../blog/posts/*.md"), {
export default createContentLoader(path.join(__dirname, "../../../pages/blog/posts/*.md"), {
excerpt: true,
transform(raw): Post[] {
return raw
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aplos",
"version": "1.2.2",
"version": "1.2.4",
"description": "The Aplos VitePress theme",
"main": "index.ts",
"keywords": [
Expand All @@ -13,7 +13,9 @@
"dependencies": {
"inter-ui": "^4.0.2",
"non.geist": "^1.0.2",
"sass": "^1.74.1"
"path": "^0.12.7",
"sass": "^1.74.1",
"url": "^0.11.3"
},
"repository": {
"type": "git",
Expand Down
148 changes: 148 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 39a69ad

Please sign in to comment.