diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b3da5b..a8839ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Update livereload - Add `hard_link_static` config option to hard link things in the static directory instead of copying - Draft pages are not longer rendered +- Add warning for old style internal links since they would still function ## 0.8.0 (2019-06-22) diff --git a/components/rendering/src/markdown.rs b/components/rendering/src/markdown.rs index 342b368..9325c5c 100644 --- a/components/rendering/src/markdown.rs +++ b/components/rendering/src/markdown.rs @@ -77,6 +77,12 @@ fn fix_link( if link_type == LinkType::Email { return Ok(link.to_string()); } + + // TODO: remove me in a few versions when people have upgraded + if link.starts_with("./") && link.contains(".md") { + println!("It looks like the link `{}` is using the previous syntax for internal links: start with @/ instead", link); + } + // A few situations here: // - it could be a relative link (starting with `@/`) // - it could be a link to a co-located asset diff --git a/docs/content/documentation/content/image-processing/index.md b/docs/content/documentation/content/image-processing/index.md index 32c95d6..30aa0e7 100644 --- a/docs/content/documentation/content/image-processing/index.md +++ b/docs/content/documentation/content/image-processing/index.md @@ -150,4 +150,4 @@ Here is the result: ## Get image size Sometimes when building a gallery it is useful to know the dimensions of each asset. You can get this information with -[get_image_metadata](./documentation/templates/overview.md#get-image-metadata) \ No newline at end of file +[get_image_metadata](@/documentation/templates/overview.md#get-image-metadata) \ No newline at end of file