2023-01-30 02:38:45 +01:00
|
|
|
import html from '../utils/html.js'
|
|
|
|
import markdown from '../utils/markdown.js'
|
|
|
|
|
2023-09-28 02:50:43 +02:00
|
|
|
/**
|
|
|
|
* @param {import('../schema.d.ts').ResumeSchema['basics']} basics
|
|
|
|
* @returns {string}
|
|
|
|
*/
|
2023-01-30 02:38:45 +01:00
|
|
|
export default function Meta(basics = {}) {
|
|
|
|
const { name, summary } = basics
|
|
|
|
|
|
|
|
return html`
|
|
|
|
${name && html`<title>${name}</title>`}
|
2023-10-08 01:23:03 +02:00
|
|
|
${summary && html`<meta name="description" content="${markdown(summary, true)}" />`}
|
2023-01-30 02:38:45 +01:00
|
|
|
`
|
|
|
|
}
|