allow configurable number of entry summary rows

This commit is contained in:
Victor Ananyev 2024-01-26 18:19:35 +01:00
parent a803e1fb6b
commit 6308633b46
2 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,7 @@
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
-webkit-line-clamp: var(--entry-summary-rows);
}
.entry-footer {

View File

@ -15,6 +15,7 @@
--code-block-bg: rgb(28, 29, 33);
--code-bg: rgb(245, 245, 245);
--border: rgb(238, 238, 238);
--entry-summary-rows: {{ site.Params.entrySummaryRows | default 3 }};
}
.dark {