File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ lastmod = 2022-02-23T17:23:37+08:00
5
5
draft = false
6
6
+++
7
7
8
- {{< heatmap title_text="Article Activity" language="EN" >}}
8
+ {{< heatmap >}}
9
9
10
10
## About me {#about-me}
11
11
Original file line number Diff line number Diff line change 2
2
< div >
3
3
< div style ="display: flex; justify-content: center; align-items: center ">
4
4
< p style ="margin-right: 15px; margin-bottom: 0; color: #333; padding: 8px ">
5
- {{ .Get "title_text" }}
5
+ {{ default "Article Activity" ( .Get "title_text") }}
6
6
</ p >
7
7
< select
8
8
id ="yearSelector "
128
128
yearLabel : { show : false } ,
129
129
dayLabel : {
130
130
firstDay : 1 ,
131
- nameMap : { { . Get "language" } }
131
+ nameMap : { { default "EN" ( . Get "language" ) } }
132
132
} ,
133
133
monthLabel : {
134
- nameMap : { { . Get "language" } }
134
+ nameMap : { { default "EN" ( . Get "language" ) } }
135
135
} ,
136
136
splitLine : {
137
137
show : false ,
141
141
hideDelay : 1000 ,
142
142
enterable : true ,
143
143
formatter : function ( params ) {
144
- const thousandWordsText = { { . Get "language" } } = = = "EN" ? 'k words' : '千字' ;
144
+ const thousandWordsText = { { default "EN" ( . Get "language" ) } } === "EN" ? 'k words' : '千字' ;
145
145
const thousandWords = ( params . data [ 1 ] / 1000.0 ) . toFixed ( 1 ) ;
146
146
const date = params . data [ 0 ] ;
147
147
const posts = postsByDate . get ( date ) . get ( "posts" ) ;
You can’t perform that action at this time.
0 commit comments