alexander-heimbuch / vuepress-theme-casper

Ghost default theme ported to vuepress
http://alexander.heimbu.ch/vuepress-theme-casper
107 stars 48 forks source link

Introduce authors #22

Closed mawit closed 4 years ago

mawit commented 4 years ago

With this PR it is possible to enter an author for a post.

New fields for frontmatter:

author:
  link: /category/dexter
  name: Dexter
  gravatar: 2bfa103a13c88b5ffd26da6f982f11df

Mandatory fields (if author is added):

gravatar is not mandatory. It is simply not shown if one does not specify any. It is also possible to define a default gravatar for the whole blog in themeConfig.defaultAuthorGravatar. I use only the hashes there to not disclose email addresses.

If author is not present in frontmatter there is not author shown for the post.

alexander-heimbuch commented 4 years ago

Thanks for the contributions, I will have a look this weekend to get them merged and released!

mawit commented 4 years ago

I have tried to fix this in https://github.com/alexander-heimbuch/vuepress-theme-casper/pull/22/commits/34dedb5b5459bde75cfb323817ead5e73de7814d but unsure if this is what you meant.

alexander-heimbuch commented 4 years ago

closed in favour for #24