fix: make topics reachable and stop the head fighting itself
Every topic archive rendered its character art gate against the design master, which package-theme.sh deliberately strips, so production showed an empty stage on all eight of them. Gate on the derivative the markup actually loads instead. Nothing linked to a topic archive: the only filter was a select inside a form, invisible to crawlers and to anyone not looking for it. The stream now also lists the non-empty topics as links, marking the current one. Empty topics stay out, because a dead archive is worse than no link. Rank Math already owns the document head, so the theme's own og: tags were a second, conflicting set and core's title tag was a literal duplicate. Both now yield when an SEO plugin is active. Category archives listed the same posts as their topic at a second indexable URL. They now redirect to the same-slug topic, or the Journal. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
28 files changed
+165
-25
No files matched your search
@@ -423,6 +423,36 @@ footer a {
|
||||
--chrnx-card-accent: #d36b3f;
|
||||
}
|
||||
|
||||
.chrnx-journal-stream__topics {
|
||||
margin-block-start: 1.5rem;
|
||||
}
|
||||
|
||||
.chrnx-journal-stream__topic {
|
||||
display: inline-block;
|
||||
padding: 0.4rem 0.9rem;
|
||||
border: 1px solid var(--chrnx-line);
|
||||
border-radius: 999px;
|
||||
color: var(--chrnx-muted);
|
||||
font-family: var(--wp--preset--font-family--metadata);
|
||||
font-size: 0.75rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.12em;
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.chrnx-journal-stream__topic:hover,
|
||||
.chrnx-journal-stream__topic:focus-visible {
|
||||
border-color: var(--chrnx-green);
|
||||
color: var(--chrnx-green);
|
||||
}
|
||||
|
||||
.chrnx-journal-stream__topic[aria-current="page"] {
|
||||
border-color: var(--chrnx-green);
|
||||
background: var(--chrnx-green);
|
||||
color: var(--chrnx-bg);
|
||||
}
|
||||
|
||||
.chrnx-journal-stream__filters {
|
||||
align-items: end;
|
||||
margin-block: 2rem;
|
||||
|
||||
Reference in new issue
Block a user