Merge pull request 'Add possibility to link news post' (#31) from link-news into main

Reviewed-on: #31
This commit is contained in:
Adrien Allard 2025-07-21 08:53:50 +00:00
commit 1b127c006a
8 changed files with 15 additions and 3 deletions

View File

@ -1,4 +1,5 @@
--- ---
id: 001-a-new-indie-studio
title: Frog Collective a new indie game development studio! title: Frog Collective a new indie game development studio!
date: 04/21/2024 date: 04/21/2024
--- ---

View File

@ -1,4 +1,5 @@
--- ---
id: 002-coldridge-is-out
title: Our first game is out title: Our first game is out
date: 10/28/2024 date: 10/28/2024
--- ---

View File

@ -1,4 +1,5 @@
--- ---
id: 003-one-year-already
title: Frog Collective is just over a year old! title: Frog Collective is just over a year old!
date: 03/31/2025 date: 03/31/2025
--- ---

View File

@ -1,4 +1,5 @@
--- ---
id: 001-un-nouveau-studio-indie
title: Frog Collective, un nouveau studio de développement de jeux indépendants ! title: Frog Collective, un nouveau studio de développement de jeux indépendants !
date: 21/04/2024 date: 21/04/2024
--- ---

View File

@ -1,4 +1,5 @@
--- ---
id: 002-coldridge-est-sorti
title: Notre premier jeu est sorti ! title: Notre premier jeu est sorti !
date: 10/28/2024 date: 10/28/2024
--- ---

View File

@ -1,4 +1,5 @@
--- ---
id: 003-un-an-deja
title: Frog Collective fête son premier anniversaire ! title: Frog Collective fête son premier anniversaire !
date: 03/31/2025 date: 03/31/2025
--- ---

View File

@ -9,10 +9,11 @@
) %} ) %}
{% for news in glob("news/*.md") | sort(reverse=true, attribute='path') | map('markdown') %} {% for news in glob("news/*.md") | sort(reverse=true, attribute='path') | map('markdown') %}
<div class="news"> <div class="news">
<div class="news--header"> <a class="section--anchor" id="{{news.meta.id}}"></a>
<a href="/{{ context.current_language }}/#{{news.meta.id}}" class="news--header-link">
<h3 class="news--date">{{ news.meta.date }}</h3> <h3 class="news--date">{{ news.meta.date }}</h3>
<h2 class="news--title">{{ news.meta.title }}</h2> <h2 class="news--title">{{ news.meta.title }}</h2>
</div> </a>
<div class="news--content"> <div class="news--content">
<style>{{ news.meta.css }}</style> <style>{{ news.meta.css }}</style>
{{ news }} {{ news }}

View File

@ -6,17 +6,22 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
&--header { &--header-link {
display: flex; display: flex;
color: var(--color-on-dark); color: var(--color-on-dark);
background: var(--background-red); background: var(--background-red);
padding: var(--space-small) var(--space-medium); padding: var(--space-small) var(--space-medium);
align-items: center; align-items: center;
gap: var(--space-small); gap: var(--space-small);
text-decoration: none;
@media($mobile-breakpoint) { @media($mobile-breakpoint) {
flex-direction: column; flex-direction: column;
} }
&:hover {
background: var(--background-dark);
}
} }
&--date { &--date {