sustain icon indicating copy to clipboard operation
sustain copied to clipboard

Blog post error when base-url in /

Open akhilerm opened this issue 6 years ago • 8 comments

When the base-url is given as / the links of the generated posts will be wrong. //post1.html instead of /post1.html. Can be fixed by removeing {{ site.baseurl }} from blog.html

akhilerm avatar Jul 07 '18 10:07 akhilerm

I think this is due to sustain was programmed for an older version of jekyll? Well, in any case, for me it worked to set baseurl: "".

Akronix avatar Oct 16 '18 09:10 Akronix

@Akronix If baseurl: "" is set as empty, will the home button link work?

akhilerm avatar Nov 03 '18 05:11 akhilerm

Definitely it should. It does for me: https://akronix.github.io/ but I have set the home button to show the blog page: https://github.com/Akronix/akronix.github.io/commit/d35226102bad1a190414972bc20d8c8341618b67#diff-822e9cf54ee310f9a7ebd0d16c9ae066 Doesn't it work for you?

Akronix avatar Nov 05 '18 09:11 Akronix

Nope, it its not working for me when baseurl is set to empty. I think this has something to do with different versions of jekyll

akhilerm avatar Nov 05 '18 15:11 akhilerm

Hmm Indeed I think I'm using jekyll 3.0 and I think sustain was made for an older version of jekyll. However, what I did is to set href="/" when I want the link to point to the home page, as you can see in my "About" element in the header.

Akronix avatar Nov 05 '18 18:11 Akronix

Yeah. I checked. Shall we change the code and update it to work with latest version? @Akronix

akhilerm avatar Nov 05 '18 18:11 akhilerm

That sounds cool, however I suffer from a very severe lack of time. what does the maintainer think about this @biomadeira?

Akronix avatar Nov 06 '18 09:11 Akronix

@Akronix and @akhilerm I will have look later tonight ;)

biomadeira avatar Nov 06 '18 09:11 biomadeira