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['references']} references
|
|
|
|
* @returns {string | false}
|
|
|
|
*/
|
2023-01-30 02:38:45 +01:00
|
|
|
export default function References(references = []) {
|
|
|
|
return references.length > 0 && html`
|
|
|
|
<section id="references">
|
|
|
|
<h3>References</h3>
|
|
|
|
<div class="stack">
|
|
|
|
${references.map(({ name, reference }) => html`
|
|
|
|
<blockquote>
|
|
|
|
${reference && markdown(reference)}
|
|
|
|
${name && html`
|
|
|
|
<p>
|
|
|
|
<cite>${name}</cite>
|
|
|
|
</p>
|
|
|
|
`}
|
|
|
|
</blockquote>
|
|
|
|
`)}
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
`
|
|
|
|
}
|