From dea3e05dcbdf800cdddc69e91a30de0f7b61ca9b Mon Sep 17 00:00:00 2001 From: ehab-hassan Date: Tue, 19 Mar 2024 11:41:45 +0200 Subject: [PATCH] update news css --- templates/news-category/single.html | 4 ++-- templates/partials/featuredBlog.html | 18 ++++++++++++++++-- templates/partials/featuredNews.html | 21 ++++++++++++--------- templates/partials/newsPosts.html | 10 +++++----- templates/partials/newsSidebar.html | 6 +++--- 5 files changed, 38 insertions(+), 21 deletions(-) diff --git a/templates/news-category/single.html b/templates/news-category/single.html index 5db297019..fa292343d 100644 --- a/templates/news-category/single.html +++ b/templates/news-category/single.html @@ -2,9 +2,9 @@ {% block content %} -
+
-
+
{% include "partials/newsPosts.html" %} {% include "partials/newsSidebar.html" %}
diff --git a/templates/partials/featuredBlog.html b/templates/partials/featuredBlog.html index 44a5731e6..4b662c659 100644 --- a/templates/partials/featuredBlog.html +++ b/templates/partials/featuredBlog.html @@ -12,7 +12,7 @@

FEATURED POST

- +

{{ featured.title }} @@ -23,6 +23,20 @@

{{ featured.date | date(format="%B %e, %Y", timezone="America/Chicago")}} - + {% for author in featured.taxonomies.people %} + {% set author_path = 'people/' ~ author ~ '/index.md' %} + {% set author = get_page(path=author_path) %} + {% set author_img = get_url(path='/' ~ author.relative_path | replace(from='_', to='-') | replace(from='index.md', to=author.extra.imgPath)) %} + {{ author.title }} {{ author.title }} + {% endfor %}

@@ -32,7 +46,7 @@
-
+
diff --git a/templates/partials/featuredNews.html b/templates/partials/featuredNews.html index 3388c2e13..2a6a0965e 100644 --- a/templates/partials/featuredNews.html +++ b/templates/partials/featuredNews.html @@ -1,16 +1,19 @@ -
-
-

FEATURED NEWS

- +
+
+

FEATURED NEWS

+

+ class="text-2xl main-title md:text-4xl fw-500 leading-snug font-medium"> {{ featured.title }}

+

+ {{ featured.description }} +

-

+

{{ featured.date | date(format="%B %e, %Y", timezone="America/Chicago")}} - {% for author in featured.taxonomies.people %} {% set author_path = 'people/' ~ author ~ '/index.md' %} @@ -30,13 +33,13 @@

-
+
{% if featured.extra.imgPath %} - + {% endif %}
-
+
\ No newline at end of file diff --git a/templates/partials/newsPosts.html b/templates/partials/newsPosts.html index 42ba162b5..fee3bc5ef 100644 --- a/templates/partials/newsPosts.html +++ b/templates/partials/newsPosts.html @@ -1,8 +1,8 @@ {% block content %} -
-

+

{% set path_array = current_path | split(pat="/") %} {% set taxonomy = path_array[1] %} @@ -11,9 +11,9 @@ {% if taxonomy == "news-category" %} - {{category | replace(from='-', to=' ' ) | title}} {% endif %} -

+
-
+
{%- for post in paginator.pages %} {% if "Engineering" == "Engineering"%} {% include "partials/newsCard.html" %} diff --git a/templates/partials/newsSidebar.html b/templates/partials/newsSidebar.html index 1d3f625e6..78ee1497c 100644 --- a/templates/partials/newsSidebar.html +++ b/templates/partials/newsSidebar.html @@ -1,8 +1,8 @@ -
+
-

FILTER NEWS BY

- All +

FILTER NEWS BY

+ All {% set taxonomy = get_taxonomy(kind="news-category") %} {% set categories = taxonomy.items %} {% for category in categories %}