Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add in canvas_lines and canvas_sphere to background animation. #1595

Merged
merged 1 commit into from
Apr 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,15 @@ fancybox: true
# Canvas-nest
canvas_nest: false

#three_waves
# three_waves
three_waves: false

# canvas_lines
canvas_lines: false

# canvas_sphere
canvas_sphere: false

# Only fit scheme Pisces
# Canvas-ribbon
canvas_ribbon: false
Expand Down Expand Up @@ -539,8 +545,19 @@ vendors:

# three
three:

# three_waves
# https://github.com/jjandxa/three_waves
three_waves:

# three_waves
# https://github.com/jjandxa/canvas_lines
canvas_lines:

# three_waves
# https://github.com/jjandxa/canvas_sphere
canvas_sphere:

# Internal version: 1.0.0
# https://github.com/zproo/canvas-ribbon
canvas_ribbon:
Expand Down
10 changes: 10 additions & 0 deletions layout/_scripts/vendors.swig
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@
{% set js_vendors.three_waves = 'three/three-waves.min.js' %}
{% endif %}

{% if theme.canvas_lines %}
{% set js_vendors.three = 'three/three.min.js' %}
{% set js_vendors.canvas_lines = 'three/canvas_lines.min.js' %}
{% endif %}

{% if theme.canvas_sphere %}
{% set js_vendors.three = 'three/three.min.js' %}
{% set js_vendors.canvas_sphere = 'three/canvas_sphere.min.js' %}
{% endif %}

{% if theme.canvas_ribbon and theme.scheme === 'Pisces'%}
{% set js_vendors.canvas_ribbon = 'canvas-ribbon/canvas-ribbon.js' %}
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion source/css/_variables/base.styl
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ $headband-bg = $black-deep
// Variables for header section elements.
// --------------------------------------------------

$head-bg = white
$head-bg = transparent

// Site Meta
$site-meta-text-align = center
Expand Down
Loading