mirror of
https://github.com/ipdb/website.git
synced 2024-11-22 09:36:52 +01:00
Merge pull request #33 from ipdb/fix/pagejs
Fix loading of page-specific js
This commit is contained in:
commit
eb845bfb1a
@ -1,7 +1,7 @@
|
||||
<div class="grid grid--full grid-medium--columns grid--gutters">
|
||||
<div class="grid__col grid__col--4">
|
||||
|
||||
<form class="form form--contact" id="form-contact" action="{{ config.site.forms.contact }}" method="POST" accept-charset="UTF-8">
|
||||
<form class="form form--contact" id="form-contact" action="{{ site.forms.contact }}" method="POST" accept-charset="UTF-8">
|
||||
<div class="form__group required">
|
||||
<label class="form__label" for="name">Your Name</label>
|
||||
<input class="form__control" type="text" id="name" name="name" required placeholder=" ">
|
||||
|
@ -8,9 +8,9 @@
|
||||
<script src="/assets/js/ipdb.min.js"></script>
|
||||
|
||||
{% if page.js %}
|
||||
<script src="/assets/js/{{ page.js }}"></script>
|
||||
<script src="/assets/js/{{ page.js }}.min.js"></script>
|
||||
{% elsif layout.js %}
|
||||
<script src="/assets/js/{{ layout.js }}"></script>
|
||||
<script src="/assets/js/{{ layout.js }}.min.js"></script>
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
16
package.json
16
package.json
@ -36,16 +36,16 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-core": "^6.26.0",
|
||||
"babel-eslint": "^8.0.0",
|
||||
"babel-preset-env": "^1.6.0",
|
||||
"babel-eslint": "^8.0.1",
|
||||
"babel-preset-env": "^1.6.1",
|
||||
"browser-sync": ">=2.10.0",
|
||||
"concurrent-transform": "^1.0.0",
|
||||
"critical": "^0.9.1",
|
||||
"cross-spawn": "^5.1.0",
|
||||
"del": "^3.0.0",
|
||||
"eslint": "^4.7.2",
|
||||
"eslint": "^4.10.0",
|
||||
"eslint-config-ascribe": "^3.0.4",
|
||||
"eslint-plugin-import": "^2.7.0",
|
||||
"eslint-plugin-import": "^2.8.0",
|
||||
"gulp": "github:gulpjs/gulp#4.0",
|
||||
"gulp-autoprefixer": "^4.0.0",
|
||||
"gulp-awspublish": "^3.0.0",
|
||||
@ -56,7 +56,7 @@
|
||||
"gulp-header": "^1.8.9",
|
||||
"gulp-htmlmin": "^3.0.0",
|
||||
"gulp-if": "^2.0.2",
|
||||
"gulp-imagemin": "^3.3.0",
|
||||
"gulp-imagemin": "^3.4.0",
|
||||
"gulp-include": "^2.0.2",
|
||||
"gulp-load-plugins": "^1.5.0",
|
||||
"gulp-rename": "^1.2.2",
|
||||
@ -69,11 +69,11 @@
|
||||
"gulp-uglify": "^3.0.0",
|
||||
"gulp-util": "^3.0.6",
|
||||
"js-yaml": "^3.10.0",
|
||||
"request": "^2.82.0",
|
||||
"stylelint": "^8.1.1",
|
||||
"request": "^2.83.0",
|
||||
"stylelint": "^8.2.0",
|
||||
"stylelint-config-bigchaindb": "^1.0.0",
|
||||
"stylelint-config-standard": "^17.0.0",
|
||||
"uglify-es": "^3.1.2"
|
||||
"uglify-es": "^3.1.6"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=7.0.0"
|
||||
|
Loading…
Reference in New Issue
Block a user