Skip to content

Commit dd36eab

Browse files
committed
Update home_info layout to use md-content class for entry content; adjust styles for improved consistency
1 parent 5878879 commit dd36eab

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

assets/css/common/post-entry.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535

3636
.home-info .entry-content {
3737
-webkit-line-clamp: unset;
38+
margin: 0;
3839
}
3940

4041
.post-entry {
@@ -71,6 +72,11 @@
7172
-webkit-line-clamp: 2;
7273
}
7374

75+
.home-info .entry-content p {
76+
margin-block-start: 1em;
77+
margin-block-end: 1em;
78+
}
79+
7480
.entry-footer {
7581
color: var(--secondary);
7682
font-size: 13px;

layouts/partials/home_info.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<header class="entry-header">
44
<h1>{{ .Title | markdownify }}</h1>
55
</header>
6-
<div class="entry-content">
6+
<div class="entry-content md-content">
77
{{ .Content | markdownify }}
88
</div>
99
<footer class="entry-footer">

0 commit comments

Comments
 (0)