npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

gatsby-theme-catalyst-blog

v7.0.7

Published

Child blog theme for gatsby-theme-catalyst-core. Based on gatsby-theme-blog-core.

Downloads

34

Readme

Gatsby Theme Catalyst Blog

This adds a blogging interface using MDX, similar to gatsby-theme-blog-core with some custom modifications. The theme can be added to any existing Catalyst-based site and will add blog functionality. This is a minimal implementation that is not designed to be used in a production site, but rather as a jumping off point for a production site.

The main features added to this blog theme are:

  • Support for a featured image on the blog posts
  • Support for a social image on the blog posts
  • Support for categories and tags
  • Support for different post types in the frontmatter to allow for conditional styling of posts
  • Drafts flag in frontmatter so you can keep posts in your repo that are drafts and not built in the final site
  • Ability to control the excerpt length used in post summaries

Documentation

https://www.gatsbycatalyst.com/

Demos

Theme options

| Option | Values | Description | | ---------------------- | ------- | ----------------------------------------------------------------------------------------------------------------------- | | contentPath | String | Defaults to "content/posts", determines where the posts are created from. | | assetPath | String | Defaults to "content/assets", determines where the post assets like images are located. | | basePath | String | Defaults to "/blog", determines the page location for the post list. | | excerptLength | String | Defaults to "140", determines the length of the excerpt use for post summaries. | | postListTitle | String | Defaults to "Posts", allows you to control the title of your post page, e.g. "Blog" or "Writing" or "Digital Garden" | | displayPostListTitle | Boolean | Defaults to true, allows you to remove the visual title of your post page but keep it in the page title in the browser. | | rssTitle | String | Defaults to "RSS Feed", allows you to customize the title of the RSS feed. | | rssDescription | String | Defaults to "A great RSS feed", set the RSS description for your feed. |

Example Config:

   {
      resolve: `gatsby-theme-catalyst-blog`,
      options: {
        basePath: `/`,
        contentPath: `src/content/posts`,
        assetPath: `src/content/post-images`,
        excerptLength: `280`,
      }
    }

Frontmatter Fields

The following fields are available in front matter.

| Field | Required? | Values | Description | | -------------------- | --------- | ------- | -------------------------------------------------------- | | title | Yes | String | Title of the post | | date | Yes | Date | Publication date, e.g. 2019-04-15 | | subTitle | No | String | Sub title or deck for blog posts | | author | No | String | Author of the post | | featuredImage | No | String | Featured image to be used for the post | | featuredImageCaption | No | String | Caption for the featured image | | socialImage | No | String | Social image to be used for the post | | slug | No | String | Optionally used to specify the link slug for the post | | authorLink | No | String | Used as a link for the author name in the post summaries | | tags | No | Array | Tags for the post, ["tag1", "tag2", "tag3"] | | categories | No | Array | Categories for the post, ["cats", "dogs", "snakes"] | | keywords | No | Array | Keywords used for Seo, ["key1", "key2", "key3"] | | draft | No | Boolean | Defaults to false, set to true if a post is a draft |

Example frontmatter:

---
title: Hey, a draft post
date: 2019-04-15
featuredImage: ../assets/featured1.jpg
author: Eric Howey
authorLink: https://twitter.com/erchwy
tags: [Wicked, Awesome, Radical]
draft: true
slug: /blog/custom-post-slug
---

About Gatsby Theme Catalyst

The Catalyst series of themes and starters for GatsbyJS were designed to provide an opinionated set of integrated themes and starters that can be used to accelerate your next Gatsby project. The vision is for one "core" theme in which most dependencies and components are contained followed by progressively more styled and refined child themes and starters. These themes rely heavily on Theme-UI and MDX.