hbz / lobid-blog

The source for the lobid blog at https://blog.lobid.org
http://blog.lobid.org/
3 stars 2 forks source link

Add canonical links to blog.skohub.io #79

Closed acka47 closed 2 years ago

acka47 commented 2 years ago

Resolves #78

acka47 commented 2 years ago

Oups, doesn't work locally as expected.

acka47 commented 2 years ago

Now it should work. Please review, @fsteeg .

fsteeg commented 2 years ago

Hm, I'm still getting lobid URLs as canonical links, e.g. <link rel="canonical" href="http://blog.lobid.org/2020/10/09/skohub-apconf.html" /> for http://127.0.0.1:4000/2020/10/09/skohub-apconf.html

fsteeg commented 2 years ago

Did bundle install, tried jekyll clean, then jekyll serve --drafts --watch.

acka47 commented 2 years ago

Hm, strange. It definitely works on my system with the 78-setCanonicalLinks branch. I also jsut tried is after a fresh git clone and it worked (although I had some other problems there with ruby). Maybe the browser caching? You can also run jekyll build and then look e.g. at lobid-blog/_site/2019/09/27/presenting-skohub-vocabs.html.

acka47 commented 2 years ago

However, the blog.skohub.io links give me SSL warnings, and non-https redirects to https.

We received the SSL certificate on Tuesday but apparently it hasn't been installed yet. Will merge nonetheless.