Takumi: route images, shared options, fonts and WebAssembly
Takumi: route images, shared options, fonts and WebAssembly
takumiOptionsin thegetConfig()of a route gives it an Open Graph image:titleanddescriptionfor the default template, or anodeto draw it yourself. A static page gets the image prerendered next to it (/about.webp), a dynamic page renders it on request under/_takumi, and both receive theog:imagemeta tags like a content page. A function form receives the route params.optionsontakumiPlugin()applies to every image, put values resolved once there, like the fonts fromgoogleFonts(). The options ofgenerate()override them per page.googleFontsandfontFromUrlare re-exported fromfumapress/plugins/takumi, andfumapress/plugins/takumi.wasmexports Takumi's WebAssembly build foroptions.module:takumi-jsno longer needs to be installed next tofumapress, which used to end up with two copies.- The options accepted by
generate()no longer dropquality,losslessandmodule.
Last updated on
