Update deps
This commit is contained in:
parent
34d0e4ee15
commit
4f50e4ce36
3 changed files with 308 additions and 281 deletions
10
_config.ts
10
_config.ts
|
@ -4,16 +4,16 @@ import date from "lume/plugins/date.ts";
|
|||
import read_info from "lume/plugins/reading_info.ts";
|
||||
import code_highlight from "lume/plugins/code_highlight.ts";
|
||||
import createSlugifier from "lume/core/slugifier.ts";
|
||||
import { encode } from "std/encoding/base64.ts";
|
||||
import { default as anchor } from "npm:markdown-it-anchor@8.6.5";
|
||||
import { default as ins } from "npm:markdown-it-ins@3.0.1";
|
||||
import { encodeBase64 } from "jsr:@std/encoding";
|
||||
import { default as anchor } from "npm:markdown-it-anchor@9.2.0";
|
||||
import { default as ins } from "npm:markdown-it-ins@4.0.0";
|
||||
|
||||
const site = lume({}, {
|
||||
markdown: {
|
||||
options: {
|
||||
typographer: true,
|
||||
},
|
||||
keepDefaultPlugins: true,
|
||||
useDefaultPlugins: true,
|
||||
plugins: [[anchor, {
|
||||
permalink: anchor.permalink.headerLink({ safariReaderFix: true }),
|
||||
slugify: createSlugifier(),
|
||||
|
@ -25,7 +25,7 @@ site.helper(
|
|||
"asset",
|
||||
async (name) =>
|
||||
`/x/${name}?v=${
|
||||
encode(
|
||||
encodeBase64(
|
||||
(await crypto.subtle.digest(
|
||||
"SHA-256",
|
||||
await Deno.readFile(site.root(`x/${name}`)),
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"imports": {
|
||||
"lume/": "https://deno.land/x/[email protected]/",
|
||||
"std/": "https://deno.land/[email protected]/",
|
||||
"lume/": "https://deno.land/x/[email protected]/",
|
||||
"https://deno.land/[email protected]/": "https://deno.land/[email protected]/",
|
||||
"https://deno.land/[email protected]/": "https://deno.land/[email protected]/"
|
||||
}
|
||||
|
|
Loadingâ¦
Reference in a new issue