partials-collection

0.1.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i partials-collection

Weekly Downloads

2

Version

0.1.0

License

MIT

Last publish

Collaborators

  • markbirbeck