[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[qemu-web PATCH v2 12/16] Add recent blog posts to the front page featur
From: |
Daniel P . Berrangé |
Subject: |
[qemu-web PATCH v2 12/16] Add recent blog posts to the front page featured content |
Date: |
Tue, 27 Oct 2020 13:20:11 +0000 |
This makes it more likely that visitors will see and follow links to
interesting blogs.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
assets/css/style.css | 5 +++++
index.html | 12 ++++++++++++
2 files changed, 17 insertions(+)
diff --git a/assets/css/style.css b/assets/css/style.css
index 6308084..a9d5b90 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -627,6 +627,11 @@
display: block;
padding-bottom: 2em;
}
+
+ #quickstart ul.blogs > li
+ {
+ padding-bottom: 0.5em;
+ }
#quickstart ul > li > strong
{
diff --git a/index.html b/index.html
index be1d210..9b38037 100644
--- a/index.html
+++ b/index.html
@@ -35,6 +35,18 @@ bxslider: True
<span><a
href="https://wiki.qemu.org/Contribute/SubmitAPatch">Submitting a
patch</a></span>
<span><a
href="https://wiki.qemu.org/Contribute/FAQ">Contributor FAQ</a></span>
</li>
+
+ <li><strong>Recent posts</strong>
+ <ul class="blogs">
+ {% for post in site.posts offset: 0 limit: 4 %}
+ <li><a href="{{ relative_root }}{{
post.url }}">{{ post.title }}</a><br>
+ <div class="posted">{{
post.date | date_to_string }}{%
+ if post.last_modified_at %}
(Updated {{ post.last_modified_at | date_to_string }}) {%
+ endif %}{% if post.author %}
— by {{ post.author }}{% endif %}
+ </li>
+ {% endfor %}
+ </ul>
+ </li>
</ul>
</div>
</div>
--
2.26.2
- [qemu-web PATCH v2 03/16] make all links be relative to the root, (continued)
- [qemu-web PATCH v2 03/16] make all links be relative to the root, Daniel P . Berrangé, 2020/10/27
- [qemu-web PATCH v2 01/16] Convert files to UNIX line endings, Daniel P . Berrangé, 2020/10/27
- [qemu-web PATCH v2 06/16] Rework display of screenshots to use a carousel slider, Daniel P . Berrangé, 2020/10/27
- [qemu-web PATCH v2 05/16] Introduce support for "bxslider" jquery add on, Daniel P . Berrangé, 2020/10/27
- [qemu-web PATCH v2 07/16] Compress the two front page headings into one, Daniel P . Berrangé, 2020/10/27
- [qemu-web PATCH v2 08/16] Simplify copyright and integrate into footer, Daniel P . Berrangé, 2020/10/27
- [qemu-web PATCH v2 09/16] Put a full SFC membership blurb in footer of every page, Daniel P . Berrangé, 2020/10/27
- [qemu-web PATCH v2 10/16] Use two column layout to display screenshots and releases, Daniel P . Berrangé, 2020/10/27
- [qemu-web PATCH v2 11/16] Bring contribution links out of the footer into the home page, Daniel P . Berrangé, 2020/10/27
- [qemu-web PATCH v2 12/16] Add recent blog posts to the front page featured content,
Daniel P . Berrangé <=
- [qemu-web PATCH v2 13/16] Move wiki link from footer into the header navbar, Daniel P . Berrangé, 2020/10/27
- [qemu-web PATCH v2 14/16] Simplify and restructure the page footer, Daniel P . Berrangé, 2020/10/27
- [qemu-web PATCH v2 15/16] Add link to "page source" for all pages, Daniel P . Berrangé, 2020/10/27
- [qemu-web PATCH v2 16/16] Add a CONTRIBUTING.md file as guidance for contributors, Daniel P . Berrangé, 2020/10/27