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

Liquid tag for linking within a Morea site #3

Open
philipmjohnson opened this issue Apr 20, 2015 · 2 comments
Open

Liquid tag for linking within a Morea site #3

philipmjohnson opened this issue Apr 20, 2015 · 2 comments
Assignees
Milestone

Comments

@philipmjohnson
Copy link
Contributor

Currently, linking in Morea sucks.

To solve this, implement a fluid tag that expands into the correct URL given the morea-id for the target object. For example:

 {% morea-link reading-grading %}
@philipmjohnson philipmjohnson added this to the Morea 2 milestone Apr 20, 2015
@philipmjohnson philipmjohnson changed the title Fluid tag for linking within a Morea site Liqued tag for linking within a Morea site May 15, 2015
@philipmjohnson philipmjohnson changed the title Liqued tag for linking within a Morea site Liquid tag for linking within a Morea site May 15, 2015
@philipmjohnson
Copy link
Contributor Author

Unfortunately, this approach won't work because liquid tags are expanded as each page is encountered. As a result, forward references to morea IDs that have not yet been encountered by the generator cannot be resolved. Not sure how to deal with this.

A gist showing the liquid tag definition file is here:

https://gist.github.com/philipmjohnson/50705a3fb61742eb6193

@philipmjohnson philipmjohnson self-assigned this Jun 13, 2015
@philipmjohnson philipmjohnson modified the milestones: Morea 2.1, Morea 2.0 Jun 13, 2015
@philipmjohnson
Copy link
Contributor Author

Maybe the hook functions in Jekyll 3.0 will allow me to do this.

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

No branches or pull requests

1 participant