import { html, css, sanitize } from '../templater.js' import base from '../styles/base.js' const body = async (ctx, { path, title }) => html` ` const styles = css` footer { display: flex; flex-wrap: wrap; } footer > * { flex: 1; flex-basis: 30rem; margin: 2rem; margin-bottom: 0; padding-bottom: 2rem; border-bottom: 1px solid rgba(0, 0, 0, 0.1); } footer dt { font-weight: bolder; } footer dd { margin-left: 1rem; } ` export async function Footer (ctx, { path, title }) { ctx.css.add(styles) ctx.body = await body(ctx, { path, title }) return ctx }