diff --git a/src/docs/markdown/caddyfile/options.md b/src/docs/markdown/caddyfile/options.md index 273d502..65b557f 100644 --- a/src/docs/markdown/caddyfile/options.md +++ b/src/docs/markdown/caddyfile/options.md @@ -24,6 +24,12 @@ $(function() { let url = '#' + text.replace(/#/g, '').trim().toLowerCase().replace(/ /g, "-"); $(item).html(before + '' + text + ''); }); + // 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 []")') + .next() + .find('a:contains("name")') + .attr('href', '#name-1'); });