This is an automated email from the ASF dual-hosted git repository.
grobmeier pushed a commit to branch jekyll
in repository https://gitbox.apache.org/repos/asf/logging-site.git
The following commit(s) were added to refs/heads/jekyll by this push:
new f5a2cc91 added latest news on frontpage
f5a2cc91 is described below
commit f5a2cc919ca147500afeb6d646f39fe74186d6b9
Author: Christian Grobmeier <[email protected]>
AuthorDate: Thu Dec 14 23:32:38 2023 +0100
added latest news on frontpage
---
css/site.scss | 26 ++++++++++++++++++++++++++
index.html | 9 +++++++++
2 files changed, 35 insertions(+)
diff --git a/css/site.scss b/css/site.scss
index 7cfa4d41..4795611e 100644
--- a/css/site.scss
+++ b/css/site.scss
@@ -96,3 +96,29 @@ blockquote ul { margin-left: 50px; font-size: 14px; }
color: gray;
}
}
+
+
+
+.latest-post {
+ display: flex;
+ font-size: 2em;
+ align-items: center;
+ justify-content: center;
+ background-color: #c0c0c0;
+ color: black;
+ padding: 0.5em;
+ margin-bottom: 30px;
+
+ .latest-post-news {
+ font-size: 1.0em;
+ a {
+ color: black;
+
+ }
+ }
+ .latest-post-date {
+ font-size: 0.5em;
+ margin-right: 1.5em;
+ padding: 0.5em;
+ }
+ }
\ No newline at end of file
diff --git a/index.html b/index.html
index 50c0afa0..c6062536 100644
--- a/index.html
+++ b/index.html
@@ -25,6 +25,15 @@ layout: default
<p>The Apache Logging Services project creates and maintains open-source
software related to the logging of
application behavior and released at no charge to the public.</p>
</div>
+
+{% if site.posts.size > 0 %}
+<div class="latest-post">
+ {% assign last_post = site.posts | first %}
+ <div class="latest-post-date">{{ last_post.date | date_to_string }}</div>
+ <div class="latest-post-news"><a href="{{ last_post.url }}">{{
last_post.title }}</a></div>
+</div>
+{% endif %}
+
<div class="projects">
<h3>Logging Frameworks</h3>