deno.land / x / lume@v2.1.4 / plugins / base_path.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
import modifyUrls from "./modify_urls.ts";
import type Site from "../core/site.ts";
/** A plugin to prepend a base path to all internal URLs */export default function () { return (site: Site) => { site.use(modifyUrls({ fn: (url) => url.startsWith("/") ? site.url(url) : url, })); };}
lume

Version Info

Tagged at
7 months ago