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

Remove render_orphaned_uris and reorganize superResource handling #82

Closed
white-gecko opened this issue Jul 18, 2017 · 1 comment
Closed
Assignees
Milestone

Comments

@white-gecko
Copy link
Member

white-gecko commented Jul 18, 2017

The complete list is in #94

For the special case of fragment identifiers:

<http://ex.org/c>         -> /c.html
<http://ex.org/c#alpha>   -> /c.html
<http://ex.org/c#beta>    -> /c.html

In /c.html the variables are set as follows:

page.rdf = "http://ex.org/c"
page.rdf.covered = true
page.sub_rdf = [http://ex.org/c#alpha, http://ex.org/c#beta]

It there is no "super resource" the page is still generated if there are fragment identifiers on it:

<http://ex.org/d#gama>    -> /d.html
<http://ex.org/d#delta>   -> /d.html

In /d.html the variables are set as follows:

page.rdf = "http://ex.org/d"
page.rdf.covered = false
page.sub_rdf = [http://ex.org/d#gama, http://ex.org/d#delta]

Since there is no class in the model for <http://ex.org/d> the default_template will be used except for, that an instance_template_mappings entry exists for <http://ex.org/d>. If no default_template and no mapping is provided, the page will not be rendered.

@white-gecko
Copy link
Member Author

site.url = http://example.org
site.baseurl = /simpsons

http://example.org/simpsons/family
http://example.org/simpsons/homer                   page_url: /homer                    render_path: /homer.html
http://example.org/simpsons/homer#beerconsumption   page_url: /homer#beerconsumption    render_path: /homer.html

{{ site.url | append: site.baseurl | append: resource.page_url }}

http://example.org/simpsons/homer
http://example.org/simpsons/homer#beerconsumption

------

site.url = http://example.org
site.baseurl = /simpsons/

http://example.org/simpsons/family
http://example.org/simpsons/homer                   page_url: homer                    render_path: homer.html
http://example.org/simpsons/homer#beerconsumption   page_url: homer#beerconsumption    render_path: homer.html

{{ site.url | append: site.baseurl | append: resource.page_url }}

http://example.org/simpsons/homer
http://example.org/simpsons/homer#beerconsumption


------

site.url = http://example.org
site.baseurl = /

http://example.org/simpsons/family
http://example.org/simpsons/homer                   page_url: simpsons/homer                    render_path: simpsons/homer.html
http://example.org/simpsons/homer#beerconsumption   page_url: simpsons/homer#beerconsumption    render_path: simpsons/homer.html

{{ site.url | append: site.baseurl | append: resource.page_url }}

http://example.org/simpsons/homer
http://example.org/simpsons/homer#beerconsumption


------

site.url = http://example.org
site.baseurl = 

http://example.org/simpsons/family
http://example.org/simpsons/homer                   page_url: /simpsons/homer                    render_path: /simpsons/homer.html
http://example.org/simpsons/homer#beerconsumption   page_url: /simpsons/homer#beerconsumption    render_path: /simpsons/homer.html

{{ site.url | append: site.baseurl | append: resource.page_url }}

http://example.org/simpsons/homer
http://example.org/simpsons/homer#beerconsumption

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

2 participants