Skip to content

[feature request]: strip custom prefix from links #376

Open
@jalil-salame

Description

@jalil-salame

Zola (static site generator) uses a [name](@/path/to/file.md) syntax to resolve links (e.g. [blog](@/blog/_index.md) will resolve to href="/blog/" once compiled, and it points to the blog/_index.md file).

By stripping the @/ prefix from the link (option in config.toml ideally) this could be supported, otherwise you just get a warning Link to non-existent document '@/blog/_index.md'.

My suggestion is to add a strip_link_prefix™️ option to the configuration, this could be a single string or a list? (maybe someone needs this?), and before checking if the link is valid, this prefix would be stripped from it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestneeds-further-inputFurther information is required from the reporter

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions