Remove bloat
Keep rec and res files to not remove the pages themselves
This commit is contained in:
parent
bd1e190e6b
commit
0786698336
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ dist/
|
||||
.next/
|
||||
.DS_Store
|
||||
.cache/
|
||||
*.bun
|
||||
|
@ -2,4 +2,4 @@
|
||||
|
||||
[![Netlify Status](https://api.netlify.com/api/v1/badges/8128893c-9426-4869-9858-731f3abc96c3/deploy-status)](https://app.netlify.com/sites/lambdapaul/deploys)
|
||||
|
||||
This is a rather simple [Next.js](https://nextjs.com) website that mainly involves generating content out of a bunch of markdown files contained in `notes/` and `posts/` which contain rough, unorganized yet useful information and thought-out articles respectively.
|
||||
A [Next.js](https://nextjs.com) website that mainly involves generating content out of a bunch of markdown files contained in `notes/` and `posts/` which contain rough, unorganized yet useful information and thought-out articles respectively. It's still a work in progress as I have no clear direction I want to take this site toward. However, it is something that I will always keep in check; as I use this as a hub for whatever I work on, especially if it involves a lot of reading.
|
@ -4,6 +4,8 @@ import { PostMeta } from "../util/slug";
|
||||
import style from '../styles/recent-posts.module.css';
|
||||
|
||||
function RecentPosts({ postsMeta }: { postsMeta: PostMeta[] }) {
|
||||
if (!postsMeta.length)
|
||||
return <></>;
|
||||
return (
|
||||
<div className='block'>
|
||||
<div className='h2'>Recent Posts</div>
|
||||
|
@ -1,12 +1,6 @@
|
||||
{
|
||||
"About": "/about",
|
||||
"Resources": "/resources",
|
||||
"Recommended": "/recommended",
|
||||
"GitHub": "https://github.com/lambdapaul",
|
||||
"Twitter": "https://twitter.com/lambda_paul",
|
||||
"Mastodon": "https://mastodon.social/@lambdapaul",
|
||||
"Matrix": "https://matrix.to/#/@lambdapaul:matrix.org",
|
||||
"Playlists": "/playlists",
|
||||
"Posts": "/posts",
|
||||
"Notes": "/notes"
|
||||
}
|
||||
|
21
util/slug.d.ts
vendored
21
util/slug.d.ts
vendored
@ -3,26 +3,33 @@ interface Post {
|
||||
rawslug?: string;
|
||||
content?: string;
|
||||
title?: string;
|
||||
};
|
||||
}
|
||||
|
||||
interface Note {
|
||||
slug?: string;
|
||||
rawslug?: string;
|
||||
content?: string;
|
||||
title?: string;
|
||||
}
|
||||
|
||||
interface NoteMeta {
|
||||
title: string;
|
||||
slug: string;
|
||||
last_updated: string;
|
||||
};
|
||||
}
|
||||
|
||||
interface PostMeta {
|
||||
title: string;
|
||||
slug: string;
|
||||
created_at: string;
|
||||
last_updated: string;
|
||||
};
|
||||
}
|
||||
|
||||
export function getAllPosts(filter: Array<any> = []): Post[];
|
||||
export function getAllNotes(filter: Array<any> = []): Note[];
|
||||
export function getAllPosts(filter?: Array<any>): Post[];
|
||||
export function getAllNotes(filter?: Array<any>): Note[];
|
||||
|
||||
export function getPost(rawslug: string, filter: Array<any> = []): Post;
|
||||
export function getNote(rawslug: string, filter: Array<any> = []): Note;
|
||||
export function getPost(rawslug: string, filter?: Array<any>): Post;
|
||||
export function getNote(rawslug: string, filter?: Array<any>): Note;
|
||||
|
||||
export function getPostsMeta(): PostMeta[];
|
||||
export function getNotesMeta(): NoteMeta[];
|
Loading…
Reference in New Issue
Block a user