diff --git a/assets/css/styles.css b/assets/css/styles.css index 11b8dd1..50a1a0a 100644 --- a/assets/css/styles.css +++ b/assets/css/styles.css @@ -44,6 +44,31 @@ header { #post .kg-card { @apply px-4 py-4 flex flex-col items-center object-contain my-4; } +#post .kg-card .kg-image { + @apply w-full; +} +#post .kg-width-wide .kg-image { + min-width: 100vw; +} +@screen md { + #post .kg-width-wide .kg-image { + min-width: 125%; + } +} +@screen lg { + #post .kg-width-wide .kg-image { + min-width: 175%; + } +} +@screen xl { + #post .kg-width-wide .kg-image { + min-width: 140%; + } +} + +#post .kg-width-full .kg-image { + min-width: 100vw; +} #post .kg-card figcaption { @apply text-sm text-gray-800 mt-2; } diff --git a/page.hbs b/page.hbs index ffeab55..996423f 100644 --- a/page.hbs +++ b/page.hbs @@ -1,12 +1,8 @@ {{!< default}} -
-{{> "site-header"}} -
{{#post}}
- -
+
{{> header-background background=feature_image}} {{!--Special header-image.hbs partial to generate the background image--}}
@@ -15,20 +11,20 @@ {{#if primary_tag}} {{#primary_tag}}
-

{{name}}

+

{{name}}

{{/primary_tag}} {{/if}} -
+

{{title}}

-
-

{{reading_time}}

-
+
+
+ {{> "site-header"}}
-
+
{{content}}
@@ -38,10 +34,11 @@ {{#contentFor "scripts"}} {{/contentFor}} - diff --git a/post.hbs b/post.hbs index 9f2b78c..90ee8ac 100644 --- a/post.hbs +++ b/post.hbs @@ -43,12 +43,12 @@
-
+
{{content}}
-
+