Rpx
Zero-configuration static-site generator for blogs
Features
- Minimal, Spartan look
- No theming or setup required
- Fast page loads with static pages
- Client-side routing for fast navigation transitions
- Parses markdown to create Open Graph meta tags
- Adds Tweet buttons to posts
- Automatic pagination
- Works with many of the same front matter variables as Jekyll
Getting Started
npm i -g rpx
Alternatively, Rpx can be installed as a devDependency with the -D
flag.
Run the command pointing to a folder containing markdown files.
rpx posts
By default this creates a folder named build
and saves the static site here.
This command will filter for markdown files to use as posts. The filename will be used as the URL path, and each markdown file should contain a minumum of the following front matter:
---title: Hello Worlddate: 2016-10-11---
Rpx will also check for the existance of a .png or .jpg image in the source folder for use as a Twitter/OG image.
If favicon.ico
, favicon.png
, or apple-touch-icon.png
files are found, they will also be copied to the build folder.
CLI Options
-h, --help Shows help text
-o, --out-dir Output directory
Configuration
Add an rpx
object to your package.json
.
"rpx":
The following configuration options are available:
title
: title of the sitedescription
: description of the siteimage
: Image used for Twitter and OG metatags and apple-touch-iconauthor
: author of the sitecss
: Source for csutom CSS filestyles
: Custom CSS string to inline in the headgoogleAnalytics
: ID for Google Analytics accountpageSize
: Number of posts to show per pagetwitter
: Object for Twitter metatagstwitter.site
: Twitter username for the site