idk
This commit is contained in:
parent
a82a374f20
commit
ed62041e65
4 changed files with 71 additions and 7 deletions
|
@ -5,6 +5,7 @@ var config = JSON.parse(fs.readFileSync(path.join(__dirname, 'config.json')))
|
|||
|
||||
var highlightedWords = config.highlightedWords
|
||||
var quotes = config.quotes
|
||||
var titles = config.titles
|
||||
|
||||
var commitCount = "300+"
|
||||
|
||||
|
@ -59,6 +60,8 @@ function converter(html) {
|
|||
|
||||
html = html.replaceAll("{QUOTE_COUNT}", quotes.length)
|
||||
|
||||
html = html.replaceAll("{RANDOM_TITLE}", titles[Math.floor(Math.random() * titles.length)])
|
||||
|
||||
return html
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue