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

Update ref/relref documentation about optional extensions #307

Closed
kaushalmodi opened this issue Jan 24, 2018 · 5 comments
Closed

Update ref/relref documentation about optional extensions #307

kaushalmodi opened this issue Jan 24, 2018 · 5 comments

Comments

@kaushalmodi
Copy link
Contributor

Update the ref/relref documentation with:

@bep
Copy link
Member

bep commented Jan 24, 2018

I suggest waiting for 0.35 and make a "overhaul" of this.

bep added a commit to gohugoio/hugo that referenced this issue Jan 24, 2018
Now, even for nun-bundles it is possible to do lookup without path or extension.

So, given `blog/my-blog-post.en.md` these lookups will succeed:

* `blog/my-blog-post.en.md`
* `blog/my-blog-post`
* `my-blog-post.en.md`
* `my-blog-post`

See #4312
See gohugoio/hugoDocs#307
@Jibec
Copy link
Contributor

Jibec commented Feb 5, 2018

I would love to see this included in documentation, this is vital for internal links while and multilingual site, so the link is language agnostic!

@kaushalmodi
Copy link
Contributor Author

  • Clarify that ref and relref can be used to link only regular pages (not section pages, taxonomy pages, etc.) (ref)

@stale
Copy link

stale bot commented Nov 29, 2018

This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
If you still think this is important, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.

@stale stale bot added the Stale label Nov 29, 2018
@stale stale bot closed this as completed Dec 30, 2018
@kaushalmodi kaushalmodi reopened this Dec 31, 2018
@stale stale bot removed the Stale label Dec 31, 2018
@jmooring
Copy link
Member

jmooring commented Sep 7, 2020

This was resolved on September 5, 2020 with #1213.

Note that these statements were removed from the documentation because they are no longer true:

ref looks up Hugo “Regular Pages” only. It can’t be used for the homepage, section pages, etc.

relref looks up Hugo “Regular Pages” only. It can’t be used for the homepage, section pages, etc.

@jmooring jmooring closed this as completed Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants