Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Website differs in layout depending on "www" #77

Closed
larnsce opened this issue Mar 23, 2017 · 2 comments
Closed

Website differs in layout depending on "www" #77

larnsce opened this issue Mar 23, 2017 · 2 comments

Comments

@larnsce
Copy link

larnsce commented Mar 23, 2017

Depending on entering http://lse.de/r-tistic/ or http://www.lse.de/r-tistic/ the layout differs. The first is the layout that I expect and the second seems to not use some of CSS styles. I am using baseurl = http://lse.de/r-tistic/ in the config.toml

@yihui
Copy link
Member

yihui commented Mar 24, 2017

This issue is not specific to blogdown, so StackOverflow will be a better place to ask. I don't have the time to explain the technical detail, but when in doubt, look at the console:

image

You'd better make a hard decision whether you want www or not, and stick with the decision. Then 301 redirect the other URL to the one you choose (from www to apex or apex to www). As I have already warned you in #52, setting baseurl and relativeurls = false is not a good idea in my eyes. You could have avoided this issue if you took my advice.

@larnsce
Copy link
Author

larnsce commented Mar 24, 2017

Thanks a lot, Yihui, and my apologies for not listening to you in the first place. Now that I have added layouts/partials/disqus.html it works perfectly.

@larnsce larnsce closed this as completed Mar 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants