Skip to content

Commit

Permalink
Add setonix, improve project settings
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Oct 15, 2024
1 parent 6f52df0 commit 959ccf5
Show file tree
Hide file tree
Showing 13 changed files with 196 additions and 74 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
"dependencies": {
"@astrojs/mdx": "^3.1.8",
"@astrojs/rss": "^4.0.8",
"@astrojs/sitemap": "^3.2.0",
"@astrojs/sitemap": "^3.2.1",
"@linwooddev/style": "^0.3.9",
"@phosphor-icons/web": "^2.1.1",
"@swup/astro": "^1.4.1",
"astro": "^4.16.2",
"astro": "^4.16.4",
"sharp": "^0.33.5",
"typescript": "^5.6.3"
},
Expand Down
74 changes: 37 additions & 37 deletions pnpm-lock.yaml

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

Binary file added public/logos/setonix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
92 changes: 92 additions & 0 deletions public/logos/setonix.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions src/blog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ export const getEntryUrl = (entry: CollectionEntry<"blog">) => {
return entry.slug;
};

export const getProjects = async (): Promise<CollectionEntry<"projects">[]> => {
export const getProjects = async (
force?: boolean
): Promise<CollectionEntry<"projects">[]> => {
const projects = await getCollection("projects");
return projects;
return projects.filter((project) => !project.data.unlisted || force);
};

export const getProject = async (
Expand Down
3 changes: 2 additions & 1 deletion src/content/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@ const projects = defineCollection({
source: z.string().url(),
website: z.string().url().optional(),
translation: z.string().optional(),
unlisted: z.boolean().default(false),
}),
});
const authors = defineCollection({
type: "data",
schema: z.object({
name: z.string(),
avatar: z.string().url(),
url: z.string().url()
url: z.string().url(),
}),
});

Expand Down
12 changes: 6 additions & 6 deletions src/content/projects/butterfly.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Linwood Butterfly",
"source": "https://github.com/LinwoodDev/butterfly",
"description": "🎨 Powerful, minimalistic, cross-platform, opensource note-taking app",
"website": "https://docs.butterfly.linwood.dev",
"translation": "https://translate.linwood.dev/butterfly/"
}
"title": "Linwood Butterfly",
"source": "https://github.com/LinwoodDev/butterfly",
"description": "🎨 Powerful, minimalistic, cross-platform, opensource note-taking app",
"website": "https://docs.butterfly.linwood.dev",
"translation": "https://translate.linwood.dev/butterfly/"
}
Loading

0 comments on commit 959ccf5

Please sign in to comment.