mirror of
https://github.com/caddyserver/website.git
synced 2025-04-21 04:26:16 -04:00
options: Fix PKI name link
This commit is contained in:
parent
b845c57cbb
commit
2639f28a27
1 changed files with 6 additions and 0 deletions
|
@ -24,6 +24,12 @@ $(function() {
|
||||||
let url = '#' + text.replace(/#/g, '').trim().toLowerCase().replace(/ /g, "-");
|
let url = '#' + text.replace(/#/g, '').trim().toLowerCase().replace(/ /g, "-");
|
||||||
$(item).html(before + '<a href="' + url + '" style="color: inherit;" title="' + text + '">' + text + '</a>');
|
$(item).html(before + '<a href="' + url + '" style="color: inherit;" title="' + text + '">' + text + '</a>');
|
||||||
});
|
});
|
||||||
|
// Surgically fix a duplicate link; 'name' appears twice as a link
|
||||||
|
// for two different sections, so we change the second to #name-1
|
||||||
|
$('pre.chroma .line:contains("ca [<id>]")')
|
||||||
|
.next()
|
||||||
|
.find('a:contains("name")')
|
||||||
|
.attr('href', '#name-1');
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue