diff --git a/source/exts/nxt.py b/source/exts/nxt.py index 8d0a93f4..46033d50 100644 --- a/source/exts/nxt.py +++ b/source/exts/nxt.py @@ -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""" -
-

- {e['title']} - § -

-

- {e['author']} on {date} -

-

{e['description']}

""" - ) if "relurl" in e: + self.body.append( + f""" +
+

+ {e['title']} + § +

+

+ {e['author']} on {date} +

+

{e['description']}

""" + ) domain = urlparse(e["relurl"]).netloc if domain.startswith("www."): domain = domain[4:] diff --git a/source/theme/static/style.css b/source/theme/static/style.css index 6dba08b9..3c3efdf2 100644 --- a/source/theme/static/style.css +++ b/source/theme/static/style.css @@ -180,6 +180,9 @@ iframe { #content h3 .headerlink { color: #00974d; } +#content h2 a { + color: #00974d; +} #content .headerlink { visibility: hidden; display: inline-block;