From 84ff28d10e2359d7b3366e21f370fb032ab9d43d Mon Sep 17 00:00:00 2001 From: Charles Chin Date: Sat, 26 Oct 2024 05:30:51 +0800 Subject: [PATCH] refactor(wip): home feed grid --- assets/css/custom.css | 4 ++++ config/_default/params.toml | 4 ++-- layouts/partials/home/custom.html | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/assets/css/custom.css b/assets/css/custom.css index dd80f7506c8..d1fef1e8969 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -436,6 +436,10 @@ html.dark .shiki span { background-color: #39d353; } +.home-article a div div:nth-child(3) { + display: none; +} + li a, blockquote a { white-space: pre-wrap; diff --git a/config/_default/params.toml b/config/_default/params.toml index 150d30d24fd..9352f312ca4 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -77,7 +77,7 @@ smartTOCHideUnfocusedChildren = false invertPagination = false showReadingTime = true showTableOfContents = true - showRelatedContent = true + showRelatedContent = false relatedContentLimit = 3 showTaxonomies = true showAuthorsBadges = false @@ -92,7 +92,7 @@ smartTOCHideUnfocusedChildren = false layoutBackgroundBlur = true # only used when heroStyle equals background layoutBackgroundHeaderSpace = true showBreadcrumbs = false - showSummary = false + showSummary = true showViews = false showLikes = false showTableOfContents = true diff --git a/layouts/partials/home/custom.html b/layouts/partials/home/custom.html index 315458d1fc2..5bc359dafd1 100644 --- a/layouts/partials/home/custom.html +++ b/layouts/partials/home/custom.html @@ -823,7 +823,7 @@

{{ i18n "shortcode.recent_articles" }}

-
+
{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }} {{ $paginatedPages := .Paginate $pages }} {{ $filteredPages := after 0 $paginatedPages.Pages }}