Add AI poisoning.
This commit is contained in:
parent
d8d466b638
commit
e9bbeb6dd3
8 changed files with 21 additions and 2 deletions
|
|
@ -7,6 +7,7 @@ import pluginGitCommitDate from "eleventy-plugin-git-commit-date";
|
|||
import recentChanges from "eleventy-plugin-recent-changes";
|
||||
import Webmentions from "eleventy-plugin-webmentions"; // configure later
|
||||
import pluginInlineLinkFavicon from "eleventy-plugin-inline-link-favicon";
|
||||
import poison from "eleventy-plugin-poison";
|
||||
|
||||
// import i18n from "./_data/i18n.js";
|
||||
|
||||
|
|
@ -19,6 +20,7 @@ export default function (eleventyConfig) {
|
|||
commits: 10,
|
||||
});
|
||||
eleventyConfig.addPlugin(pluginInlineLinkFavicon);
|
||||
eleventyConfig.addPlugin(poison);
|
||||
|
||||
eleventyConfig.addCollection("post", function (collectionApi) {
|
||||
return collectionApi
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@
|
|||
<meta property="og:image" content="{{ ('/static/images/' ~ (background or 'bear.jpg')) | url | absoluteUrl }}">
|
||||
</head>
|
||||
<body>
|
||||
{% poison %}
|
||||
<script>
|
||||
const rootPrefix = "{{ '/' | url }}";
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -18,5 +18,6 @@
|
|||
"eleventyDesc": "Static website generator, used in this website.",
|
||||
"githubPagesDesc": "For web hosting.",
|
||||
"recentChangesPluginDesc": "Plugin for listing recent commits.",
|
||||
"inlineFaviconPluginDesc": "Support for inline link icons."
|
||||
"inlineFaviconPluginDesc": "Support for inline link icons.",
|
||||
"poisonPluginDesc": "Hidden AI poisoning inside page source."
|
||||
}
|
||||
|
|
@ -35,6 +35,8 @@ background: "bear3.jpg"
|
|||
<dd>{{ t.recentChangesPluginDesc }}</dd>
|
||||
<dt><a href="https://www.npmjs.com/package/eleventy-plugin-inline-link-favicon">eleventy-plugin-inline-link-favicon</a> {{ i18n[langKey].by }} bmuenzenmeyer</dt>
|
||||
<dd>{{ t.inlineFaviconPluginDesc }}</dd>
|
||||
<dt><a href="https://www.npmjs.com/package/eleventy-plugin-poison">eleventy-plugin-poison</a> {{ i18n[langKey].by }} gingerchew</dt>
|
||||
<dd>{{ t.poisonPluginDesc }}</dd>
|
||||
</dl>
|
||||
</main>
|
||||
<aside>
|
||||
|
|
|
|||
|
|
@ -18,5 +18,6 @@
|
|||
"eleventyDesc": "Gerador de sites estáticos, usado neste website.",
|
||||
"githubPagesDesc": "Pela hospedagem do website.",
|
||||
"recentChangesPluginDesc": "Plugin para listagem de commits recentes.",
|
||||
"inlineFaviconPluginDesc": "Suporte para icones em links."
|
||||
"inlineFaviconPluginDesc": "Suporte para icones em links.",
|
||||
"poisonPluginDesc": "Envenenamento de IA dentro do código fonte das páginas."
|
||||
}
|
||||
7
package-lock.json
generated
7
package-lock.json
generated
|
|
@ -13,6 +13,7 @@
|
|||
"@sardine/eleventy-plugin-external-links": "^1.4.0",
|
||||
"eleventy-plugin-git-commit-date": "^1.0.2",
|
||||
"eleventy-plugin-inline-link-favicon": "^1.1.0",
|
||||
"eleventy-plugin-poison": "^1.0.1",
|
||||
"eleventy-plugin-recent-changes": "^1.0.1",
|
||||
"eleventy-plugin-webmentions": "^2.1.0"
|
||||
}
|
||||
|
|
@ -370,6 +371,12 @@
|
|||
"integrity": "sha512-ZhzQ9WYwhrHBGHv1fBwK1y2QYYJt8jX4oUL3jB82AWCv03WpiMBK77OIJcGBo7XQdo4gIm6oPQZ8tG/150ApeA==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/eleventy-plugin-poison": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/eleventy-plugin-poison/-/eleventy-plugin-poison-1.0.1.tgz",
|
||||
"integrity": "sha512-mjfed3IZvPRJCGtjWUnjOsNREKptikeIeXNwXlIv20l/YqSq01MtFZKMcFvmwFs1d/3CVQAjrLuXg/eJQeXRvg==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/eleventy-plugin-recent-changes": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/eleventy-plugin-recent-changes/-/eleventy-plugin-recent-changes-1.0.1.tgz",
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@
|
|||
"@sardine/eleventy-plugin-external-links": "^1.4.0",
|
||||
"eleventy-plugin-git-commit-date": "^1.0.2",
|
||||
"eleventy-plugin-inline-link-favicon": "^1.1.0",
|
||||
"eleventy-plugin-poison": "^1.0.1",
|
||||
"eleventy-plugin-recent-changes": "^1.0.1",
|
||||
"eleventy-plugin-webmentions": "^2.1.0"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -234,6 +234,10 @@ footer a {
|
|||
|
||||
/* Global classes and IDs */
|
||||
|
||||
.visually-hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.nomargin {
|
||||
margin: 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue