Skip to content

Commit ecd2a51

Browse files
authored
Merge pull request #475 from bhumi1102/bhumi-seo-blog-posts
Convert blog post titles to h1 while keeping the styles
2 parents 02a2f5c + 5e6c537 commit ecd2a51

File tree

5 files changed

+23
-4
lines changed

5 files changed

+23
-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: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@
1212
margin: -7px 30px -6px 30px;
1313
text-align: center;
1414

15+
h1 {
16+
color: $color-red;
17+
font-size: 39px;
18+
@media (max-width: 800px) {
19+
font-size: 32px;
20+
}
21+
@media (max-width: 600px) {
22+
font-size: 28px;
23+
}
24+
font-weight: 700;
25+
letter-spacing: -0.01em;
26+
line-height: 38px;
27+
}
28+
1529
h5 {
1630
margin-bottom: 16px;
1731
}
@@ -101,6 +115,11 @@
101115

102116
margin-bottom: -7px;
103117

118+
h1 {
119+
font-size: 55px;
120+
line-height: 52px;
121+
}
122+
104123
h5 {
105124
margin-bottom: 13px;
106125
}

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)