File tree Expand file tree Collapse file tree 2 files changed +17
-13
lines changed Expand file tree Collapse file tree 2 files changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -440,19 +440,20 @@ def depart_nxt_tabs(self, node: Element) -> None:
440
440
441
441
def __write_news_entry (self , e : List [dict ], prefix : str = "" ) -> None :
442
442
date = datetime .fromisoformat (e ["date" ]).strftime ("%B %-d, %Y" )
443
- self .body .append (
444
- f"""
445
- <div class=nxt_news_item>
446
- <h2>
447
- { e ['title' ]}
448
- <a class=headerlink href={ prefix + e ['anchor' ]}
449
- title="Permalink to this headline">§</a>
450
- </h2>
451
- <p class=nxt_news_authordate>
452
- { e ['author' ]} on { date }
453
- </p>
454
- <p>{ e ['description' ]} </p>"""
455
- )
443
+ if "relurl" in e :
444
+ self .body .append (
445
+ f"""
446
+ <div class=nxt_news_item>
447
+ <h2>
448
+ <a href={ e ["relurl" ]} >{ e ['title' ]} </a>
449
+ <a class=headerlink href={ prefix + e ['anchor' ]}
450
+ title="Permalink to this headline">§</a>
451
+ </h2>
452
+ <p class=nxt_news_authordate>
453
+ { e ['author' ]} on { date }
454
+ </p>
455
+ <p>{ e ['description' ]} </p>"""
456
+ )
456
457
if "relurl" in e :
457
458
domain = urlparse (e ["relurl" ]).netloc
458
459
if domain .startswith ("www." ):
Original file line number Diff line number Diff line change @@ -180,6 +180,9 @@ iframe {
180
180
# content h3 .headerlink {
181
181
color : # 00974d ;
182
182
}
183
+ # content h2 a {
184
+ color : # 00974d ;
185
+ }
183
186
# content .headerlink {
184
187
visibility : hidden;
185
188
display : inline-block;
You can’t perform that action at this time.
0 commit comments