forked from shadowfacts/shadowfacts.net
Fix weird fancy link spacing
This commit is contained in:
parent
1dbf90b7a1
commit
26f718fa90
|
@ -37,12 +37,7 @@ export function chunk<T>(array: T[], size: number): Chunk<T>[] {
|
|||
}
|
||||
|
||||
export function fancyLink(text: string, href: string, meta?: string): string {
|
||||
return `
|
||||
<a href="${href}" class="fancy-link" ${meta || ""}>
|
||||
<span aria-hidden="true">{</span>
|
||||
${text}
|
||||
<span aria-hidden="true">}</span>
|
||||
</a>`;
|
||||
return `<a href="${href}" class="fancy-link" ${meta || ""}><span aria-hidden="true">{</span>${text}<span aria-hidden="true">}</span></a>`;
|
||||
}
|
||||
|
||||
export function render(template: string, data: any, filename?: string): string {
|
||||
|
|
Loading…
Reference in New Issue