From 2e26e6df80a860c4feee5edff05ce54d3fcab11e Mon Sep 17 00:00:00 2001 From: DJBsec <77978186+DJBsec@users.noreply.github.com> Date: Wed, 11 Mar 2026 12:44:59 -0500 Subject: [PATCH] add tags to news --- _config.yml | 2 +- _layouts/archive-tag.liquid | 43 +++++++++++++++--------------- _pages/blog.md | 5 ++++ _posts/2026-01-21-cybernews0121.md | 2 +- _posts/2026-01-22-cybernews0122.md | 2 +- _posts/2026-03-05-cybernews0305.md | 2 +- _posts/2026-03-06-cybernews0306.md | 2 +- _posts/2026-03-07-cybernews0307.md | 2 +- _posts/2026-03-10-cybernews0310.md | 2 +- _posts/2026-03-11-cybernews0311.md | 2 +- _posts/template.md | 11 +++++--- _sass/_base.scss | 10 +++++++ 12 files changed, 52 insertions(+), 33 deletions(-) diff --git a/_config.yml b/_config.yml index 05c9bb6b5..efcddcb3c 100644 --- a/_config.yml +++ b/_config.yml @@ -255,7 +255,7 @@ jekyll-archives: tag: "/blog/tag/:name/" category: "/blog/category/:name/" -#display_tags: ["formatting", "images", "links", "math", "code", "blockquotes"] # these tags will be displayed on the front page of your blog +display_tags: ["Daily News", "CISO News"] # these tags will be displayed on the front page of your blog #display_categories: ["external-services"] # these categories will be displayed on the front page of your blog # ----------------------------------------------------------------------------- diff --git a/_layouts/archive-tag.liquid b/_layouts/archive-tag.liquid index 81019a0bb..fac7c2201 100644 --- a/_layouts/archive-tag.liquid +++ b/_layouts/archive-tag.liquid @@ -4,27 +4,28 @@ layout: default

{{ page.title }}

-

an archive of posts with this tag

+

{{ page.posts | size }} posts with this tag

-
-
- - {% for post in page.posts %} - - - - - {% endfor %} -
{{ post.date | date: '%b %d, %Y' }} - {% if post.redirect == blank %} - {{ post.title }} - {% elsif post.redirect contains '://' %} - {{ post.title }} - {% else %} - {{ post.title }} - {% endif %} -
-
-
+
+ {% for post in page.posts %} + {% assign read_time = post.content | number_of_words | divided_by: 180 | plus: 1 %} + + {% if post.thumbnail %} +
+ {{ post.title }} +
+ {% endif %} +
+

{{ post.title }}

+ {% if post.description %} +

{{ post.description }}

+ {% endif %} +
+ {{ post.date | date: "%b %d, %Y" }} · {{ read_time }} min read +
+
+
+ {% endfor %} +
diff --git a/_pages/blog.md b/_pages/blog.md index ce0f77af2..d9cb17553 100644 --- a/_pages/blog.md +++ b/_pages/blog.md @@ -154,6 +154,11 @@ pagination: {% if post_categories != "" %} {{ post.categories[0] }} {% endif %} +{% if post.tags and post.tags.size > 0 %} + {% for tag in post.tags %} + {{ tag }} + {% endfor %} +{% endif %}

{{ post.title }}

{% if post.description %}

{{ post.description }}

