From 3f31251769379fc05988a588adcb8e71225657a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Mon, 11 Oct 2021 21:10:08 +0200 Subject: [PATCH] feat: chaffle now inline --- .eleventy.js | 1 - README.md | 2 +- src/_includes/javascript/chaffle.min.js | 1 + src/_includes/layout.njk | 4 +++- 4 files changed, 5 insertions(+), 3 deletions(-) create mode 120000 src/_includes/javascript/chaffle.min.js diff --git a/.eleventy.js b/.eleventy.js index 4785644..179d798 100755 --- a/.eleventy.js +++ b/.eleventy.js @@ -16,7 +16,6 @@ module.exports = function (eleventyConfig) { eleventyConfig.setLibrary("md", markdownLib); eleventyConfig.addWatchTarget("./src/scss/"); eleventyConfig.addPassthroughCopy({ - "node_modules/chaffle/docs/chaffle.min.js": "javascript/chaffle.min.js", "assets/": "./", }); diff --git a/README.md b/README.md index 381a1f3..a1549c0 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ yarn run build ## Contributing This repository is under the [Contributing Covenant](https://www.contributor-covenant.org/) code of conduct. -See [`CONTRIBUTING`](https://git.inpt.fr/fainsil/personnal-website/-/blob/master/CONTRIBUTING.md) for more information. +See [`CONTRIBUTING.md`](https://git.inpt.fr/fainsil/personnal-website/-/blob/master/CONTRIBUTING.md) for more information.\ Please use [conventionnal commits](https://www.conventionalcommits.org/). ## License diff --git a/src/_includes/javascript/chaffle.min.js b/src/_includes/javascript/chaffle.min.js new file mode 120000 index 0000000..1d9d679 --- /dev/null +++ b/src/_includes/javascript/chaffle.min.js @@ -0,0 +1 @@ +../../../node_modules/chaffle/docs/chaffle.min.js \ No newline at end of file diff --git a/src/_includes/layout.njk b/src/_includes/layout.njk index 0bcca26..04c13ed 100755 --- a/src/_includes/layout.njk +++ b/src/_includes/layout.njk @@ -5,7 +5,9 @@ - + {{ username }} {% block head %}{% endblock head %}