From 3c30f664b887f81edc73e5b1e75534649ab48e88 Mon Sep 17 00:00:00 2001 From: Ben Goldsworthy Date: Sat, 9 Jan 2021 10:35:19 +0000 Subject: [PATCH] Add Post Tag display --- style.css | 26 ++++++++++++++++++++------ template-parts/content-single.php | 31 ++++++++++++++++++++++--------- 2 files changed, 42 insertions(+), 15 deletions(-) diff --git a/style.css b/style.css index fbffcf2..257ef60 100644 --- a/style.css +++ b/style.css @@ -320,7 +320,7 @@ html { align-items: center; grid-template-areas: "post-content-header post-content" - " post-toc post-content" + " post-meta post-content" " . post-content"; } } @@ -378,25 +378,39 @@ html { grid-area: post-date; } - #split-page #post-toc { - grid-area: post-toc; + #split-page #post-meta { + grid-area: post-meta; width: 100%; text-align: left; } - #split-page #post-toc > h1 { + #split-page #post-meta > h1 { border-bottom: 2px inset var(--dark); margin-top: 0.5em; margin-bottom: 0.5em; line-height: 1.2em; - text-align: center; + text-align: left; } - #split-page #post-toc > ol > li { + #split-page #post-meta h2 { + margin-top: 0.5em; + font-size: 1.4em; + margin-bottom: 0.5em; + line-height: 1.2em; + text-align: left; + } + + #split-page #post-meta > #post-contents > ol > li { margin-top: 0.5em; margin-bottom: 0.5em; } + + #split-page #post-meta > #post-tags > a { + margin-top: 0.2em; + margin-left: 1em; + } + #split-page > #wrapper > .body { grid-area: post-content; display: block; diff --git a/template-parts/content-single.php b/template-parts/content-single.php index 9dfde51..2a9578d 100644 --- a/template-parts/content-single.php +++ b/template-parts/content-single.php @@ -64,7 +64,7 @@
  • -
  • This work is licensed under . Sorry about that.
  • +
  • This work is licensed under . Sorry about that.
  • @@ -79,15 +79,28 @@ ?> -