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

Add possibility to use "ref" for links within front-matter #574

Open
stp-ip opened this issue Jun 13, 2019 · 4 comments
Open

Add possibility to use "ref" for links within front-matter #574

stp-ip opened this issue Jun 13, 2019 · 4 comments
Assignees
Milestone

Comments

@stp-ip
Copy link
Member

stp-ip commented Jun 13, 2019

Is this a BUG REPORT or FEATURE REQUEST?:
feature

What happened:
Currently hugo reference style linking within buttons etc. isn't possible.

What you expected to happen:
Enable "ref" style links even in front matter.

Anything else we need to know?:
This should also make link breakage more noticeable.

@stp-ip stp-ip added this to the v0.16.0 milestone Jun 13, 2019
@mpourismaiel
Copy link
Member

I don't really understand. Could you please elaborate?

@stp-ip
Copy link
Member Author

stp-ip commented Aug 14, 2019

Currently we only allow relative or absolute links within fragments.
We recently switched within our docs to using "ref" such as {{< ref "fragment.md" >}} instead. That way moving content doesn't always break the link and also if it breaks hugo has the ability to warn the user.
This issue is about adding support of ref along the lines of:

[[buttons]]
  text = "Example"
  url = "{{< ref "other-example.md" >}}"
  color = "dark"

@mpourismaiel
Copy link
Member

Is this something we want for all the fragments?

@stp-ip
Copy link
Member Author

stp-ip commented Aug 14, 2019

I would say yes.

@mpourismaiel mpourismaiel self-assigned this Aug 15, 2019
@stp-ip stp-ip modified the milestones: v0.16.0, v0.17.0 Dec 31, 2019
@stp-ip stp-ip modified the milestones: v0.17.0, v0.18.0 Apr 23, 2020
@stp-ip stp-ip modified the milestones: v0.17.1, v0.18.0 May 23, 2020
@stp-ip stp-ip modified the milestones: v0.17.3, v0.18.0 Jul 27, 2020
@stp-ip stp-ip modified the milestones: v0.17.4, v0.18.0 Oct 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants