diff options
| author | seth <[email protected]> | 2023-05-16 03:53:24 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-05-16 04:08:37 -0400 |
| commit | 681cd8c1cc2904c562f9a58db3cbb657d58fb552 (patch) | |
| tree | 9255f71e577fc82f079c16ff493f432ca5557284 /_config.ts | |
| parent | bf4df962be338c08ae41bed94b1d60b2930fca9f (diff) | |
feat: rewrite with astro
Diffstat (limited to '_config.ts')
| -rw-r--r-- | _config.ts | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/_config.ts b/_config.ts deleted file mode 100644 index f2c6508..0000000 --- a/_config.ts +++ /dev/null @@ -1,73 +0,0 @@ -import lume from "lume/mod.ts"; -import attributes from "lume/plugins/attributes.ts"; -import base_path from "lume/plugins/base_path.ts"; -import code_highlight from "lume/plugins/code_highlight.ts"; -import date from "lume/plugins/date.ts"; -import remark from "lume/plugins/remark.ts"; -import postcss from "lume/plugins/postcss.ts"; -import sass from "lume/plugins/sass.ts"; -import sitemap from "lume/plugins/sitemap.ts"; -import tailwindcss from "lume/plugins/tailwindcss.ts"; -import tailwind_catppuccin from "npm:@catppuccin/[email protected]"; - -const getGitRevision = async () => { - const p = Deno.run({ - cmd: ["git", "rev-parse", "HEAD"], - stdout: "piped", - }); - const [status, output] = await Promise.all([p.status(), p.output()]); - - if (status.success) { - return new TextDecoder().decode(output).trim().substring(0, 8); - } - - return null; -}; - -const site = lume({ - src: "./src", - location: new URL("https://getchoo.github.io"), -}); - -site.remoteFile( - "_includes/css/highlight.css", - "https://cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/styles/github-dark.min.css" -); - -site.use(attributes()) - .use(base_path()) - .use(code_highlight()) - .use(date()) - .use(remark()) - .use(sitemap()) - .use(sass()) - .use( - tailwindcss({ - options: { - plugins: [ - tailwind_catppuccin({ - defaultFlavour: "mocha", - }), - ], - }, - }) - ) - .use(postcss()) - .data("gitRevision", await getGitRevision()) - .ignore( - "README.md", - "LICENSE", - ".gitignore", - ".gitattributes", - "flake.nix", - "flake.lock", - ".editorconfig", - ".prettierignore", - ".envrc" - ) - .copy("favicon.ico") - .copy("files") - .copy("imgs") - .copy("js"); - -export default site; |
