haghish / github

a module for building, searching, installing, managing, and mining Stata packages from GitHub
http://haghish.github.io/github/
100 stars 41 forks source link

Fix website section header links #14

Closed remlapmot closed 3 years ago

remlapmot commented 3 years ago

Thanks for this great package.

This fixes that the links to the section headers aren't working on your github pages site here. This is because you need to make the references all lowercase in index.md. I have also corrected the links in the README.md but somehow they were working.

Also you don't need to replicate the README.md in index.md. You can have an index.md which reads in the README.md such as mine here e.g. you can have in index.md simply:

---
title: Home
navigation_weight: 1
---
{% include_relative README.md %}

(I am not entirely sure if the navigation_weight YAML header argument is needed - I find Jekyll tricky).

I didn't add this to this PR but can do if you like.

haghish commented 3 years ago

thanks for your contribution Tom. I'm gonna apply your corrections. Cheers.