Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions source/exts/nxt.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,20 +440,20 @@ def depart_nxt_tabs(self, node: Element) -> None:

def __write_news_entry(self, e: List[dict], prefix: str = "") -> None:
date = datetime.fromisoformat(e["date"]).strftime("%B %-d, %Y")
self.body.append(
f"""
<div class=nxt_news_item>
<h2>
{e['title']}
<a class=headerlink href={prefix + e['anchor']}
title="Permalink to this headline">§</a>
</h2>
<p class=nxt_news_authordate>
{e['author']}&nbsp;on&nbsp;{date}
</p>
<p>{e['description']}</p>"""
)
if "relurl" in e:
self.body.append(
f"""
<div class=nxt_news_item>
<h2>
<a href={e["relurl"]}>{e['title']}</a>
<a class=headerlink href={prefix + e['anchor']}
title="Permalink to this headline">§</a>
</h2>
<p class=nxt_news_authordate>
{e['author']}&nbsp;on&nbsp;{date}
</p>
<p>{e['description']}</p>"""
)
domain = urlparse(e["relurl"]).netloc
if domain.startswith("www."):
domain = domain[4:]
Expand Down
3 changes: 3 additions & 0 deletions source/theme/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ iframe {
#content h3 .headerlink {
color: #00974d;
}
#content h2 a {
color: #00974d;
}
#content .headerlink {
visibility: hidden;
display: inline-block;
Expand Down