diff --git a/_posts/2026-01-21-cybernews0121.md b/_posts/2026-01-21-cybernews0121.md index 4620fbf55..159bd40fb 100644 --- a/_posts/2026-01-21-cybernews0121.md +++ b/_posts/2026-01-21-cybernews0121.md @@ -3,7 +3,7 @@ layout: post title: DJBSEC's CyberNews 2026-01-21 date: 2026-01-21 description: 2026-01-21 -tags: CyberNews +tags: [Daily News] categories: News thumbnail: assets/img/cybernews.webp featured: false diff --git a/_posts/2026-01-22-cybernews0122.md b/_posts/2026-01-22-cybernews0122.md index d239601c5..8ee21faef 100644 --- a/_posts/2026-01-22-cybernews0122.md +++ b/_posts/2026-01-22-cybernews0122.md @@ -3,7 +3,7 @@ layout: post title: DJBSEC's CyberNews 2026-01-22 date: 2026-01-22 description: 2026-01-22 -tags: CyberNews +tags: [Daily News] categories: News thumbnail: assets/img/cybernews.webp featured: false diff --git a/_posts/2026-03-05-cybernews0305.md b/_posts/2026-03-05-cybernews0305.md index 40b22181e..7d65ac2bb 100644 --- a/_posts/2026-03-05-cybernews0305.md +++ b/_posts/2026-03-05-cybernews0305.md @@ -3,7 +3,7 @@ layout: post title: DJBSEC's CyberNews 2026-03-05 date: 2026-03-05 description: 2026-03-05 -tags: CyberNews +tags: [Daily News] categories: News thumbnail: assets/img/cybernews.webp featured: false diff --git a/_posts/2026-03-06-cybernews0306.md b/_posts/2026-03-06-cybernews0306.md index a0d5c8742..d8f801eea 100644 --- a/_posts/2026-03-06-cybernews0306.md +++ b/_posts/2026-03-06-cybernews0306.md @@ -3,7 +3,7 @@ layout: post title: DJBSEC's CyberNews 2026-03-06 date: 2026-03-06 description: 2026-03-06 -tags: CyberNews +tags: [Daily News] categories: News thumbnail: assets/img/cybernews.webp featured: false diff --git a/_posts/2026-03-07-cybernews0307.md b/_posts/2026-03-07-cybernews0307.md index c091b3ec0..7464e9dd3 100644 --- a/_posts/2026-03-07-cybernews0307.md +++ b/_posts/2026-03-07-cybernews0307.md @@ -3,7 +3,7 @@ layout: post title: DJBSEC's CyberNews 2026-03-07 date: 2026-03-07 description: 2026-03-07 -tags: CyberNews +tags: [Daily News] categories: News thumbnail: assets/img/cybernews/3_7_26.png featured: false diff --git a/_posts/2026-03-10-cybernews0310.md b/_posts/2026-03-10-cybernews0310.md index 38da631d4..272b68e69 100644 --- a/_posts/2026-03-10-cybernews0310.md +++ b/_posts/2026-03-10-cybernews0310.md @@ -3,7 +3,7 @@ layout: post title: DJBSEC's CyberNews 2026-03-10 date: 2026-03-10 description: 2026-03-10 -tags: CyberNews +tags: [Daily News] categories: News thumbnail: assets/img/cybernews.webp featured: false diff --git a/_posts/2026-03-11-cybernews0311.md b/_posts/2026-03-11-cybernews0311.md index 8b5c04d68..26a5ef308 100644 --- a/_posts/2026-03-11-cybernews0311.md +++ b/_posts/2026-03-11-cybernews0311.md @@ -3,7 +3,7 @@ layout: post title: DJBSEC's CyberNews 2026-03-11 date: 2026-03-11 description: 2026-03-11 -tags: CyberNews +tags: [Daily News] categories: News thumbnail: assets/img/cybernews.webp featured: false diff --git a/_posts/template.md b/_posts/template.md index 310f56a13..51f470448 100644 --- a/_posts/template.md +++ b/_posts/template.md @@ -1,14 +1,17 @@ --- layout: post -title: CyberNews 2-21-25 -date: 2125-02-21 -description: Feb 21, 2125 -tags: CyberNews +title: CyberNews YYYY-MM-DD +date: YYYY-MM-DD +description: Brief description of what this post covers +tags: [Daily News] # Use: Daily News | CISO News | or both: [Daily News, CISO News] categories: News thumbnail: assets/img/cybernews.webp featured: false published: false --- +# Filename convention for same-day posts: +# YYYY-MM-DD-cybernews-daily.md +# YYYY-MM-DD-cybernews-ciso.md # Cybersecurity News for Feb 21, 2125 diff --git a/_sass/_base.scss b/_sass/_base.scss index fcc66b733..826fb3aa0 100644 --- a/_sass/_base.scss +++ b/_sass/_base.scss @@ -693,6 +693,16 @@ footer.sticky-bottom { background: rgba($red-color, 0.15); color: $red-color; } + + &--tag { + background-color: rgba(var(--global-theme-color-rgb), 0.15); + color: var(--global-theme-color); + text-decoration: none; + &:hover { + background-color: rgba(var(--global-theme-color-rgb), 0.3); + color: var(--global-theme-color); + } + } } // ── Featured Hero Section ────────────────────────────