add codeblock highlighting, honestly a lot of stuff was changed, iceshrimp and sharkey updates + tips
All checks were successful
/ build (push) Successful in 3m22s
All checks were successful
/ build (push) Successful in 3m22s
This commit is contained in:
parent
89892d3e0c
commit
ecd3a73aaa
14 changed files with 392 additions and 87 deletions
|
|
@ -2,13 +2,14 @@ import { minify } from "terser";
|
|||
import { transform } from "lightningcss";
|
||||
import eleventyNavigationPlugin from "@11ty/eleventy-navigation";
|
||||
import pluginFilters from "./_config/filters.js";
|
||||
import syntaxHighlight from "@11ty/eleventy-plugin-syntaxhighlight";
|
||||
|
||||
export default function(eleventyConfig) {
|
||||
eleventyConfig.addPassthroughCopy("assets/");
|
||||
eleventyConfig.addPassthroughCopy({ "sneexy/notebook/": "~sneexy/notebook/" }); // notebook page generated by quartz seperately - see https://forged.synth.download/sneexy/notebook
|
||||
|
||||
// our custom filters
|
||||
eleventyConfig.addPlugin(eleventyNavigationPlugin);
|
||||
eleventyConfig.addPlugin(pluginFilters);
|
||||
eleventyConfig.addPlugin(syntaxHighlight);
|
||||
eleventyConfig.addPassthroughCopy("assets/");
|
||||
|
||||
eleventyConfig.addFilter("cssmin", function (code) {
|
||||
const result = transform({
|
||||
|
|
@ -22,6 +23,4 @@ export default function(eleventyConfig) {
|
|||
const minified = await minify(code);
|
||||
return minified.code;
|
||||
});
|
||||
|
||||
eleventyConfig.addPlugin(eleventyNavigationPlugin);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue