Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bradonomics committed May 13, 2017
0 parents commit 485def1
Show file tree
Hide file tree
Showing 108 changed files with 6,375 additions and 0 deletions.
14 changes: 14 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: "Page Not Found"
excerpt: "Page not found. Your pixels are in another canvas."
sitemap: false
permalink: /404.html
---

Sorry, but the page you were trying to view does not exist---perhaps you can try searching for it below.

<script type="text/javascript">
var GOOG_FIXURL_LANG = 'th';
var GOOG_FIXURL_SITE = '{{ site.url }}'
</script>
<script type="text/javascript" src="//linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
13 changes: 13 additions & 0 deletions CHANGELOG-DEMO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## [0.1.0](https://github.com/bradonomics/jekyll-cart/releases/tag/0.1.0)

### Enhancements

- List what happened. ([#1](https://github.com/bradonomics/jekyll-cart/pull/1))

### Maintenance

- List what happened. ([#1](https://github.com/bradonomics/jekyll-cart/pull/1))

### Bug Fixes

- List what happened. ([#1](https://github.com/bradonomics/jekyll-cart/pull/1))
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## [0.1.0](https://github.com/bradonomics/jekyll-cart/releases/tag/0.1.0)

Initial release
9 changes: 9 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
source 'https://rubygems.org'

group :jekyll_plugins do
gem 'jekyll'
gem 'jekyll-feed'
gem 'jekyll-sitemap'
gem 'jekyll-archives'
gem 'jekyll-paginate'
end
311 changes: 311 additions & 0 deletions LICENSE.md

Large diffs are not rendered by default.

74 changes: 74 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# Jekyll Cart

Code Repo: https://github.com/bradonomics/jekyll-cart/<br>
Demo: http://bradonomics.github.io/jekyll-cart/

Jekyll Cart is a Jekyll based shopping cart built with simpleCart(js). It incorporates work from the following:

### Jekyll

Homepage: http://jekyllrb.com/<br>
GitHub Repo: https://github.com/jekyll/jekyll

### Jekyll Boilerplate

GitHub Repo: https://github.com/bradonomics/jekyll-boilerplate

### simpleCart(js)

Homepage: http://simplecartjs.org/<br>
GitHub Repo: https://github.com/wojodesign/simplecart-js

### Fur Theme by CloudCannon

Homepage: https://turquoise-rook.cloudvent.net/<br>
GitHub Repo: https://github.com/CloudCannon/fur-jekyll-template

## Getting Started

You can [download the files from GitHub](https://github.com/bradonomics/jekyll-cart/archive/master.zip) (or clone the repo: `git clone https://github.com/bradonomics/jekyll-cart.git`) and have a fully functioning Jekyll site with shopping cart in minutes.

### Develop

Jekyll Cart was built with Jekyll v3.4.3, but should support newer versions also.

Install the dependencies with [Bundler](http://bundler.io/):

```shell
$ bundle install
```

A gulp file and package.json has been included if you'd rather run Browser Sync. If not, you can run Jekyll with it's built-in serve commands

```shell
$ jekyll serve
```

Alghouth running `jekyll` commands through Bundler will ensure you're using the right versions:

```shell
$ bundle exec jekyll serve
```

### Editing

Jekyll Cart was optimized for CloudCannon but will run without it. If you plan to use the email checkout feature but aren't hosted with CloudCannon, you'll need some form system to do the sending. [Formspree](https://formspree.io/) is a good option.

## License

[Jekyll Cart](https://github.com/bradonomics/jekyll-cart/) is released under the [GPL-2.0 License](http://www.gnu.org/licenses/gpl-2.0.html).

[Jekyll](http://jekyllrb.com/) is released under the MIT license. [simpleCart(js)](https://github.com/wojodesign/simplecart-js) is released under the MIT license and the [GPL-2.0 License](http://www.gnu.org/licenses/gpl-2.0.html). [Fur by CloudCannon](https://github.com/CloudCannon/fur-jekyll-template) is released under the MIT license.

> This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.

> This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

> You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
6 changes: 6 additions & 0 deletions _config-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Site settings
url: http://localhost:3000

# SASS settings
sass:
style: expanded
72 changes: 72 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Site Settings
title: Jekyll Cart
description: A Jekyll Based Shopping Cart Built with simpleCart(js)
url:

# Jekyll Configuration
encoding: UTF-8
permalink: /:title/
paginate: 5
paginate_path: "/blog/page/:num/"

# Markdown Processing
markdown: kramdown
kramdown:
input: GFM

# Sass/SCSS settings
sass:
sass_dir: _sass
style: compressed # http://sass-lang.com/documentation/file.SASS_REFERENCE.html#output_style

# Custom Collections
collections:
products:
output: true

# Collection Defaults
defaults:
- scope:
type: posts
values:
layout: post
- scope:
type: pages
values:
layout: page
- scope:
type: products
values:
layout: product

# Frontmatter Defaults
sidebar_options:
- sidebar
- no-sidebar

# File Handling
# include: [_pages]
exclude: [lib, config.rb, .sass-cache, Capfile, config, log, Rakefile, Rakefile.rb, tmp, Gemfile, Gemfile.lock, README.md, LICENSE.md, node_modules, gulpfile.js, package.json]

# Plugins
gems:
- jekyll-feed
- jekyll-sitemap
- jekyll-archives
- jekyll-paginate

# Archives
jekyll-archives:
enabled:
- categories
- tags
permalinks:
categories: '/category/:name/'
tags: '/tag/:name/'

# HTML Compression
# - http://jch.penibelst.de/
compress_html:
clippings: all
ignore:
envs: development
4 changes: 4 additions & 0 deletions _data/navigation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- title: Products
url: /products/
- title: Blog
url: /blog/
12 changes: 12 additions & 0 deletions _data/social.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
facebook_url: '#'
twitter_url: '#'
google_plus_url: '#'
instagram_url: '#'
tumblr_url: '#'
youtube_url: '#'
vimeo_url: '#'
whatsapp_url: '#'
linkedin_url: '#'
medium_url: '#'
pinterest_url: '#'
email: '#'
64 changes: 64 additions & 0 deletions _includes/footer-widgets.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<div class="footer-widgets">
<div class="wrap">

<div class="footer-widget-1">
<section class="widget social-icons">
<ul>

{% if site.data.social.facebook_url %}<li class="facebook"><a href="{{ site.data.social.facebook_url }}" target="_blank" title="Facebook"><i class="fa fa-facebook"></i></a></li>{% endif %}

{% if site.data.social.twitter_url %}<li class="twitter"><a href="{{ site.data.social.twitter_url }}" target="_blank" title="Twitter"><i class="fa fa-twitter"></i></a></li>{% endif %}

{% if site.data.social.google_plus_url %}<li class="google-plus"><a href="{{ site.data.social.google_plus_url }}" target="_blank" title="Google Plus"><i class="fa fa-google-plus"></i></a></li>{% endif %}

{% if site.data.social.instagram_url %}<li class="instagram"><a href="{{ site.data.social.instagram_url }}" target="_blank" title="Instagram"><i class="fa fa-instagram"></i></a></li>{% endif %}

{% if site.data.social.youtube_url %}<li class="youtube"><a href="{{ site.data.social.youtube_url }}" target="_blank" title="YouTube"><i class="fa fa-youtube"></i></a></li>{% endif %}

{% if site.data.social.vimeo_url %}<li class="vimeo"><a href="{{ site.data.social.vimeo_url }}" target="_blank" title="Vimeo"><i class="fa fa-vimeo"></i></a></li>{% endif %}

{% if site.data.social.whatsapp_url %}<li class="whatsapp"><a href="{{ site.data.social.whatsapp_url }}" target="_blank" title="WhatsApp"><i class="fa fa-whatsapp"></i></a></li>{% endif %}

{% if site.data.social.pinterest_url %}<li class="pinterest"><a href="{{ site.data.social.pinterest_url }}" target="_blank" title="Pinterest"><i class="fa fa-pinterest"></i></a></li>{% endif %}

{% if site.data.social.tumblr_url %}<li class="tumblr"><a href="{{ site.data.social.tumblr_url }}" target="_blank" title="Tumblr"><i class="fa fa-tumblr"></i></a></li>{% endif %}

{% if site.data.social.linkedin_url %}<li class="linkedin"><a href="{{ site.data.social.linkedin_url }}" target="_blank" title="LinkedIn"><i class="fa fa-linkedin"></i></a></li>{% endif %}

{% if site.data.social.medium_url %}<li class="medium"><a href="{{ site.data.social.medium_url }}" target="_blank" title="Medium"><i class="fa fa-medium"></i></a></li>{% endif %}

{% if site.data.social.email %}<li class="email"><a href="mailto:{{ site.data.social.email }}" target="_blank" title="Email"><i class="fa fa-envelope"></i></a></li>{% endif %}

</ul>
</section>
</div>

<div class="footer-widget-2">
<section class="widget editable">
<ul class="menu">
<li class="menu-item"><a href="/about/" itemprop="url">Full Width Content</a></li>
<li class="menu-item"><a href="/markup-html-tags-and-formatting/" itemprop="url">Content Sidebar</a></li>
</ul>
</section>
</div>

<div class="footer-widget-3">
<section class="widget editable">
<ul class="menu">
<li class="menu-item"><a href="/typography/" itemprop="url">Typography</a></li>
<li class="menu-item"><a href="/products/" itemprop="url">Products</a></li>
</ul>
</section>
</div>

<div class="footer-widget-4">
<section class="widget editable">
<ul class="menu">
<li class="menu-item"><a href="/typography/" itemprop="url">Typography</a></li>
<li class="menu-item"><a href="/products/" itemprop="url">Products</a></li>
</ul>
</section>
</div>

</div>
</div>
5 changes: 5 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<footer class="site-footer" itemscope itemtype="http://schema.org/WPFooter">
<div class="wrap">
<p><a href="{{ site.url }}">{{ site.title }}</a> &copy; {{ site.time | date: '%Y' }} &middot; <a href="http://github.com/bradonomics/jekyll-cart/" rel="nofollow">Built using Jekyll Cart</a></p>
</div>
</footer>
27 changes: 27 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<head>

<meta charset="UTF-8">

<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>

<meta name="description" content="{% if page.description %}{{ page.description }}{% else %}{{ page.content | strip_html | strip | truncate: 160 }}{% endif %}">

<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="canonical" href="{{ site.url }}{{ page.url }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ site.url }}/feed.xml">

<meta property="og:url" content="{{ site.url }}{{ page.url }}">
<meta property="og:title" content="{% if page.title %}{{ page.title }}{% elsif page.headline %}{{ page.headline }}{% else %}{{ site.title }}{% endif %}">
<meta property="og:description" content="{% if page.description %}{{ page.description }}{% else %}{{ page.content | strip_html | strip | truncate: 160 }}{% endif %}">
<meta property="og:image" content="{% if page.facebook_image_path %}{{ page.facebook_image_path }}{% elsif page.featured_image_path %}{{ page.featured_image_path }}{% else %}{{ site.url }}/images/default.jpg{% endif %}">

<meta http-equiv="x-dns-prefetch-control" content="on">
<link rel="dns-prefetch" href="https://fonts.googleapis.com">

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Martel:200,700,900|Open+Sans:400,700|Roboto+Condensed:700">
<link rel="stylesheet" href="{{ site.url }}/css/main.css">

</head>
19 changes: 19 additions & 0 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<header class="site-header" itemscope itemtype="http://schema.org/WPHeader">
<div class="wrap">

<div class="title-area">
<h1 class="site-title" itemprop="headline"><a href="/">{{ site.title }}</a></h1>
</div>

{% include navigation.html %}

<nav class="nav-secondary mobile-show" itemscope itemtype="http://schema.org/SiteNavigationElement" aria-label="Secondary navigation">
<ul class="jekyll-nav-menu">
<li class="menu-item">
<a href="/cart/" id="cart-menu">Cart <span class="fa fa-shopping-cart"></span> (<span class="simpleCart_quantity"></span>)</a>
</li>
</ul>
</nav>

</div>
</header>
28 changes: 28 additions & 0 deletions _includes/navigation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<nav class="nav-primary" itemscope itemtype="http://schema.org/SiteNavigationElement" aria-label="Main navigation">
<ul class="jekyll-nav-menu">

{% for menu-item in site.data.navigation %}

<li class="menu-item{% if menu-item.url == page.url %} active{% endif %}">
<a href="{{ menu-item.url }}">{{ menu-item.title }}</a>

{% if menu-item.sub-menu-items %}
<ul class="sub-menu">

{% for sub-menu-item in menu-item.sub-menu-items %}
<li class="menu-item"><a href="{{ sub-menu-item.url }}">{{ sub-menu-item.title }}</a></li>
{% endfor %}

</ul>
{% endif %}

</li>

{% endfor %}

<li class="menu-item cart{% if page.url == '/cart/' %} active{% endif %}">
<a href="/cart/" id="cart-menu">Cart <span class="fa fa-shopping-cart"></span> (<span class="simpleCart_quantity"></span>)</a>
</li>

</ul>
</nav>
16 changes: 16 additions & 0 deletions _includes/post-taxonomies.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{% unless page.categories == empty %}
<span class="entry-categories">Filed Under:
{% for category in page.categories %}
<a href="/category/{{ category | slugify }}/" rel="category">{{ category | downcase }}</a>{% unless forloop.last %}, {% endunless %}
{% endfor %}
</span>
{% endunless %}


{% unless page.tags == empty %}
<span class="entry-tags">Tagged With:
{% for tag in page.tags %}
<a href="/tag/{{ tag | slugify }}/" rel="tag">{{ tag | downcase }}</a>{% unless forloop.last %}, {% endunless %}
{% endfor %}
</span>
{% endunless %}
14 changes: 14 additions & 0 deletions _includes/sidebar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<aside class="sidebar" role="complementary" aria-label="Primary Sidebar" itemscope itemtype="http://schema.org/WPSideBar">

<section class="widget">
<h3 class="widget-title">Recent Posts</h3>
<ul>
{% for post in site.posts limit:3 %}
<li>
<a href="{{ post.url }}">{{ post.title }}</a>
</li>
{% endfor %}
</ul>
</section>

</aside>
Loading

0 comments on commit 485def1

Please sign in to comment.