This repository was archived by the owner on Apr 7, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,11 @@ class Footer extends React.Component {
24
24
return baseUrl + ( language ? language + "/" : "" ) + doc ;
25
25
}
26
26
27
+ getCurrentYear ( ) {
28
+ return new Date ( ) . getFullYear ( ) ;
29
+ }
30
+
27
31
render ( ) {
28
- const currentYear = new Date ( ) . getFullYear ( ) ;
29
32
return (
30
33
< footer className = "nav-footer" id = "footer" >
31
34
< a
@@ -41,7 +44,7 @@ class Footer extends React.Component {
41
44
/>
42
45
</ a >
43
46
< section className = "copyright" >
44
- { this . props . config . copyright }
47
+ { this . props . config . copyright ( this . getCurrentYear ) }
45
48
</ section >
46
49
</ footer >
47
50
) ;
Original file line number Diff line number Diff line change @@ -68,7 +68,10 @@ const siteConfig = {
68
68
},*/
69
69
70
70
// This copyright info is used in /core/Footer.js and blog rss/atom feeds.
71
- copyright : "Copyright © " + new Date ( ) . getFullYear ( ) + " Tokopedia OSS" ,
71
+ // copyright: "Copyright © " + new Date().getUTCFullYear() + " Tokopedia OSS",
72
+ copyright ( currentYear ) {
73
+ return "Copyright © " + currentYear ( ) + " Tokopedia OSS"
74
+ } ,
72
75
73
76
highlight : {
74
77
// Highlight.js theme to use for syntax highlighting in code blocks
Original file line number Diff line number Diff line change 119
119
margin : 0 auto;
120
120
text-align : center;
121
121
opacity : 0.5 ;
122
+ width : 60% ;
123
+ max-width : 300px ;
122
124
}
123
125
124
126
.tkpdOpenSourceLogo {
125
127
position : relative;
126
- width : 60% ;
127
- max-width : 300px ;
128
+ width : 100% ;
128
129
}
129
130
130
131
.docMainWrapper .mainContainer .postHeaderTitle {
You can’t perform that action at this time.
0 commit comments