Anonymous View
0.0.15 • Published 1 year ago

@idkwtm/simple-posts v0.0.15

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

Simple Posts

Simple Posts is a tool to help you build a Markdown-based static site with posts and pages. It includes necessary types, React context, and Vite plugin.

Installation

Use the package manager npm to install Simple Posts.

npm install @idkwtm/simple-posts

Usage

Types

SimplePost includes all of the properties SimplePostMetaData.

SimplePostOptions holds all the options for the Vite plugin.

SimplePostsContextData and SimplePostsContextProviderProps round out the React Context API necessities.

Setup & Vite Plugin

Tell SimplePosts where your library of Markdown files are for posts and pages (/src/content/posts and /src/context/pages by default). Add the SimplePosts plugin to your list of plugins in the vite.config.ts

export default defineConfig({
    plugins: [
        ...
        SimplePosts()
    ],
    ...
});

React

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago