Skip to content

Commit 5af1ce2

Browse files
committed
Add correct padding below link post heading in index
- Fixes mmistakes#45
1 parent fa1edff commit 5af1ce2

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

_layouts/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ <h3><a href="{{ site.url}}/articles/">Recent Posts</a></h3>
3939
{% for post in site.posts limit:5 %}
4040
<article>
4141
{% if post.link %}
42-
<h2><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a> <a href="{{ post.link }}" target="_blank" title="{{ post.title }}"><i class="icon-link"></i></h2>
42+
<h2 class="link-post"><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a> <a href="{{ post.link }}" target="_blank" title="{{ post.title }}"><i class="icon-link"></i></h2>
4343
{% else %}
4444
<h2><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h2>
4545
<p>{% if post.description %}{{ post.description }}{% else %}{{ post.content | strip_html | strip_newlines | truncate: 120 }}{% endif %}</p>

_layouts/post-index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ <h3>{{ post.date | date: '%Y' }}</h3>
4848
{% endunless %}
4949
<article>
5050
{% if post.link %}
51-
<h2><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a> <a href="{{ post.link }}" target="_blank" title="{{ post.title }}"><i class="icon-link"></i></h2>
51+
<h2 class="link-post"><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a> <a href="{{ post.link }}" target="_blank" title="{{ post.title }}"><i class="icon-link"></i></h2>
5252
{% else %}
5353
<h2><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h2>
5454
<p>{% if post.description %}{{ post.description }}{% else %}{{ post.content | strip_html | strip_newlines | truncate: 120 }}{% endif %}</p>

assets/css/main.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/less/page.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,10 @@ body {
247247
h2 {
248248
margin-bottom: 4px;
249249
.font-rem(20);
250+
&.link-post {
251+
margin-bottom: 0px + @doc-line-height;
252+
margin-bottom: 0rem + (@doc-line-height / @doc-font-size);
253+
}
250254
}
251255
p {
252256
.font-rem(14);

0 commit comments

Comments
 (0)