Skip to content

Commit c4b05c6

Browse files
committed
fix: further minor improvements
- Set max-width on inner list elements for blog posts - Add back to articles link and remove other article links at end of post - Remove post description from master article list
1 parent 9704b43 commit c4b05c6

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

_includes/style.scss

+7-2
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,16 @@ h1 { font-size: 3.2rem; font-style: normal; margin-top: 2.6rem; }
7676
h2 { font-size: 2.2rem; margin-top: 4.2rem; }
7777
h3 { font-size: 1.7rem; margin-top: 2.6rem; }
7878

79-
p,table,blockquote,pre,img,hr,.mini-note {
79+
p,table,blockquote,pre,img,hr,.mini-note,ul li,ol li {
8080
box-sizing: border-box;
8181
max-width: 55%;
8282
}
8383
.MathJax_SVG_Display {
8484
max-width: 55% !important;
8585
}
86+
li ul li, li ol li {
87+
max-width: 100%;
88+
}
8689

8790
p {
8891
position: relative;
@@ -136,7 +139,9 @@ code {
136139
}
137140

138141
img {
142+
height: auto;
139143
margin-right: 4rem;
144+
width: 100%;
140145
}
141146

142147
/**************************************
@@ -301,7 +306,7 @@ nav {
301306
width: calc(100% - 20px);
302307
}
303308

304-
p,table,blockquote,pre,img,hr,.mini-note {
309+
p,table,blockquote,pre,img,hr,.mini-note,ul li,ol li {
305310
max-width: 100%;
306311
}
307312

_layouts/articles.html

+1-4
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ <h1>{{ page.title }}</h1>
1515
{% for post in site.posts %}
1616
<article>
1717
<h3><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h3>
18-
<p>
19-
{{ post.description }}
20-
<span class="mini-note">{{ post.date | date: "%b %-d, %Y" }}</span>
21-
</p>
18+
<span class="mini-note">{{ post.date | date: "%b %-d, %Y" }}</span>
2219
</article>
2320
{% endfor %}
2421

_layouts/post.html

+1-5
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@ <h1>{{ page.title }}</h1>
1616

1717
<hr>
1818

19-
<h2>Other Articles</h2>
20-
{% for post in site.posts %}
21-
<p><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
22-
<span class="mini-note">{{ post.date | date: "%b %-d, %Y" }}</span></p>
23-
{% endfor %}
19+
<p><a href="{{ site.baseurl }}/articles">← Back to all articles</a></p>
2420
</article>
2521

2622
</main>

0 commit comments

Comments
 (0)