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

Have individual project subpages #47

Closed
rufuspollock opened this issue Jun 4, 2013 · 6 comments · Fixed by #51
Closed

Have individual project subpages #47

rufuspollock opened this issue Jun 4, 2013 · 6 comments · Fixed by #51

Comments

@rufuspollock
Copy link
Member

Suggest projects have a url-usable name and get a location at http://okfnlabs.org/project/{name}

Question of what we link to on projects list page

  • link to project page on okfnlabs by default via both image and the name but also have a small url named "project homepage"
  • OR link to project home page by default and have a link called "more info" that links to okfnlabs page

I incline somewhat to the latter ...

@rufuspollock
Copy link
Member Author

@andylulz thoughts? I know this was something you considered in your refactor ...

@andylolz
Copy link
Collaborator

andylolz commented Jun 4, 2013

I’ve done it for the very-similar-yet-subtly-different /projects/{name}/index.html. I can’t seem to get jekyll to get rid of that index.html!

I think I’d opt for the latter of those options as well. At the moment though, “more info” doesn’t strictly give any more info – it’s just a permalink to a page containing the same content (since the project layout html is currently a copy/paste of the html in the project list markdown.)

I’ve called it “more info” anyway, assuming these layouts will diverge in the future.

@rufuspollock
Copy link
Member Author

Ah note: you can link to /projects/{name}/ but you will need permalink in project page frontmatter to be /projects/{name}/index.html

@andylolz
Copy link
Collaborator

andylolz commented Jun 4, 2013

You’re right! But…

I don’t think we have a useful variable we can use… {{ name }} doesn’t exist (in jekyll 1.0.2, anyway). {{ id }} almost does the right thing, but not quite. We could add some meta to the frontmatter of project posts that matches the filename, but it’s just a shame to duplicate information like that. Alternatively, I expect we can generate the variable we need in a plugin.

Does the site’s hosting allow plugins, or is it run in safe mode (like github pages)?

@rufuspollock
Copy link
Member Author

I would just explicitly add "name" as an attribute on projects. I know it dupes the filename but that's life ;-)

@andylolz
Copy link
Collaborator

andylolz commented Jun 4, 2013

Aha! All makes sense now! I’ll do that now.

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

Successfully merging a pull request may close this issue.

2 participants