diff --git a/Gemfile b/Gemfile
index 60c73626e..6043325ed 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,7 +1,5 @@
source 'https://rubygems.org' do
gem 'jekyll-tidy'
- gem 'octopress-autoprefixer'
- gem 'jekyll-contentblocks'
gem 'jekyll-redirect-from'
gem 'jekyll-toc'
gem 'jekyll-random'
diff --git a/_config.yml b/_config.yml
index 3e487efeb..26ed9118d 100644
--- a/_config.yml
+++ b/_config.yml
@@ -5,7 +5,6 @@ source: src
plugins:
- jekyll-tidy
- - jekyll-contentblocks
- jekyll-toc
- jekyll-random
diff --git a/package.json b/package.json
index a9da1fc60..293c1eb9f 100644
--- a/package.json
+++ b/package.json
@@ -40,7 +40,6 @@
"gulp-autoprefixer": "^4.0.0",
"gulp-rename": "^1.2.2",
"gulp-sass": "^3.1.0",
- "gulp-selectors": "^0.1.10",
"npm-run-all": "^4.1.2"
},
"dependencies": {},
diff --git a/src/_includes/cards/chart-pie.html b/src/_includes/cards/chart-pie.html
index 3f9fc59f7..ca2459604 100644
--- a/src/_includes/cards/chart-pie.html
+++ b/src/_includes/cards/chart-pie.html
@@ -6,7 +6,3 @@
-
-{% contentfor scripts %}
-{% include js/pie.js %}
-{% endcontentfor %}
\ No newline at end of file
diff --git a/src/_includes/cards/chart-radar.html b/src/_includes/cards/chart-radar.html
index 3800140de..46b4d832f 100644
--- a/src/_includes/cards/chart-radar.html
+++ b/src/_includes/cards/chart-radar.html
@@ -5,7 +5,4 @@
-
-
-{% contentfor scripts %}
-{% endcontentfor %}
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/_includes/cards/form-all-elements.html b/src/_includes/cards/form-all-elements.html
index 266c53f46..85d4f9a27 100644
--- a/src/_includes/cards/form-all-elements.html
+++ b/src/_includes/cards/form-all-elements.html
@@ -605,7 +605,6 @@
-{% contentfor js %}
-{% endcontentfor %}
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/_includes/cards/table-sorted.html b/src/_includes/cards/table-sorted.html
index 1abfaacee..62cb3f6ce 100644
--- a/src/_includes/cards/table-sorted.html
+++ b/src/_includes/cards/table-sorted.html
@@ -40,16 +40,18 @@
-{% contentfor scripts %}
-requirejs(['tablesorter'], function() {
- $('#js-table-sorted').tablesorter({
- cssHeader: 'table-header',
- cssAsc: 'table-header-asc',
- cssDesc: 'table-header-desc',
- headers: {
- 0: { sorter: false },
- 4: { sorter: false },
- }
+
\ No newline at end of file
diff --git a/src/_includes/js/chart-circle.js b/src/_includes/js/chart-circle.js
index 05f8202f0..8df6cba47 100644
--- a/src/_includes/js/chart-circle.js
+++ b/src/_includes/js/chart-circle.js
@@ -1,39 +1,39 @@
-{% contentfor scripts %}
{% assign data = include.data | json_parse %}
{% assign show-labels = include.show-labels | default: false %}
{% assign show-legend = include.show-legend | default: true %}
{% assign type = include.type | default: 'donut' %}
-require(['c3'], function (c3) {
- var chart = c3.generate({
- bindto: '#{{ include.id }}',
- padding: {
- bottom: {% if show-legend %}24{% else %}0{% endif %},
- top: 0
- },
- data: {
- type: '{{ type }}',
- names: {
- {% for item in data %}
- data{{ forloop.index }}: '{{ item[0] }}',{% endfor %}
+require(['c3', 'jquery'], function (c3, $) {
+ $(document).ready(function() {
+ var chart = c3.generate({
+ bindto: '#{{ include.id }}',
+ padding: {
+ bottom: {% if show-legend %}24{% else %}0{% endif %},
+ top: 0
},
- columns: [
- {% for item in data %}
- ['data{{ forloop.index }}', {% if item[1].first %}{{ item[1][0] }}{% else %}{{ item[1] }}{% endif %}],{% endfor %}
- ],
- colors: {
- {% for item in data %}
- {% if item[1].first %}data{{ forloop.index }}: tabler.colors.{{ item[1][1] }},{% endif %}{% endfor %}
- }
- },
- {{ type }}: {
- label: {
- show: {% if show-labels %}true{% else %}false{% endif %}
- }
- },
- legend: {
- show: {% if show-legend %}true{% else %}false{% endif %}
- },
+ data: {
+ type: '{{ type }}',
+ names: {
+ {% for item in data %}
+ data{{ forloop.index }}: '{{ item[0] }}',{% endfor %}
+ },
+ columns: [
+ {% for item in data %}
+ ['data{{ forloop.index }}', {% if item[1].first %}{{ item[1][0] }}{% else %}{{ item[1] }}{% endif %}],{% endfor %}
+ ],
+ colors: {
+ {% for item in data %}
+ {% if item[1].first %}data{{ forloop.index }}: tabler.colors.{{ item[1][1] }},{% endif %}{% endfor %}
+ }
+ },
+ {{ type }}: {
+ label: {
+ show: {% if show-labels %}true{% else %}false{% endif %}
+ }
+ },
+ legend: {
+ show: {% if show-legend %}true{% else %}false{% endif %}
+ },
+ });
});
-});
-{% endcontentfor %}
\ No newline at end of file
+});
\ No newline at end of file
diff --git a/src/_layouts/base.html b/src/_layouts/base.html
index 976e546f4..a792f9a10 100644
--- a/src/_layouts/base.html
+++ b/src/_layouts/base.html
@@ -29,19 +29,5 @@
{{ content }}
-{% ifhascontent scripts %}
-
-{% endifhascontent %}
-
-{% ifhascontent js %}
-{% contentblock js no-convert %}
-{% endifhascontent %}
-