Skip to content

Commit

Permalink
fix: issue with indentation of lists
Browse files Browse the repository at this point in the history
  • Loading branch information
shivan-s committed Oct 31, 2024
1 parent d907719 commit 3bc33a4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
16 changes: 8 additions & 8 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -397,16 +397,16 @@ div.content {
padding-left: var(--normal-gap);
}

& p ~ ul,
p ~ ol {
margin-bottom: none;
}

& ul ol {
list-style-position: inline;
& ul,
ol {
list-style-position: inside;

li {
& li {
padding-left: var(--normal-gap);

& p {
display: inline;
}
}
}

Expand Down
6 changes: 6 additions & 0 deletions content/about/index.md
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
My about page

1. Test

- Testing

2. Testing
2 changes: 1 addition & 1 deletion layouts/_default/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h1 hidden>{{ .Page.Title }}</h1>
<h2>About</h2>
</a>
</header>
<p>{{ truncate 256 .Content }}</p>
<div class="content">{{ truncate 256 .Content }}</div>
<footer>
<a href="{{ .RelPermalink }}">Read more...</a>
</footer>
Expand Down

0 comments on commit 3bc33a4

Please sign in to comment.