Commit 1f7875c 1 parent 34851e4 commit 1f7875c Copy full SHA for 1f7875c
File tree 3 files changed +5
-6
lines changed
3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ def get_posts():
27
27
link_to_post = "/post?date=" + yaml_file
28
28
# collect datetime info
29
29
datetime_list = re .split ('_|\.' , yaml_file )
30
- file_year = datetime_list [0 ]
31
- file_month = datetime_list [1 ]
32
- file_day = datetime_list [2 ]
30
+ file_year = int ( datetime_list [0 ])
31
+ file_month = int ( datetime_list [1 ])
32
+ file_day = int ( datetime_list [2 ])
33
33
if file_year in timeline :
34
34
if file_month in timeline [file_year ]:
35
35
timeline [file_year ][file_month ][file_day ] = link_to_post
Original file line number Diff line number Diff line change 1
-
2
1
---
3
2
apiVersion : apps/v1
4
3
kind : Deployment
Original file line number Diff line number Diff line change 10
10
< ol >
11
11
{% for year in date_dict %}
12
12
< li class ="sidebar-section "> {{ year }} </ li >
13
- {% for month in date_dict[year] %}
14
- {% for day in date_dict[year][month] %}
13
+ {% for month in date_dict[year]|sort(reverse=True) %}
14
+ {% for day in date_dict[year][month]|sort %}
15
15
< li >
16
16
< a href ="{{ date_dict[year][month][day] }} ">
17
17
{{ month }}/{{ day }}
You can’t perform that action at this time.
0 commit comments