Skip to content

Commit

Permalink
refactor(wip): home feed grid
Browse files Browse the repository at this point in the history
  • Loading branch information
eallion committed Oct 25, 2024
1 parent b777eb4 commit 84ff28d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions assets/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ smartTOCHideUnfocusedChildren = false
invertPagination = false
showReadingTime = true
showTableOfContents = true
showRelatedContent = true
showRelatedContent = false
relatedContentLimit = 3
showTaxonomies = true
showAuthorsBadges = false
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/home/custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ <h2 class="mt-0 mb-0 text-xl text-neutral-800 dark:text-neutral-300">

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

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

0 comments on commit 84ff28d

Please sign in to comment.