Skip to content

Commit

Permalink
Move source url to frontmatter
Browse files Browse the repository at this point in the history
  • Loading branch information
tatarianBarbarian committed Sep 15, 2023
1 parent 7a1082c commit f615ec9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ const onRendererPageEnd =

let prependix = `---
title: '${event.model.name}'
sources:
${event.model?.sources.map(source => ` - ${source.url}`).join('\n')}
${objectToFrontmatter(frontmatterObject)}
---
Expand Down
2 changes: 2 additions & 0 deletions theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,6 @@ class CustomMarkdownThemeContext extends MarkdownThemeRenderContext {

return constructedUrl
}

sources = () => ''
}

0 comments on commit f615ec9

Please sign in to comment.