Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

Commit

Permalink
move js to footer
Browse files Browse the repository at this point in the history
  • Loading branch information
eddietejeda committed Nov 26, 2019
1 parent 65ed8c1 commit eb7d59b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
3 changes: 3 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,8 @@
ga('send', 'pageview');
</script>

<script src="{{site.baseurl}}/assets/uswds/js/uswds.min.js"></script>
{% asset index.js %}

</body>
</html>
6 changes: 1 addition & 5 deletions _includes/meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,5 @@
<!-- CSS
================================================== -->
<link rel="stylesheet" href="{{site.baseurl}}/assets/uswds/css/uswds.min.css" />
{% asset index.scss %}

<script src="{{site.baseurl}}/assets/uswds/js/uswds.min.js"></script>
{% asset index.js %}

{% asset index.scss %}
</head>
3 changes: 1 addition & 2 deletions build.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
when "clean"
puts "> cleaning..."
FileUtils.rm_rf('assets/uswds')
FileUtils.rm_rf('_site')
when "uswds"
puts "> building USWDS..."
FileUtils.mkdir_p 'assets/uswds'
Expand All @@ -15,5 +14,5 @@
FileUtils.cp_r "node_modules/uswds/dist/fonts", "assets/uswds/"
FileUtils.cp_r "node_modules/uswds/dist/js", "assets/uswds/"
else
"Not an option"
puts "> build.rb: Not an option"
end

0 comments on commit eb7d59b

Please sign in to comment.