jekyll/jekyll-seo-tag

url, og:url, canonical_url are not work

heli-os opened this issue · 1 comments

@page ||= @context.registers[:page].to_liquid

page["canonical_url"]

The plugin is accessing page["canonical_url"] through the above two codes.

But my plugin only gets 'http://0.0.0.0:4000'.

The url property specified in _config.yml doesn't seem to work.

Why does this happen?

P.S - I use jekyll serve

mwt commented

Hi,

When you use jekyll build it should have the correct URL. Option serve uses localhost as the url in order to prevent complete links from breaking.

Best,

Matthew