Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could be possible to insert a link in the metadata? #2673

Closed
aguadotzn opened this issue Oct 19, 2020 · 5 comments
Closed

Could be possible to insert a link in the metadata? #2673

aguadotzn opened this issue Oct 19, 2020 · 5 comments
Labels
need feedback Awaiting author response

Comments

@aguadotzn
Copy link

I am just wondering if we can put a link to another part of the project inside the metadata of any page. For example, in this case I want to include a link in the details of any feature. Could be possible? How to do this?

---
home: true
heroImage: /hero.png
heroText: Hero Title
tagline: Hero subtitle
actionText: Get Started →
actionLink: /guide/
features:
- title: Simplicity First
  details: Minimal setup with markdown-centered project structure helps you focus on writing.
- title: Vue-Powered
  details: Enjoy the dev experience of Vue + webpack, use Vue components in markdown, and develop custom themes with Vue.
- title: Performant
  details: VuePress generates pre-rendered static HTML for each page, and runs as an SPA once a page is loaded.
footer: MIT Licensed | Copyright © 2018-present Evan You
---

I just try with [vue link](vuejs.org)but is not actually possible inside YAML metadata. Thanks in advance.

@d-pollard
Copy link
Collaborator

Hmmm, can you provide a bit more context? what are you trying to achieve with this? Can you possible provide a few use-cases?

@d-pollard d-pollard added the need feedback Awaiting author response label Oct 20, 2020
@aguadotzn
Copy link
Author

aguadotzn commented Oct 20, 2020

I want to do exactly this (add hyperlink inside the metadata) on the home page:
ScreenshotVuePressHomepage

@vaibhavshn
Copy link

vaibhavshn commented Oct 24, 2020

Tried raw html there? I also a similar need, but to insert meta tags which will be visible when previewed in social media sites.

Like, custom meta tags from the frontmatter for each post to have unique title, description, image etc. would be a huge plus.

Does something like this exist currently, because the closest thing I could find was editing config.json.

@vinliao
Copy link

vinliao commented Oct 29, 2020

I also want to add links in footer text.

Here's the index.md

home: true
heroImage: https://v1.vuepress.vuejs.org/hero.png
tagline: blah blah blah
actionText: Let's go →
actionLink: /learn/
footer: Made with by [name](https://google.com) ❤️

And here's what the footer looks like:
Screenshot from 2020-10-29 13-16-51

Is there any way we can put links in index.md?

@d-pollard
Copy link
Collaborator

I think this might be a bit out of scope for the current package; thinking on this, if you want to extend this type of functionality, you can always utilize the built in theme inheritance to modify the base theme as you see fit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need feedback Awaiting author response
Projects
None yet
Development

No branches or pull requests

4 participants