Fix tests and add note about translations
This commit is contained in:
parent
06bee578a0
commit
3e1a934604
|
@ -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/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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>;
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue