Supply

An open-source e-commerce theme for Jekyll + Gumroad

Download Supply
Image credit:  Supply, an e-commerce theme for Jekyll and Gumroad
alternatyves
Art Direction, Story, Design
Updated · 3 min read

Supply, a free e-commerce theme for Jekyll + Gumroad

Supply is an e-commerce theme for Gumroad creators, built with Jekyll and Tachyons CSS.

If you use Gumroad, you can use Supply to display products on your Jekyll static site or blog.

Browse through a live demo

Supply template screenshot

Supply template screenshot

Find more templates, themes and Jekyll tutorials at Jekyll’s official site.

Features

Download

Download the theme at: https://github.com/YJPL/Supply/

Download Supply

Setup

  1. Install Jekyll
  2. Add your site and author details in _config.yml.
  3. Get a workflow going to watch your website’s output with Jekyll locally.

Supply was built with Jekyll version 4.0.0 and should support newer versions as well.

Install the dependencies with Bundler:

$ bundle install

Run Jekyll commands through Bundler to ensure you’re using the right versions:

$ bundle exec jekyll serve

Config

Add your custom configuration in the _config file.

Look for default.html in _layouts to add your footer links.

Contact Page

To add you formcarry endpoint URL to _config.yml, you’ll need a fromcarry account, please refer to formcarry documentation

Add your map coordinates if you want to display a map. Please refer to the jekyll-leaflet plugin and Leaflet documentation for customizing your map(s).

Product Pages

If you have products on Gumroad, you can start adding product pages right away. Within the Supply theme, you’ll find a sample of a product page with free products, free-products.html, located in _pages.

Develop

Building front-end assets: styles and scripts

  1. Install Node module dependencies:
npm install

Tachyons

You can change the site styling using Tachyons, look for the CSS in the sup-theme file, located in the src folder.

Tachyons is a CSS toolkit and design system based on using components. Please refer to Tachyons documentation, you can also start with https://github.com/dwyl/learn-tachyons

Once you are done with your style changes, run:

Run the npm run

build:css

That will process all your CSS files in one readable file located in assets/css/sup-tachyons.css.

to minify your css you can run

npm run minify-css

or

npm run start

to minify and build the site locally.

npm commands with browser reload

Supply uses a couple of custom Postcss npm scripts. Make sure your dependencies are installed: npm install. Type npm outdated to see if you have outdated versions, then install any outdated dependencies.

Once that is done, to build your site & concatenate your CSS (in assets -> CSS), simply run:

npm run start

This command builds the site locally on port 4000, you can quickly revise design changes thanks to livereload.

Editing

Posts

Collections

To display products, Supply uses a collection called product You will find a series of product samples in the _products collection folder. By design, all the products are on display on the home page, in Supply, that is ìndex.html. You can manually create pages based on this index to sort your products or any other collection by custom variable.

You can also add your products in regular posts, using the Gumroad overlay, embed, and hyperlinks method, thanks to an include snippet.

Write something like:

<a href="https://gum.co/supply class="no-underline pv2 grow db"><img class="w-100" src="/images/screenshot.png"></a>

{% include gumroad-overlay.html id="supply" %}

to display a clickable image of your product, with an overlay like this:


I demand Supply!

Open-source

Get Supply

You are welcome to use and contribute to Supply on GitHub

chevronLeft icon Previous post

Lockdown calendar

Next post chevronRight icon

alternate