I created a basic site using Jekyll. It has a couple of bullet points whose text is a link to another URL.
In the markdown source, these URLs are displayed as links, but in the rendered site, they lost the clickable link property.
I quickly fixed them by changing the markdown to use an explicit link, like
No formatting at all. Here is the source before I fixed it; at the time, the URLs were rendered as clickable links by Github, but the links disappeared and left only the text when the site was built and deployed.
(The link is to the diff where I edited the file to add the links; sorry, I can’t find a good way to link to my fork’s contents at this particular commit, perhaps because I’m on mobile.)
While I appreciate your sharing the issue and sharing the new commit, I would appreciate it if you just share what you type in markdown vs what displays in the browser source. Is the link contained within your site or does it point to another site?
I looked at your _config.yml and figure it is the age-old issue of needing to add the baseurl and url in there.
Try adding the following lines to your /_config.yml file:
baseurl: "/minimal" # the subpath of your site, e.g. /blog
url: "https://jekyll-pages.github.io/" # the base hostname & protocol for your site, e.g. http://example.com
Of course, if you are hosting the site on some other URL, modify those as needed.
Let’s say you want to link to a file on your website called /docs/doc1.html.
Thanks, that worked. I’m still not entirely happy that what I see on Github is not what ends up being published, but this solved my immediate problem. (And for what it’s worth, the syntax with brokets renders as expected on Github too, so with this fix, I do see exactly what the end result will look like, though of course this fix is not really discoverable.)