Skip to content

Commit

Permalink
remove gcweb and wet-boew dependencies; update script and stylesheet …
Browse files Browse the repository at this point in the history
…links to use CDN

closes #3
  • Loading branch information
shawnthompson committed Dec 6, 2024
1 parent bb2f784 commit e4663f7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 35 deletions.
2 changes: 0 additions & 2 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module.exports = function(eleventyConfig) {
const moment = require("moment");

eleventyConfig.addPassthroughCopy({ "./node_modules/wet-boew/" : "wet-boew" });
eleventyConfig.addPassthroughCopy({ "./node_modules/gcweb/" : "gcweb" });
eleventyConfig.addPassthroughCopy({ "./src/_docs" : "docs" });
eleventyConfig.addPassthroughCopy({ "./src/_images" : "img" });
eleventyConfig.addPassthroughCopy({ "./src/CNAME" : "CNAME" });
Expand Down
24 changes: 1 addition & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,5 @@
"moment": "^2.29.1",
"npm-run-all": "^4.1.5",
"sass": "^1.32.12"
},
"dependencies": {
"gcweb": "github:wet-boew/themes-cdn#v9.4.1-gcweb",
"wet-boew": "github:wet-boew/wet-boew-cdn#v4.0.43.1"
}
}
9 changes: 5 additions & 4 deletions src/_includes/layouts/base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@

{% include "partials/footer.njk" %}

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.js"></script>
<script src="{{ rootPath }}wet-boew/js/wet-boew.min.js"></script>
<script src="{{ rootPath }}gcweb/js/theme.min.js"></script>
</body>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
<script src="https://www.canada.ca/etc/designs/canada/wet-boew/js/wet-boew.min.js"></script>
<script src="https://www.canada.ca/etc/designs/canada/wet-boew/js/theme.min.js"></script>

</body>
</html>
4 changes: 2 additions & 2 deletions src/_includes/partials/head.njk
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<meta content="width=device-width,initial-scale=1" name="viewport">
<meta name="description" content="{{ description }}">
<link rel="alternate" hreflang="{{ otherLang }}" href="{{ rootPath }}{{ toggleURL | replace('index', '') }}" />
<link href="{{ rootPath }}gcweb/assets/favicon.ico" rel="icon" type="image/x-icon">
<link href="https://www.canada.ca/etc/designs/canada/wet-boew/assets/favicon.ico" rel="icon" type="image/x-icon">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous" />
<link rel="stylesheet" href="{{ rootPath }}gcweb/css/theme.min.css"/>
<link rel="stylesheet" href="https://www.canada.ca/etc/designs/canada/wet-boew/css/theme.min.css" />
<link rel="stylesheet" href="{{ rootPath }}css/da11yn.css">
</head>

0 comments on commit e4663f7

Please sign in to comment.