File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ kramdown:
175175
176176# Collections
177177collections :
178- teaching :
178+ research :
179179 output : true
180180 permalink : /:collection/:path/
181181 publications :
Original file line number Diff line number Diff line change @@ -96,7 +96,8 @@ function convertBibAuthorToApa(fullName) {
9696
9797 let parts = fullName . split ( ", " ) ;
9898 let lastName = parts [ 0 ] ;
99+ let lastNameFormatted = lastName . charAt ( 0 ) . toUpperCase ( ) + lastName . slice ( 1 ) . toLowerCase ( ) ;
99100 let firstNames = parts [ 1 ] ? parts [ 1 ] . split ( " " ) . map ( name => name . charAt ( 0 ) . toUpperCase ( ) + "." ) . join ( " " ) : "" ;
100- return `${ lastName } , ${ firstNames } ` ;
101+ return `${ lastNameFormatted } , ${ firstNames } ` ;
101102
102103}
Original file line number Diff line number Diff line change 11---
22title : " Teaching experience 1"
3- collection : teaching
3+ collection : research
44type : " Undergraduate course"
5- permalink : /teaching /2014-spring-teaching-1
5+ permalink : /research /2014-spring-teaching-1
66venue : " University 1, Department"
77date : 2014-01-01
88location : " City, Country"
You can’t perform that action at this time.
0 commit comments