Skip to content

Commit

Permalink
Merge pull request #1327 from AlynxZhou/master
Browse files Browse the repository at this point in the history
Added canvas-nest.min.js in a better way.
  • Loading branch information
iissnan authored Jan 5, 2017
2 parents 1d81159 + 88eb2b7 commit 849ecb7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,8 @@ use_motion: true
# Fancybox
fancybox: true

# Canvas-nest
canvas_nest: false

# Script Vendors.
# Set a CDN address for the vendor you want to customize.
Expand Down Expand Up @@ -461,6 +463,10 @@ vendors:
algolia_instant_js:
algolia_instant_css:

# Internal version: 1.0.0
# https://github.com/hustcc/canvas-nest.js
canvas_nest:



# Assets
Expand Down
3 changes: 3 additions & 0 deletions layout/_scripts/vendors.swig
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
{% if theme.fancybox %}
{% set js_vendors.fancybox = 'fancybox/source/jquery.fancybox.pack.js?v=2.1.5' %}
{% endif %}
{% if theme.canvas_nest %}
{% set js_vendors.canvas_nest = 'canvas-nest/canvas-nest.min.js' %}
{% endif %}

{% for name, internal in js_vendors %}
{% set internal_script = url_for(theme.vendors._internal) + '/' + internal %}
Expand Down
1 change: 1 addition & 0 deletions source/lib/canvas-nest/canvas-nest.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 849ecb7

Please sign in to comment.