Fix tests and add note about translations

This commit is contained in:
Vincent Prouillet 2021-06-25 10:12:05 +02:00
parent 06bee578a0
commit 3e1a934604
2 changed files with 2 additions and 2 deletions

View file

@ -567,7 +567,7 @@ And here's another. [^2]
assert_eq!(page.file.parent, path.join("content").join("posts")); assert_eq!(page.file.parent, path.join("content").join("posts"));
assert_eq!(page.slug, "with-assets"); assert_eq!(page.slug, "with-assets");
assert_eq!(page.assets.len(), 3); assert_eq!(page.assets.len(), 3);
assert!(section.serialized_assets[0].starts_with('/')); assert!(page.serialized_assets[0].starts_with('/'));
assert_eq!(page.permalink, "http://a-website.com/posts/with-assets/"); assert_eq!(page.permalink, "http://a-website.com/posts/with-assets/");
} }

View file

@ -57,7 +57,7 @@ ancestors: Array<String>;
relative_path: String; relative_path: String;
// The language for the page if there is one. Default to the config `default_language` // The language for the page if there is one. Default to the config `default_language`
lang: String; lang: String;
// Information about all the available languages for that content // Information about all the available languages for that content, including the current page
translations: Array<TranslatedContent>; translations: Array<TranslatedContent>;
``` ```