json-theme-even-fork/components/meta.js

16 lines
411 B
JavaScript
Raw Permalink Normal View History

import html from '../utils/html.js'
import markdown from '../utils/markdown.js'
/**
* @param {import('../schema.d.ts').ResumeSchema['basics']} basics
* @returns {string}
*/
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)}" />`}
`
}