Skip to content

Commit 0b0544d

Browse files
authored
Merge pull request #493 from TACC/feat/TUP-706-lccf-news-from-tacc
feat: TUP-706 scripts & styles for lccf news
2 parents d87cc7c + a19cb37 commit 0b0544d

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{% load static %}
2+
<style id="news-styles-scripts--css">
3+
@import url("{% static "site_cms/css/build/app.blog.css" %}") layer(project);
4+
5+
/* to hide "Back" link (which opens all TACC news) */
6+
.blog-back {
7+
display: none;
8+
}
9+
10+
/* to remove bottom border of last article if no pagination */
11+
.blog-list:not(
12+
:has(.pagination)
13+
) article:last-of-type {
14+
border-bottom: unset;
15+
}
16+
17+
/* to hide the "— Lccf" in news list title */
18+
:is(.blog-list) h1 > strong::after, /* the "" */
19+
:is(.blog-list) h1 > em /* the "Lccf" */ {
20+
display: none;
21+
}
22+
</style>
23+
<script id="news-styles-scripts--js" type="module">
24+
import { changeHowExternalArticleOpens } from '{% static "site_cms/js/modules/manageExternalArticles.js" %}';
25+
26+
changeHowExternalArticleOpens('external');
27+
</script>

0 commit comments

Comments
 (0)