https://github.com/peixin/hexo-git-username-coauthor
Give your post an default coauthor from git user name
https://github.com/peixin/hexo-git-username-coauthor
author coauthor git-username hexo
Last synced: over 1 year ago
JSON representation
Give your post an default coauthor from git user name
- Host: GitHub
- URL: https://github.com/peixin/hexo-git-username-coauthor
- Owner: peixin
- License: mit
- Created: 2019-12-03T15:54:06.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T02:14:05.000Z (over 3 years ago)
- Last Synced: 2025-02-07T13:12:54.960Z (over 1 year ago)
- Topics: author, coauthor, git-username, hexo
- Language: JavaScript
- Size: 1.37 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hexo-git-username-coauthor
[](https://github.com/peixin/hexo-git-username-coauthor/workflows/build/badge.svg) [](https://github.com/facebook/jest) [](https://coveralls.io/github/peixin/hexo-git-username-coauthor?branch=master) [](https://badge.fury.io/js/hexo-git-username-coauthor)
Coauthor from git global username plugin for [Hexo](http://hexo.io/).
## Installation
``` bash
$ yarn add hexo-git-username-coauthor
```
or
``` bash
$ npm install hexo-git-username-coauthor --save
```
> This Plugin use es6 syntax, make sure your node support it.
## Usage
After installation, when you `hexo new whatever-your-title-is`, your post/page markdown file will have a coauthor attribute, get from git global username, like below:
```
---
title: I love Hexo!
date: 2016-05-20 16:20
coauthor: liupeixin
---
```
## And Then
After generate coauthor property, you can use like [hexo-next-coauthor](https://github.com/theme-next/hexo-next-coauthor) theme to show coauthor.
## License
MIT