mirror of https://github.com/astral-sh/uv
Use anchorlinks rather than permalinks (#7626)
## Summary Unfortunately, the permalinks show up in the SERPs as part of the title:  Instead, we'll just make the headers themselves links. Before:   After:   I prefer what we had before visually, but the SEO hit is bad enough that I want to change it.
This commit is contained in:
parent
542afe7474
commit
8efd38c7a9
|
|
@ -186,3 +186,12 @@ h3.cli-reference {
|
|||
font-size: 1.1em;
|
||||
margin: 0 0 0 0;
|
||||
}
|
||||
|
||||
/* Styling for anchor link headers */
|
||||
.toclink {
|
||||
color: unset !important;
|
||||
}
|
||||
|
||||
.toclink:hover {
|
||||
color: var(--md-accent-fg-color) !important;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,11 +42,12 @@ site_dir: site/uv
|
|||
markdown_extensions:
|
||||
- admonition
|
||||
- pymdownx.details
|
||||
- toc:
|
||||
permalink: "#"
|
||||
- pymdownx.snippets:
|
||||
- pymdownx.magiclink:
|
||||
- attr_list:
|
||||
- toc:
|
||||
anchorlink: true
|
||||
anchorlink_class: "toclink"
|
||||
- md_in_html:
|
||||
- pymdownx.inlinehilite:
|
||||
- pymdownx.superfences:
|
||||
|
|
|
|||
Loading…
Reference in New Issue