Skip to content

Commit

Permalink
Improve Bevy news feed (#1073)
Browse files Browse the repository at this point in the history
Co-authored-by: Carter Anderson <mcanders1@gmail.com>
  • Loading branch information
TrialDragon and cart committed Mar 6, 2024
1 parent 21ef115 commit 6ddb3c8
Show file tree
Hide file tree
Showing 28 changed files with 138 additions and 32 deletions.
2 changes: 1 addition & 1 deletion content/news/2020-08-10-introducing-bevy/index.md
@@ -1,8 +1,8 @@
+++
title = "Introducing Bevy 0.1"
date = 2020-08-10
authors = ["Carter Anderson"]
[extra]
author = "Carter Anderson"
twitter = "cart_cart"
github = "cart"
youtube = "cartdev"
Expand Down
2 changes: 1 addition & 1 deletion content/news/2020-08-19-scaling-bevy/index.md
@@ -1,8 +1,8 @@
+++
title = "Scaling Bevy"
date = 2020-08-19
authors = ["Carter Anderson"]
[extra]
author = "Carter Anderson"
twitter = "cart_cart"
github = "cart"
youtube = "cartdev"
Expand Down
2 changes: 1 addition & 1 deletion content/news/2020-09-19-bevy-0.2/index.md
@@ -1,8 +1,8 @@
+++
title = "Bevy 0.2"
date = 2020-09-19
authors = ["Carter Anderson"]
[extra]
author = "Carter Anderson"
twitter = "cart_cart"
github = "cart"
youtube = "cartdev"
Expand Down
2 changes: 1 addition & 1 deletion content/news/2020-11-03-bevy-0.3/index.md
@@ -1,8 +1,8 @@
+++
title = "Bevy 0.3"
date = 2020-11-03
authors = ["Carter Anderson"]
[extra]
author = "Carter Anderson"
twitter = "cart_cart"
github = "cart"
youtube = "cartdev"
Expand Down
2 changes: 1 addition & 1 deletion content/news/2020-12-19-bevy-0.4/index.md
@@ -1,8 +1,8 @@
+++
title = "Bevy 0.4"
date = 2020-12-19
authors = ["Carter Anderson"]
[extra]
author = "Carter Anderson"
twitter = "cart_cart"
github = "cart"
youtube = "cartdev"
Expand Down
2 changes: 1 addition & 1 deletion content/news/2021-04-06-bevy-0.5/index.md
@@ -1,8 +1,8 @@
+++
title = "Bevy 0.5"
date = 2021-04-06
authors = ["Carter Anderson"]
[extra]
author = "Carter Anderson"
twitter = "cart_cart"
github = "cart"
youtube = "cartdev"
Expand Down
2 changes: 1 addition & 1 deletion content/news/2021-08-10-bevys-first-birthday/index.md
@@ -1,8 +1,8 @@
+++
title = "Bevy's First Birthday"
date = 2021-08-10
authors = ["Carter Anderson"]
[extra]
author = "Carter Anderson"
twitter = "cart_cart"
github = "cart"
youtube = "cartdev"
Expand Down
2 changes: 1 addition & 1 deletion content/news/2022-01-08-bevy-0.6/index.md
@@ -1,8 +1,8 @@
+++
title = "Bevy 0.6"
date = 2022-01-08
authors = ["Carter Anderson"]
[extra]
author = "Carter Anderson"
twitter = "cart_cart"
github = "cart"
youtube = "cartdev"
Expand Down
2 changes: 1 addition & 1 deletion content/news/2022-04-15-bevy-0.7/index.md
@@ -1,8 +1,8 @@
+++
title = "Bevy 0.7"
date = 2022-04-15
authors = ["Carter Anderson"]
[extra]
author = "Carter Anderson"
twitter = "cart_cart"
github = "cart"
youtube = "cartdev"
Expand Down
2 changes: 1 addition & 1 deletion content/news/2022-07-30-bevy-0.8/index.md
@@ -1,8 +1,8 @@
+++
title = "Bevy 0.8"
date = 2022-07-30
authors = ["Carter Anderson"]
[extra]
author = "Carter Anderson"
twitter = "cart_cart"
github = "cart"
youtube = "cartdev"
Expand Down
2 changes: 1 addition & 1 deletion content/news/2022-08-10-bevys-second-birthday/index.md
@@ -1,8 +1,8 @@
+++
title = "Bevy's Second Birthday"
date = 2022-08-10
authors = ["Carter Anderson"]
[extra]
author = "Carter Anderson"
twitter = "cart_cart"
github = "cart"
youtube = "cartdev"
Expand Down
2 changes: 1 addition & 1 deletion content/news/2022-11-12-bevy-0.9/index.md
@@ -1,8 +1,8 @@
+++
title = "Bevy 0.9"
date = 2022-11-12
authors = ["Carter Anderson"]
[extra]
author = "Carter Anderson"
twitter = "cart_cart"
github = "cart"
youtube = "cartdev"
Expand Down
2 changes: 1 addition & 1 deletion content/news/2023-01-14-scaling-bevy-development/index.md
@@ -1,8 +1,8 @@
+++
title = "Scaling Bevy Development"
date = 2023-01-14
authors = ["Carter Anderson"]
[extra]
author = "Carter Anderson"
twitter = "cart_cart"
github = "cart"
youtube = "cartdev"
Expand Down
2 changes: 1 addition & 1 deletion content/news/2023-03-06-bevy-0.10/index.md
@@ -1,8 +1,8 @@
+++
title = "Bevy 0.10"
date = 2023-03-06
authors = ["Bevy Contributors"]
[extra]
author = "Bevy Contributors"
image = "ruins.png"
show_image = true
image_subtitle = "Ruins scene illustrating Bevy's new material blend modes and fog. Based on original scene by Casey Hardy (CC Attribution)"
Expand Down
2 changes: 1 addition & 1 deletion content/news/2023-05-17-bevy-webgpu/index.md
@@ -1,10 +1,10 @@
+++
title = "Bevy + WebGPU"
date = 2023-05-17
authors = ["Carter Anderson"]
[extra]
image = "webgpu.svg"
show_image = true
author = "Carter Anderson"
twitter = "cart_cart"
github = "cart"
youtube = "cartdev"
Expand Down
2 changes: 1 addition & 1 deletion content/news/2023-07-09-bevy-0.11/index.md
@@ -1,8 +1,8 @@
+++
title = "Bevy 0.11"
date = 2023-07-09
authors = ["Bevy Contributors"]
[extra]
author = "Bevy Contributors"
image = "with_ssao.png"
show_image = true
+++
Expand Down
2 changes: 1 addition & 1 deletion content/news/2023-08-10-bevys-third-birthday/index.md
@@ -1,8 +1,8 @@
+++
title = "Bevy's Third Birthday"
date = 2023-08-10
authors = ["Carter Anderson"]
[extra]
author = "Carter Anderson"
twitter = "cart_cart"
github = "cart"
youtube = "cartdev"
Expand Down
@@ -1,8 +1,8 @@
+++
title = "Community Reflection on Bevy's Third Year"
date = 2023-09-21
authors = ["Carter Anderson"]
[extra]
author = "Carter Anderson"
twitter = "cart_cart"
github = "cart"
youtube = "cartdev"
Expand Down
1 change: 0 additions & 1 deletion content/news/2023-11-04-bevy-0.12/index.md
Expand Up @@ -2,7 +2,6 @@
title = "Bevy 0.12"
date = 2023-11-04
[extra]
author = "Bevy Contributors"
image = "cover.gif"
show_image = true
image_subtitle = "A relaxing 'tiny planet' city builder by Jos Feenstra (made with Bevy)"
Expand Down
2 changes: 1 addition & 1 deletion content/news/2023-12-12-sme-announcements/index.md
@@ -1,8 +1,8 @@
+++
title = "SME Announcements"
date = 2023-12-12
authors = ["Carter Anderson"]
[extra]
author = "Carter Anderson"
twitter = "cart_cart"
github = "cart"
youtube = "cartdev"
Expand Down
2 changes: 1 addition & 1 deletion content/news/2024-02-17-bevy-0.13/index.md
@@ -1,8 +1,8 @@
+++
title = "Bevy 0.13"
date = 2024-02-17
authors = ["Bevy Contributors"]
[extra]
author = "Bevy Contributors"
image = "jarl.webp"
show_image = true
image_subtitle = "Gameplay from Jarl, an in-production fantasy colony builder made with Bevy"
Expand Down
18 changes: 18 additions & 0 deletions sass/components/_footer.scss
@@ -0,0 +1,18 @@
.footer {
&__social-container {
display: flex;
flex-direction: row;
justify-content: center;
gap: 10px;
padding: 20px;
}

&__social {
img {
filter: grayscale(1) brightness(800%);
&:hover {
scale: 110%;
}
}
}
}
1 change: 1 addition & 0 deletions sass/site.scss
Expand Up @@ -45,6 +45,7 @@
@import "components/asset-card";
@import "components/image_compare";
@import "components/todo";
@import "components/footer";

// Pages
// - Page specific CSS
Expand Down
1 change: 1 addition & 0 deletions static/assets/feed.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 55 additions & 9 deletions static/assets/mastodon-logo-purple.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions templates/layouts/base.html
Expand Up @@ -171,6 +171,47 @@
{% block content %}{% endblock content %}
</div>
</main>
<footer>
{% block footer_extensions %}{% endblock footer_extensions %}
<div class="footer__social-container">
<a class="footer__social" href="https://github.com/bevyengine/bevy">
<img src="/assets/github-mark-white.svg"
alt="Bevy engine's GitHub repo"
width="32"
height="32" />
</a>
<a class="footer__social" href="https://discord.gg/bevy">
<img src="/assets/discord.svg"
alt="Bevy Discord server"
width="32"
height="32" />
</a>
<a class="footer__social" href="https://mastodon.social/@bevy">
<img src="/assets/mastodon-logo-purple.svg"
alt="Bevy Mastodon account"
width="32"
height="32" />
</a>
<a class="footer__social" href="https://twitter.com/BevyEngine">
<img src="/assets/twitter.svg"
alt="Bevy Twitter account"
width="32"
height="32" />
</a>
<a class="footer__social" href="https://www.reddit.com/r/bevy/">
<img src="/assets/reddit.svg"
alt="Bevy subreddit"
width="32"
height="32" />
</a>
<a class="footer__social" href="/atom.xml">
<img src="/assets/feed.svg"
alt="Bevy news feed"
width="32"
height="32" />
</a>
</div>
</footer>
</div>
<script>
const search_params = new URLSearchParams(window.location.search);
Expand Down
2 changes: 1 addition & 1 deletion templates/news-page.html
Expand Up @@ -7,7 +7,7 @@
{% block page_content %}
<h1 class="news-title">{{ page.title }}</h1>
<h2 class="news-subtitle">
Posted on {{ page.date | date(format="%B %d, %Y") }} by {{ page.extra.author }}
Posted on {{ page.date | date(format="%B %d, %Y") }} by {% if page.authors %}{% for author in page.authors %}{{ author }}{% endfor %}{% else %}Bevy Contributors{% endif %}
{% if page.extra.twitter or page.extra.github %}
<span class="news-social-links">
(
Expand Down
2 changes: 1 addition & 1 deletion templates/news.html
Expand Up @@ -23,7 +23,7 @@
</div>
<div class="link-card__content">
<h2 class="link-card__title">{{ page.title }}</h2>
<div class="link-card__subtitle">Written {{ page.date | date(format="%B %d, %Y") }} by {{ page.extra.author }}</div>
<div class="link-card__subtitle">Written {{ page.date | date(format="%B %d, %Y") }} by {% if page.authors %}{% for author in page.authors %}{{ author }}{% endfor %}{% else %}Bevy Contributors{% endif %}</div>
<p class="link-card__description link-card__description--ellipsis">
{{ page.summary | striptags | truncate(length=350) | safe }}
</p>
Expand Down

0 comments on commit 6ddb3c8

Please sign in to comment.