From e5f4db8ea7722de7ecf19237b6ef0ed2d9672dfb Mon Sep 17 00:00:00 2001 From: borntojesus Date: Mon, 5 Feb 2024 23:25:03 +0200 Subject: [PATCH] add UI news_v2 --- config.toml | 7 ++ sass/component/post-min.scss | 4 + templates/news_post.html | 151 ++++++++++++++++++++++++++++++++--- 3 files changed, 150 insertions(+), 12 deletions(-) diff --git a/config.toml b/config.toml index 1ecf27b9..c961adb7 100644 --- a/config.toml +++ b/config.toml @@ -15,6 +15,7 @@ build_search_index = false ignored_content = [".DS_Store"] + taxonomies = [ {name = "faq", feed = false}, ] @@ -26,9 +27,15 @@ external_links_target_blank = true [slugify] paths = "safe" +[extra] +# Пример для секции "news" +paginate_by = 6 + + [extra] stripe = "https://donate.organicmaps.app/" + # Default English translation [translations] address = "Address" diff --git a/sass/component/post-min.scss b/sass/component/post-min.scss index 09c80949..fc2771fc 100644 --- a/sass/component/post-min.scss +++ b/sass/component/post-min.scss @@ -14,6 +14,10 @@ &__img { margin-bottom: 20rem; width: 100%; + max-width: 400rem; + &--float { + float: right; + } &--one { max-height: 278rem; object-fit: cover; diff --git a/templates/news_post.html b/templates/news_post.html index dc5635e6..7ca7fbb8 100644 --- a/templates/news_post.html +++ b/templates/news_post.html @@ -1,19 +1,146 @@ {% extends 'base.html' %} {% block content %} +
+
+
+
+
+ -
- {{ resource.content | safe }} +
+

Need Title

+
+ + +
+
+ + + + + + + + + + + + {{ resource.date | date(format='%B %e, %Y') }} +
+
+ + + + + News +
+
+
+ + {% for photo in resource.assets | sort %} + + {% endfor %} + {{ resource.content | safe }} + +
+ + +
+
+
+
+

HEED RENDER ITEM

+
+
+ img +

Organic Maps | Hacker News

+
+
+
+ + + + + + + + + + + + December 7, 2023 +
+
+ + + + + News +
+
+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna ... +

+ More +
+
+ img +

New Release: Straight-Line Routes

+
+
+
+ + + + + + + + + + + + December 7, 2023 +
+
+ + + + + News +
+
+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna ... +

+ More +
+
+ +
- -{% for photo in resource.assets | sort %} - -{% endfor %} - - - {% endblock content %}