@@ -37,7 +37,8 @@ describe('open_graph', () => {
37
37
meta ( { property : 'og:url' } ) ,
38
38
meta ( { property : 'og:site_name' , content : hexo . config . title } ) ,
39
39
meta ( { property : 'og:locale' , content : 'en' } ) ,
40
- meta ( { property : 'og:updated_time' , content : post . updated . toISOString ( ) } ) ,
40
+ meta ( { property : 'article:published_time' , content : post . date . toISOString ( ) } ) ,
41
+ meta ( { property : 'article:modified_time' , content : post . updated . toISOString ( ) } ) ,
41
42
meta ( { name : 'twitter:card' , content : 'summary' } )
42
43
] . join ( '\n' ) ) ;
43
44
@@ -435,27 +436,27 @@ describe('open_graph', () => {
435
436
is_post : isPost
436
437
} , { } ) ;
437
438
438
- result . should . contain ( meta ( { property : 'og:updated_time ' , content : '2016-05-23T21:20:21.372Z' } ) ) ;
439
+ result . should . contain ( meta ( { property : 'article:modified_time ' , content : '2016-05-23T21:20:21.372Z' } ) ) ;
439
440
} ) ;
440
441
441
- it ( 'updated - options - allow overriding og:updated_time ' , ( ) => {
442
+ it ( 'updated - options - allow overriding article:modified_time ' , ( ) => {
442
443
const result = openGraph . call ( {
443
444
page : { updated : moment ( '2016-05-23T21:20:21.372Z' ) } ,
444
445
config : hexo . config ,
445
446
is_post : isPost
446
447
} , { updated : moment ( '2015-04-22T20:19:20.371Z' ) } ) ;
447
448
448
- result . should . contain ( meta ( { property : 'og:updated_time ' , content : '2015-04-22T20:19:20.371Z' } ) ) ;
449
+ result . should . contain ( meta ( { property : 'article:modified_time ' , content : '2015-04-22T20:19:20.371Z' } ) ) ;
449
450
} ) ;
450
451
451
- it ( 'updated - options - allow disabling og:updated_time ' , ( ) => {
452
+ it ( 'updated - options - allow disabling article:modified_time ' , ( ) => {
452
453
const result = openGraph . call ( {
453
454
page : { updated : moment ( '2016-05-23T21:20:21.372Z' ) } ,
454
455
config : hexo . config ,
455
456
is_post : isPost
456
457
} , { updated : false } ) ;
457
458
458
- result . should . not . contain ( meta ( { property : 'og:updated_time ' , content : '2016-05-23T21:20:21.372Z' } ) ) ;
459
+ result . should . not . contain ( meta ( { property : 'article:modified_time ' , content : '2016-05-23T21:20:21.372Z' } ) ) ;
459
460
} ) ;
460
461
461
462
it ( 'description - do not add /(?:og:)?description/ meta tags if there is no description' , ( ) => {
0 commit comments