Skip to content

Commit 84ff28d

Browse files
committed
refactor(wip): home feed grid
1 parent b777eb4 commit 84ff28d

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

assets/css/custom.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,10 @@ html.dark .shiki span {
436436
background-color: #39d353;
437437
}
438438

439+
.home-article a div div:nth-child(3) {
440+
display: none;
441+
}
442+
439443
li a,
440444
blockquote a {
441445
white-space: pre-wrap;

config/_default/params.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ smartTOCHideUnfocusedChildren = false
7777
invertPagination = false
7878
showReadingTime = true
7979
showTableOfContents = true
80-
showRelatedContent = true
80+
showRelatedContent = false
8181
relatedContentLimit = 3
8282
showTaxonomies = true
8383
showAuthorsBadges = false
@@ -92,7 +92,7 @@ smartTOCHideUnfocusedChildren = false
9292
layoutBackgroundBlur = true # only used when heroStyle equals background
9393
layoutBackgroundHeaderSpace = true
9494
showBreadcrumbs = false
95-
showSummary = false
95+
showSummary = true
9696
showViews = false
9797
showLikes = false
9898
showTableOfContents = true

layouts/partials/home/custom.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ <h2 class="mt-0 mb-0 text-xl text-neutral-800 dark:text-neutral-300">
823823

824824
<h2 class="mt-8 text-2xl font-extrabold mb-10">{{ i18n "shortcode.recent_articles" }}</h2>
825825

826-
<section class="w-full grid gap-4 sm:grid-cols-2 md:grid-cols-3">
826+
<section class="home-article w-full grid gap-4 sm:grid-cols-2 md:grid-cols-3">
827827
{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
828828
{{ $paginatedPages := .Paginate $pages }}
829829
{{ $filteredPages := after 0 $paginatedPages.Pages }}

0 commit comments

Comments
 (0)