16 lines
409 B
JavaScript
16 lines
409 B
JavaScript
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)}">`}
|
|
`
|
|
}
|