Skip to content

Commit b6c52ad

Browse files
committed
FIX updated-post lists
1 parent 9abbad2 commit b6c52ad

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

_includes/42ai_home.html

-3
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,8 @@ <h3>{{42ai_home.welcome[lang]}}</h3>
8383
<!-- //Social media Icons Links list -->
8484
</div>
8585
<!-- // TLDR -->
86-
8786

8887
<hr/>
89-
9088

9189
<!-- QUICK ACCESS -->
9290
<div style="margin: 25px 15px 15px 15px;">
@@ -131,7 +129,6 @@ <h3>{{ 42ai_home.quick_access.text[site.active_lang] }}
131129

132130
<hr/>
133131

134-
135132
<!-- ACTIVITY / LAST POSTS -->
136133
<div style="margin: 25px 15px 25px 15px;">
137134

_includes/update-list.html

+17-14
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
{% assign all_list = '' | split: '' %}
66

77
{% for post in site.posts %}
8-
{% assign datetime = post.last_modified_at | default: post.date %}
8+
<!-- Modif 42AI -->
9+
{% assign datetime = default: post.date %}
10+
<!-- Initial line : -->
11+
<!-- {% assign datetime = post.last_modified_at | default: post.date %} -->
12+
<!-- Fin Modif42AI -->
913

1014
{% capture elem %}
1115
{{- datetime | date: "%Y%m%d%H%M%S" -}}::{{- forloop.index0 -}}
@@ -14,7 +18,7 @@
1418
{% assign all_list = all_list | push: elem %}
1519
{% endfor %}
1620

17-
{% assign all_list = all_list | sort | reverse %}
21+
{% assign all_list = all_list | sort | reverse %}
1822

1923
{% assign update_list = '' | split: '' %}
2024

@@ -24,7 +28,7 @@
2428

2529
{% if update_list.size > 0 %}
2630
<section id="access-lastmod">
27-
<h2 class="panel-heading">{{- site.data.locales[site.active_lang].panel.lastmod -}}<img style="margin: 0px auto 5px 5px" width="12px" src="/assets/img/corner.png"/></h2>
31+
<h2 class="panel-heading">{{- site.data.locales[site.active_lang].panel.lastmod -}}<img style="margin: 0px auto 5px 5px; width:12px" src="/assets/img/corner.png"/></h2>
2832
<ul class="content list-unstyled ps-0 pb-1 ms-1 mt-2">
2933
{% for item in update_list %}
3034
{% assign index = item | split: '::' | last | plus: 0 %}
@@ -36,17 +40,16 @@ <h2 class="panel-heading">{{- site.data.locales[site.active_lang].panel.lastmod
3640
{% endfor %}
3741

3842
</ul>
39-
<!-- Ajout 42AI -->
40-
<a href="/categories">
41-
<button class="post-tag btn btn-outline-primary" style="background-color: lightgrey; margin-top: 05px;
42-
border-radius: 5px; font-family: roboto;">
43-
{% if site.active_lang == 'fr' %}Voir tous les posts
44-
{% elsif site.active_lang == 'en' %}See all posts
45-
{% endif %}
46-
</button>
47-
48-
</a>
49-
<!-- //Ajout 42AI -->
43+
<!-- Ajout 42AI -->
44+
<a href="/categories">
45+
<button class="post-tag btn btn-outline-primary" style="background-color: lightgrey; margin-top: 05px;
46+
border-radius: 5px; font-family: roboto;">
47+
{% if site.active_lang == 'fr' %}Voir tous les posts
48+
{% elsif site.active_lang == 'en' %}See all posts
49+
{% endif %}
50+
</button>
51+
</a>
52+
<!-- //Ajout 42AI -->
5053

5154
</section>
5255
<!-- #access-lastmod -->

_posts/2024-06-28-Vendred'IA.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Au programme de cette conférence introductive :
2424

2525
Cette conférence est ouverte à tous, et ne nécessite aucune expertise en IA.
2626

27-
📅 Vendredi 28 Juin à 19h
27+
- 📅 Vendredi 28 Juin à 19h -
2828

2929
📍 BESS, Café des Associations
3030

0 commit comments

Comments
 (0)