diff --git a/static/src/js/app.js b/static/src/js/app.js index 170982a..cf35219 100644 --- a/static/src/js/app.js +++ b/static/src/js/app.js @@ -19,5 +19,7 @@ $(function() { // https://css-tricks.com/snippets/jquery/smooth-scrolling/ }); }); -React.render(, document.getElementById('project-images-types')); -React.render(, document.getElementById('project-images-main')); +if ($('body').hasClass('index')) { + React.render(, document.getElementById('project-images-types')); + React.render(, document.getElementById('project-images-main')); +}