Skip to content

Is there a way to include variables from front-matter in a Markdown link #965

@johnrengelman

Description

@johnrengelman

Sorry if this is not the correct place to get this info. I'm very new Vue and Vuepress.
I'm trying to write documentation for a software project and I'm using Vuepress with markdown files.
I have lots of links that point out to an external site and I was wondering if there was a way for me including the base path in the front matter and then use that in the markdown link.

---
api: http://domain.com/api
---

This is the [link]({{ $page.api }}/path/to/a/file.html)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions