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

@koalatemplates/gatsby-theme-architects

v1.0.5

Published

Minimal Gatsby Theme for Portfolio, Gallery and Online shops

Downloads

7

Readme

Koala Templates: Gatsby Theme 'Architects'

Minimal 2-template GatsbyJS theme for Portfolios or Online shops.

Link to Demo | Link to Github

Features

  1. Minimal theme with 2 templates: List template and Item template
  2. Pure vanilla modular CSS, no dependency on other CSS or CSS-in-JS frameworks. Modular CSS ensures locally scoped CSS and independence from other components.
  3. Smart rendering of photos: Render first photo as the main banner of a post. Render the rest of the photos after the body of a post. Detect the dimension of a photo and render accordingly. Portrait image renders 50% of the contain's width. Landscape imane renders 100% of the width.

Setup the theme

  1. Run yarn global add gatsby-cli to install Gatsby CLI
  2. Run gatsby new architect-blog to start the 'architect-blog' website
  3. Run yarn add @koalatemplates/gatsby-theme-architects to fetch the theme as NPM dependency into your site
  4. Create the folder [root of your Gatsby site]/architect-data. This is where your data will live. This is put into the contentPath in the gatsby-config.js below.
  5. Copy the sample data from the data directory of this package into the folder [root of your Gatsby site]/architect-data
  6. Copy the following snippet into gatsby-config.js as below:
// [root of your Gatsby site]/gatsby-config.js

module.exports = {
  ...
  plugins: [
    {
      resolve: "@koalatemplates/gatsby-theme-architects",
      options: {
        contentPath: "architect-data",
        basePath: "/"
      }
    }
  ]
};

Run your website gatsby develop

Structure of a post e.g. article.mdx

---
title: 'Title of the post'
date: 'Date string'
tags: ["project"|"article"]
photos: [
  "../images/nameOfPhoto1.jpg",
  "../images/nameOfPhoto2jpg"
]
---

Body of the post
  • tags: If tags include "project", posts are rendered on the right column. If tags include "article", posts are rendered on the left column.
  • photos: An array of photos. First photo is used as the main image. The rest of the photos are rendered after the post's body.