json-theme-even-fork/components/meta.js
2023-01-30 02:48:52 +01:00

12 lines
313 B
JavaScript

import html from '../utils/html.js'
import markdown from '../utils/markdown.js'
export default function Meta(basics = {}) {
const { name, summary } = basics
return html`
${name && html`<title>${name}</title>`}
${summary && html`<meta name="description" content="${markdown(summary, true)}">`}
`
}