From eb44ab0658f7af40d7f08d68ab9c0e416a681a39 Mon Sep 17 00:00:00 2001 From: DigitalAdapt Date: Tue, 22 Jan 2019 11:07:00 -0500 Subject: [PATCH] Switched from H2 to H1 for page title, updated style to make change seemless. --- _includes/posts.html | 2 +- _layouts/default.html | 2 +- assets/css/main.scss | 19 +++++++++++++++++-- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/_includes/posts.html b/_includes/posts.html index c2964b8..ec0bd11 100644 --- a/_includes/posts.html +++ b/_includes/posts.html @@ -20,7 +20,7 @@

{{ post.title | escape }}

- {{ post.date | date: date_format }} +
{{ post.date | date: date_format }}
{%- if site.show_excerpts -%} {{ post.excerpt }} {%- endif -%} diff --git a/_layouts/default.html b/_layouts/default.html index 3a4e620..ef8630b 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -34,7 +34,7 @@
-

{{ page.title }}

+

{{ page.title }}

{%- if page.description -%}

{{ page.description }}

{%- endif -%} diff --git a/assets/css/main.scss b/assets/css/main.scss index a55c6c5..b77bf68 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -168,6 +168,11 @@ } } + h1 { + font-size: 2.5em; + line-height: 1.5em; + } + h2 { font-size: 2em; line-height: 1.5em; @@ -339,6 +344,12 @@ margin: 0 0 (_size(element-margin) * 0.75) 0; } + h1 + p { + font-size: 1.5em; + margin-top: -0.75em; + line-height: 1.5em; + } + h2 + p { font-size: 1.25em; margin-top: -0.5em; @@ -360,7 +371,7 @@ } &.major { - h2 { + h1 { color: _palette(accent1, bg); font-size: 3.5em; @@ -1584,6 +1595,10 @@ } } + h1 { + font-size: 2em; + } + h2 { font-size: 1.75em; } @@ -1620,7 +1635,7 @@ } &.major { - h2 { + h1 { font-size: 2.5em; & + p {