Skip to content

Commit 4074163

Browse files
committed
Add the little link symbols for new entries, too
I just adjusted the existing entries to have convenient link symbols, let's let the future entries get them, too! Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 22faa6a commit 4074163

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

add-entry.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,11 @@ const main = async (...args) => {
5252
.map((e, i) => `${i < 1 ? '' : array[i + 1] ? ', ' : ' and '}<a href="${e.url}">${e.cpu.label}</a>`)
5353
.join('')
5454

55+
const id = new Date(date).toISOString()
5556
const insert = [
56-
`<h2 id="${new Date(date).toISOString()}">`,
57+
`<h2 id="${id}">`,
5758
date,
59+
`<a class="ref" href="#${id}">&#128279;</a>`,
5860
'<br />',
5961
`(commit <a href="https://github.com/git-for-windows/git/commit/${commit}">${commit}</a>)</h2>\n`,
6062
'\n',

0 commit comments

Comments
 (0)