From ee6b9ab6884f18919d4fcb9ecdfef82d8d3847a9 Mon Sep 17 00:00:00 2001 From: Jean Date: Sat, 31 Aug 2024 21:32:57 -0700 Subject: [PATCH] Added desc tags to post pages --- assets/css/screen.css | 10 ++++------ post.hbs | 39 +++++++++++++++++++++++++-------------- 2 files changed, 29 insertions(+), 20 deletions(-) diff --git a/assets/css/screen.css b/assets/css/screen.css index 4f8f3e10..747d532c 100644 --- a/assets/css/screen.css +++ b/assets/css/screen.css @@ -11,6 +11,7 @@ --gap: clamp(24px, 1.7032rem + 1.9355vw, 48px); --head-nav-gap: 32px; --container-width: 1440px; + --big-title-font-size: clamp(4rem, 2.86vw + 2.63rem, 7.2rem); --title-font-size: clamp(3.2rem, 2.7rem + 1.5625vw, 5.2rem); --content-font-size: clamp(1.7rem, 0.38vw + 1.4rem, 2rem); --header-spacing: clamp(4.8rem, 4rem + 2.5vw, 8rem); @@ -316,10 +317,7 @@ hr { .tag-desc { color: var(--color-secondary-text); font-weight: 600; - font-size: calc(var(--title-font-size) * 0.7); - display: inline-block; - vertical-align: middle; - block-size: var(--title-font-size); + display: inline; } /* Feed @@ -452,8 +450,8 @@ hr { } .gh-article-title { - grid-column: 1 / span 9; - font-size: clamp(4rem, 2.86vw + 2.63rem, 7.2rem); + grid-column: 1 / span 12; + font-size: var(--big-title-font-size); font-weight: 800; line-height: 1; letter-spacing: -0.03em; diff --git a/post.hbs b/post.hbs index 960b4506..47a617a4 100644 --- a/post.hbs +++ b/post.hbs @@ -10,7 +10,12 @@ {{#if feature_image}}
-

{{title}}

+

+ {{title}} +
+ {{> "get-desc-tags"}} +
+

{{#if custom_excerpt}}

{{custom_excerpt}}

{{/if}} @@ -18,8 +23,25 @@ {{/if}}
- {{! Table of contents }} + {{!-- Adds table of contents unless instructed not to --}} + {{^has tag="#hide toc"}} + + + + + {{/has}} + {{content}} + {{#unless feature_image}}

{{title}}

@@ -31,18 +53,7 @@
- {{!-- Adds table of contents unless instructed not to --}} - {{^has tag="#hide toc"}} - - - {{/has}} + {{/post}}