mirror of
https://github.com/namibia/tips.git
synced 2024-12-23 02:28:58 +00:00
13 lines
295 B
JavaScript
13 lines
295 B
JavaScript
var tips = require('./tips.json');
|
|
|
|
var render = function(data) {
|
|
var data = data.data;
|
|
|
|
var out = '* [' + data.title + '](https://github.com/git-tips/tips#' + data.title + ')\n';
|
|
|
|
if (tips[tips.length -1].title === data.title) out = out + '\n';
|
|
return out;
|
|
};
|
|
|
|
module.exports = render;
|