Skip to content

Commit

Permalink
feat: add an option to make authors not be displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
GabsEdits committed Jul 27, 2024
1 parent aa035e4 commit 74af286
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

- Make Numeric Headings a plugin (slightly breaking change)

- Add an option to make authors not be displayed

## Cleanup(s)

- Add a ordering note for all lists (articles & plugins)
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/ArticleHead.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
)
}}
<span v-if="frontmatter.author">
<span v-if="!theme.articles.authors === false && frontmatter.author">
&middot; {{ frontmatter.author.length > 1 ? "Authors:" : "Author:" }}
<template v-for="(author, index) in frontmatter.author" :key="index">
{{ author
Expand Down

0 comments on commit 74af286

Please sign in to comment.