Skip to content

Commit 0b4fc95

Browse files
committed
convert blog post titles to h1 while keeping the styles
1 parent dc649cc commit 0b4fc95

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

_layouts/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<div class="container">
1212
<div class="post__headline common-headline">
1313
<h5>{{ page.date | date: '%A, %B %-d, %Y' }}</h5>
14-
<h2>{{ page.title | strip_html }}</h2>
14+
<h1>{{ page.title | strip_html }}</h1>
1515
{% if page.author %}
1616
<h6>Posted by {{ page.author }}</h6>
1717
{% endif %}

_sass/modules/_post.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
margin: -7px 30px -6px 30px;
1313
text-align: center;
1414

15+
h1 {
16+
font-size: 55px;
17+
line-height: 52px;
18+
}
19+
1520
h5 {
1621
margin-bottom: 16px;
1722
}

category/foundation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div class="heading common-padding--bottom-small common-padding--top-small">
1111
<div class="container">
1212
<div class="heading__body">
13-
<div class="heading__headline common-headline">
13+
<div class="post__headline common-headline">
1414
<h1>{{ page.title }}</h1>
1515
</div>
1616
</div>

category/news.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div class="heading common-padding--bottom-small common-padding--top-small">
1111
<div class="container">
1212
<div class="heading__body">
13-
<div class="heading__headline common-headline">
13+
<div class="post__headline common-headline">
1414
<h1>{{ page.title }}</h1>
1515
</div>
1616
</div>

category/releases.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div class="heading common-padding--bottom-small common-padding--top-small">
1111
<div class="container">
1212
<div class="heading__body">
13-
<div class="heading__headline common-headline">
13+
<div class="post__headline common-headline">
1414
<h1>{{ page.title }}</h1>
1515
</div>
1616
</div>

0 commit comments

Comments
 (0)