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

Website: Enable hooks to individual sections on a page and link back to home #86

Open
constantinpape opened this issue Sep 8, 2022 · 2 comments

Comments

@constantinpape
Copy link
Contributor

These two basic features would be nice to enable better navigation on the website.

Hooks: I mean getting the url to a section of a page, like this:
image

Link to home: I think it would be nice if clicking on the MoBIE logo leads back to the initial web page.

@K-Meech any idea how to do this in the github jekyll theme we're using?

@K-Meech
Copy link
Contributor

K-Meech commented Sep 8, 2022

I agree this would be very useful! I don't think there's an easy way to add those hooks to github pages though unfortunately. They appear automatically for github markdown, but it looks like you'd need to add some extras to make it work for github pages e.g. https://ben.balter.com/2014/03/13/pages-anchor-links/ or https://milanaryal.com.np/adding-hover-anchor-links-to-header-on-github-pages-using-jekyll/

For making the image a link, I think this is added here: https://github.com/mobie/mobie.github.io/blob/master/_layouts/default.html#L34 So you probably just need to add a link to this line?

@constantinpape
Copy link
Contributor Author

I agree this would be very useful! I don't think there's an easy way to add those hooks to github pages though unfortunately. They appear automatically for github markdown, but it looks like you'd need to add some extras to make it work for github pages e.g. https://ben.balter.com/2014/03/13/pages-anchor-links/ or https://milanaryal.com.np/adding-hover-anchor-links-to-header-on-github-pages-using-jekyll/

Ok, thanks for the links, maybe I have some time to take a look in the next week or so.

For making the image a link, I think this is added here: https://github.com/mobie/mobie.github.io/blob/master/_layouts/default.html#L34 So you probably just need to add a link to this line?

Indeed, that was easy: dae33eb

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

2 participants