Skip to content
Give your post an default coauthor from git user name
JavaScript Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
__tests__
deploy
src
.eslintrc.js
.gitignore
.nvmrc
LICENSE
README.md
babel.config.js
jest.config.js
package.json
yarn.lock

README.md

hexo-git-username-coauthor

Build Status jest Coverage Status npm version

Coauthor from git global username plugin for Hexo.

Installation

$ yarn add hexo-git-username-coauthor

or

$ 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 theme to show coauthor.

License

MIT

You can’t perform that action at this time.