npm.io
0.2.2 • Published 9h ago

@rankveo/eleventy

Licence
MIT
Version
0.2.2
Deps
0
Vulns
0
Weekly
0

@rankveo/eleventy

Run your rankveo blog on an Eleventy site.

npm install @rankveo/eleventy
// _data/blog.js
import { rankveoData } from '@rankveo/eleventy';

export default async () => rankveoData({ apiKey: process.env.RANKVEO_BLOG_API_KEY });

Templates then read blog.articles and Eleventy's pagination does the rest. Bodies are fetched up front because a template cannot await — everything a page renders has to exist in the data cascade.

Starter

cp -r node_modules/@rankveo/eleventy/starter/* .

Gives you a paginated listing, article pages with metadata and JSON-LD, a sitemap with <image:image> entries, and an RSS feed.

blog/article.css styles the article HTML under .article-body. Do not drop it and rely on your own reset — most resets strip list markers and flatten heading sizes, which renders a well-structured article as one flat wall of text.

Keeping it fresh

Eleventy output is static, so there is nothing to invalidate at runtime. Point rankveo at your host's deploy hook and publishing triggers a rebuild.


Docs and setup guide · All integrations

MIT.

Keywords