Skip to content

Convert blog post titles to h1 while keeping the styles #475

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div class="container">
<div class="post__headline common-headline">
<h5>{{ page.date | date: '%A, %B %-d, %Y' }}</h5>
<h2>{{ page.title | strip_html }}</h2>
<h1>{{ page.title | strip_html }}</h1>
{% if page.author %}
<h6>Posted by {{ page.author }}</h6>
{% endif %}
Expand Down
5 changes: 5 additions & 0 deletions _sass/modules/_post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
margin: -7px 30px -6px 30px;
text-align: center;

h1 {
font-size: 55px;
line-height: 52px;
}

h5 {
margin-bottom: 16px;
}
Expand Down
2 changes: 1 addition & 1 deletion category/foundation.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div class="heading common-padding--bottom-small common-padding--top-small">
<div class="container">
<div class="heading__body">
<div class="heading__headline common-headline">
<div class="post__headline common-headline">
<h1>{{ page.title }}</h1>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion category/news.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div class="heading common-padding--bottom-small common-padding--top-small">
<div class="container">
<div class="heading__body">
<div class="heading__headline common-headline">
<div class="post__headline common-headline">
<h1>{{ page.title }}</h1>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion category/releases.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div class="heading common-padding--bottom-small common-padding--top-small">
<div class="container">
<div class="heading__body">
<div class="heading__headline common-headline">
<div class="post__headline common-headline">
<h1>{{ page.title }}</h1>
</div>
</div>
Expand Down