From 05e73168702b89baafe834311645a2e6a3061d6d Mon Sep 17 00:00:00 2001 From: Jean Date: Sat, 31 Aug 2024 19:39:33 -0700 Subject: [PATCH] Adding publication date and support for hiding with internal tags, fixes #13 --- assets/css/screen.css | 4 ++++ default.hbs | 15 --------------- partials/feature-image.hbs | 18 ------------------ partials/get-desc-tags.hbs | 6 ++++-- partials/get-meta-tags.hbs | 13 +++++++++++-- post.hbs | 13 +++++++++++++ 6 files changed, 32 insertions(+), 37 deletions(-) delete mode 100644 partials/feature-image.hbs diff --git a/assets/css/screen.css b/assets/css/screen.css index 7c2d9c6a..4f8f3e10 100644 --- a/assets/css/screen.css +++ b/assets/css/screen.css @@ -309,6 +309,10 @@ hr { line-height: 32px; } +.tag-date { + font-size: 1.8rem; +} + .tag-desc { color: var(--color-secondary-text); font-weight: 600; diff --git a/default.hbs b/default.hbs index 874beb88..0a50a51d 100644 --- a/default.hbs +++ b/default.hbs @@ -67,21 +67,6 @@ -{{! Tocbot is used for the table of contents }} - - - {{#if @custom.oneko}} {{/if}} diff --git a/partials/feature-image.hbs b/partials/feature-image.hbs deleted file mode 100644 index 6dfecfe8..00000000 --- a/partials/feature-image.hbs +++ /dev/null @@ -1,18 +0,0 @@ -{{#if feature_image}} -
- {{title}} - {{#if feature_image_caption}} -
{{feature_image_caption}}
- {{/if}} -
-{{/if}} \ No newline at end of file diff --git a/partials/get-desc-tags.hbs b/partials/get-desc-tags.hbs index cad1b64b..4df1c77f 100644 --- a/partials/get-desc-tags.hbs +++ b/partials/get-desc-tags.hbs @@ -1,9 +1,11 @@ -{{!-- Outputs the descriptions of ONLY internal tags with NO icon --}} +{{!-- Used for de-emphasized text after post title --}} {{#if tags}} {{#foreach tags visibility="internal"}} {{^if feature_image}} - {{description}} + {{#if description}} + {{description}} + {{/if}} {{/if}} {{/foreach}} {{/if}} diff --git a/partials/get-meta-tags.hbs b/partials/get-meta-tags.hbs index 9706025f..ad38f4a7 100644 --- a/partials/get-meta-tags.hbs +++ b/partials/get-meta-tags.hbs @@ -1,4 +1,4 @@ -{{!-- Outputs a bullet list of icons and descriptions for ONLY internal tags with an icon --}} +{{!-- Generates list of post information --}} {{#if tags}} {{/if}} diff --git a/post.hbs b/post.hbs index e4bf73b2..960b4506 100644 --- a/post.hbs +++ b/post.hbs @@ -30,6 +30,19 @@ {{/unless}} + + {{!-- Adds table of contents unless instructed not to --}} + {{^has tag="#hide toc"}} + + + {{/has}} {{/post}}