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 path handler support for fragments #3032

Merged
merged 1 commit into from Apr 15, 2018
Merged

Add path handler support for fragments #3032

merged 1 commit into from Apr 15, 2018

Conversation

@gwax
Copy link
Contributor

@gwax gwax commented Apr 15, 2018

Pull Request Checklist

  • I’ve read the guidelines for contributing.
  • I updated AUTHORS.txt and CHANGES.txt (if the change is non-trivial) and documentation (if applicable).
  • I tested my changes.

Description

Add support for fragments to path handlers: ex. link://slug/my-post#some_heading

@gwax gwax requested a review from Kwpolska Apr 15, 2018
Copy link
Member

@Kwpolska Kwpolska left a comment

LGTM!

You can also add query strings (``?key=value``) for extra arguments, or pass keyword arguments to ``_link`` in templates (support and behavior depends on path handlers themselves)
Nikola supports special links with the syntax ``link://kind/name``. In
templates you can also use ``_link(kind, name)``. You can add
fragments (``#anchor``) and query strings (``?key=value``) for extra
Copy link
Member

@Kwpolska Kwpolska Apr 15, 2018

This file is auto-generated, I’ll update the generation script myself (and do a slight rephrasing, and add a warning about editing this file).

@Kwpolska
Copy link
Member

@Kwpolska Kwpolska commented Apr 15, 2018

I’l also add a CHANGES.txt mention.

@Kwpolska Kwpolska merged commit c962f86 into master Apr 15, 2018
4 of 5 checks passed
@Kwpolska Kwpolska deleted the path_handler_fragments branch Apr 15, 2018
Kwpolska added a commit that referenced this issue Apr 15, 2018
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants