Got the Answer..
Don't understand why the down voting - very unnecessary..
This is the code.
function list-my-gh-pages() {
curl -s "https://api.github.com/users/YOUR_USERNAME/repos?per_page=100" | \
jq -r '.[] | select(.has_pages) | "\(.name): https://\(.owner.login).github.io/\(.name)"'
}
and run it:
list-my-gh-pages
works exactly like I want it to.