feat: chaffle now inline

This commit is contained in:
Laureηt 2021-10-11 21:10:08 +02:00
parent 0b71fb0b52
commit 3f31251769
No known key found for this signature in database
GPG key ID: D88C6B294FD40994
4 changed files with 5 additions and 3 deletions

View file

@ -16,7 +16,6 @@ module.exports = function (eleventyConfig) {
eleventyConfig.setLibrary("md", markdownLib); eleventyConfig.setLibrary("md", markdownLib);
eleventyConfig.addWatchTarget("./src/scss/"); eleventyConfig.addWatchTarget("./src/scss/");
eleventyConfig.addPassthroughCopy({ eleventyConfig.addPassthroughCopy({
"node_modules/chaffle/docs/chaffle.min.js": "javascript/chaffle.min.js",
"assets/": "./", "assets/": "./",
}); });

View file

@ -54,7 +54,7 @@ yarn run build
## Contributing ## Contributing
This repository is under the [Contributing Covenant](https://www.contributor-covenant.org/) code of conduct. 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/). Please use [conventionnal commits](https://www.conventionalcommits.org/).
## License ## License

1
src/_includes/javascript/chaffle.min.js vendored Symbolic link
View file

@ -0,0 +1 @@
../../../node_modules/chaffle/docs/chaffle.min.js

View file

@ -5,7 +5,9 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" type="image/x-icon" href="{{ '/favicon.png' | url }}"> <link rel="shortcut icon" type="image/x-icon" href="{{ '/favicon.png' | url }}">
<script src="{{ '/javascript/chaffle.min.js' | url }}"></script> <script>
{% include "javascript/chaffle.min.js" %}
</script>
<title>{{ username }}</title> <title>{{ username }}</title>
{% block head %}{% endblock head %} {% block head %}{% endblock head %}
<style> <style>