Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 14 days 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 (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T02:14:05.000Z (about 2 years ago)
- Last Synced: 2024-12-10T23:47:49.425Z (about 1 month 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
[![Build Status](https://github.com/peixin/hexo-git-username-coauthor/workflows/build/badge.svg)](https://github.com/peixin/hexo-git-username-coauthor/workflows/build/badge.svg) [![jest](https://jestjs.io/img/jest-badge.svg)](https://github.com/facebook/jest) [![Coverage Status](https://coveralls.io/repos/github/peixin/hexo-git-username-coauthor/badge.svg?branch=master)](https://coveralls.io/github/peixin/hexo-git-username-coauthor?branch=master) [![npm version](https://badge.fury.io/js/hexo-git-username-coauthor.svg)](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