diff --git a/components/library/src/content/page.rs b/components/library/src/content/page.rs index 852156a4..7f04609f 100644 --- a/components/library/src/content/page.rs +++ b/components/library/src/content/page.rs @@ -567,7 +567,7 @@ And here's another. [^2] assert_eq!(page.file.parent, path.join("content").join("posts")); assert_eq!(page.slug, "with-assets"); 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/"); } diff --git a/docs/content/documentation/templates/pages-sections.md b/docs/content/documentation/templates/pages-sections.md index ec550ed5..866caf06 100644 --- a/docs/content/documentation/templates/pages-sections.md +++ b/docs/content/documentation/templates/pages-sections.md @@ -57,7 +57,7 @@ ancestors: Array; relative_path: String; // The language for the page if there is one. Default to the config `default_language` 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; ```