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

partials-collection

v0.1.0

Published

A collection of partials.

Downloads

5

Readme

partials-collection

A collection of partials that are usable in a number of layouts.

google-tag-manager.html

Adds the necessary script for Google Tag Manager.

Requires a GTM ID.

Example usage in a Liquid template:

{% include google-tag-manager.html id=site.google_tag_manager %}

Keep in sync with Google Tag Manager for Web Tracking - Quick Start Guide.

disqus-comments.html

Adds the necessary script for Disqus comments.

Requires the site shortname and an optional page identifier.

Example usage in a Liquid template:

{% if page.comments %}
  {% include disqus-comments.html
      shortname=site.disqus_shortname
      identifier=site.disqus_identifier | append:page.url | replace:"index.html", ""
  %}
{% endif %}

Keep in sync with Disqus Setup Instructions for Universal Code.

Liquid Partials

The following partials use Liquid syntax.

liquid/head.html

Adds a container for various head partials. All of the partials listed in the next section are included.

Head Partials

liquid/head-canonical.html

Add a canonical URL.

Requires the URL of the page, the base URL for the page, the URL for the site, and the title of the page.

Example usage in a Liquid template:

  {% include head-canonical.html
      url=page.url
      baseurl=site.baseurl
      siteurl=site.url
      title=site.title
  %}

liquid/head-description.html

Add a description of the page, based on either the page content or a description of the whole site.

liquid/head-title.html

Add a title for the page, based on either the page itself or the title of the whole site.

head-charset-utf-8.html

Adds the UTF-8 charset meta tag.

head-fonts.html

This can be overridden in order to provide font information.

head-styles.html

This can be overridden in order to provide style information.

head-ie-legacy-document-mode.html

Adds settings for Internet Explorer Legacy Document mode.

head-viewport.html

Adds the viewport settings.

homescreen-android.html

Add tags for setting a homescreen link on Android.

homescreen-ios.html

Add tags for setting a homescreen link on iOS.

homescreen-win8.html

Add tags for setting the icon on Windows 8.