• Stars
    star
    281
  • Rank 146,662 (Top 3 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 2 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Create content rich websites with ease - built on next.js, contentlayer and tailwindcss

Pliny

Note: Pliny is currently in alpha. Expect breaking changes.

Pliny makes creating, editing and publishing markdown content easy and simple. It is based on Next.js, Tailwind CSS and Contentlayer.

Installation

npm i -g @pliny/cli

Usage

Here are some examples of common commands:

Create a new starter blog project called "my-blog"

pliny new --template=starter-blog my-blog

Add a recipe

Currently, there are 2 main types of recipes - scaffolding a content type e.g. the pages associated with a blog or adding templates to the layouts folder. As a convention, recipes to scaffold are in the form of add-[content type] while layouts are in the form of [content type]-[theme].

Adding a blog page to an existing Next.js application (assumes you have contentlayer setup, as it will automatically add defineDocumentType)

pliny install add-blog ContentDir=data ContentName=Blog

Add the blog-classic templates to the layouts folder:

pliny install blog-classic

Features

Content Modeling with Contentlayer

  • Live reload on content changes
  • Fast and incremental builds
  • Simple but powerful schema DSL to design your content model (validates your content and generates types)
  • Auto-generated TypeScript types based on your content model (e.g. frontmatter or CMS schema)

Templates

  • Based on Next.js and Tailwindcss
  • Highly configurable config, easily extendable nextjs website
  • Mobile friendly
  • Supports light and dark theme
  • Layouts to customize templates
  • Blog theme is completed, docs is in the works

Full suite of markdown plugins

Modular React components for services

  • Newsletter (Buttondown, Convertkit, Email Octopus, Klaviyo, Mailchimp, Revue)
  • Analytics (Google Analytics, Plausible Analytics, Simple Analytics, Umami Analytics, Posthog)
  • Comments (Disqus, Giscus, Utterances)
  • Search (Algolia, Kbar local search)

More Repositories

1

tailwind-nextjs-starter-blog

This is a Next.js, Tailwind CSS blogging starter template. Comes out of the box configured with the latest technologies to make technical writing a breeze. Easily configurable and customizable. Perfect as a replacement to existing Jekyll and Hugo individual blogs.
TypeScript
8,460
star
2

rehype-prism-plus

rehype plugin to highlight code blocks in HTML with Prism (via refractor) with line highlighting and line numbers
JavaScript
171
star
3

contentlayer2

Contentlayer turns your content into data - making it super easy to import MD(X) and CMS content in your app
TypeScript
153
star
4

timlrx.com

My portfolio built with Tailwind CSS, Nextjs and MDX. A collection of musings, learnings and projects touching data science, analytics, web development and more 🔥
HTML
82
star
5

graph-benchmarks

Python
77
star
6

rehype-citation

Rehype plugin to add citation and bibliography from bibtex files
JavaScript
36
star
7

simple-ai-agents

Simple AI agents / assistants
Python
21
star
8

binscatter

R
11
star
9

browser-data-processing-benchmarks

Benchmark of data processing libraries on the browser including Arquero, Sqlite WASM and Duckdb WASM
JavaScript
6
star
10

sqlite-extension-template

Template for building a SQLite extension in C/C++. Builds a loadable module, static extension, python package and WebAssembly distribution.
Makefile
5
star
11

serverless-ml

Serverless ML experiments
R
3
star
12

learning-julia

Learning Julia through replicating Schelling's Dynamic Models of Segregation
Jupyter Notebook
2
star
13

temp-blog

TypeScript
2
star
14

allrecipe-scraper

R
2
star
15

remark-webembed

Remark plugin to embed web content using markdown directives
JavaScript
2
star
16

next-fastapi-object-stream

Next JS + FastAPI object streaming example
TypeScript
1
star
17

sg-mapping

R
1
star