pub / tn

Tech News Aggregator
git clone src.jayvii.de/pub/tn.git
Home | Log | Files | Exports | Refs | RSS

commit 4acb8bc8cdfd9808220cc40def7aa69ee08017a9
parent a6b74abba5969862c3987808af06ace0fa121704
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Sat,  2 May 2026 21:41:41 +0200

feat: only show headlines

Diffstat:
Massets/css/custom.css | 65++++++-----------------------------------------------------------
Mindex.tt | 11+++--------
2 files changed, 9 insertions(+), 67 deletions(-)

diff --git a/assets/css/custom.css b/assets/css/custom.css @@ -2,72 +2,19 @@ * { scroll-behavior: smooth; } -/* Hide linebreaks inside articles */ -section > br, -section > * > br -{ - display: none; -} /* Compress sections */ section { padding-top: 0px !important; padding-bottom: 0px !important; - margin-top: 0em !important; + margin-top: 0.5em !important; margin-bottom: 1em !important; } -/* Only show first paragraph of article content (typically the summary) */ -.article_content *:nth-child(n + 2) -{ - display: none; -} -/* clip article summary at 5th line */ -.article_content { - margin-bottom: 1.5em; - -webkit-box-orient: vertical; - display: -webkit-box; - -webkit-line-clamp: 5; +.domain { + display: block; overflow: hidden; -} -p { - margin: 0px; -} -/* Article content should not be weighted or have any styling */ -.article_content > * { - font-size: inherit; - font-weight: normal; - font-style: normal; - line-height: inherit; -} -/* Hide iframes and images in case they are not filtered out */ -.article_content iframe, -.article_content img, -.article_content figcaption -{ - display: none; -} -/* inactive posts */ -*[data-inactive="true"] { - opacity: 0.5; -} -*[data-inactive="true"]:hover, -*[data-inactive="true"]:focus -{ - opacity: 1.0; -} -/* duplicated and invisible posts */ -*[data-duplicate="true"], -*[data-invisible="true"] { - display: none; -} -/* Span tables across thw whole width */ -table { - width: 100%; -} -/* subfeed iframe */ -.subfeed { - width: 100%; - height: 200px; - border: none; + text-overflow: ellipsis; + max-width: 100%; + text-wrap: nowrap; } /* footer */ footer { diff --git a/index.tt b/index.tt @@ -76,14 +76,9 @@ [% entry.issued | html %] </em> [% END %] - <!-- Content --> - <div class="article_content"> - [% IF entry.summary.body %] - <!--start-->[% entry.summary.body %]<!--end--> - [% ELSE %] - <!--start-->[% entry.content.body %]<!--end--> - [% END %] - </div> + <em class="domain" style="margin-left:0.25em;color:var(--border);"> + [% entry.link | url | html %] + </em> </section> [% END %]