Skip to content

Commit

Permalink
Replace second h1 with h2 .title
Browse files Browse the repository at this point in the history
Closes aweekj#6
  • Loading branch information
Tookmund committed Nov 15, 2018
1 parent 6eaff86 commit 00d1f12
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<article class="page">

<h1>{{ page.title }}</h1>
<h2 class="title">{{ page.title }}</h2>

<div class="entry">
{{ content }}
Expand Down
2 changes: 1 addition & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
---

<article class="post">
<h1>{{ page.title }}</h1>
<h2 class="title">{{ page.title }}</h2>

<div clsss="meta">
<span class="date">
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ <h2>No post found</h2>
<div class="posts">
{% for post in paginator.posts %}
<article class="post">
<h1>
<h2 class="title">
<a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
</h1>
</h2>

<div clsss="meta">
<span class="date">
Expand Down
15 changes: 8 additions & 7 deletions style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@ h1, h2, h3, h5 {
font-weight: bold;
}

h1 {
font-size: 30px;
a {
color: inherit;
}
}

h2 {
font-size: 24px;
Expand All @@ -69,6 +63,13 @@ h6 {
color: $base-lighten-color;
}

h1, .title {
font-size: 30px;
a {
color: inherit;
}
}

p {
color: $text-color;
margin: 15px 0;
Expand Down Expand Up @@ -410,7 +411,7 @@ nav {
}

.post {
h1 {
.title {
margin-bottom: .1em;
}

Expand Down

0 comments on commit 00d1f12

Please sign in to comment.