mirror of
https://github.com/namibia/tips.git
synced 2024-11-14 09:14:06 +00:00
14 lines
329 B
JavaScript
14 lines
329 B
JavaScript
var tips = require('./tips.json');
|
|
var slug = require('slug');
|
|
|
|
var render = function(data) {
|
|
var data = data.data;
|
|
|
|
var out = '* [' + data.title + '](https://github.com/git-tips/tips#' + slug(data.title) + ')\n';
|
|
|
|
if (tips[tips.length -1].title === data.title) out = out + '\n';
|
|
return out;
|
|
};
|
|
|
|
module.exports = render;
|