5
5
{% assign all_list = '' | split: '' %}
6
6
7
7
{% 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 -->
9
13
10
14
{% capture elem %}
11
15
{{- datetime | date: "%Y%m%d%H%M%S" -}}::{{- forloop.index0 -}}
14
18
{% assign all_list = all_list | push: elem %}
15
19
{% endfor %}
16
20
17
- {% assign all_list = all_list | sort | reverse %}
21
+ {% assign all_list = all_list | sort | reverse %}
18
22
19
23
{% assign update_list = '' | split: '' %}
20
24
24
28
25
29
{% if update_list.size > 0 %}
26
30
< 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 >
28
32
< ul class ="content list-unstyled ps-0 pb-1 ms-1 mt-2 ">
29
33
{% for item in update_list %}
30
34
{% assign index = item | split: '::' | last | plus: 0 %}
@@ -36,17 +40,16 @@ <h2 class="panel-heading">{{- site.data.locales[site.active_lang].panel.lastmod
36
40
{% endfor %}
37
41
38
42
</ 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 -->
50
53
51
54
</ section >
52
55
<!-- #access-lastmod -->
0 commit comments