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

BaseUrl does not allow subdirectory #15

Closed
hbokh opened this issue May 23, 2015 · 3 comments
Closed

BaseUrl does not allow subdirectory #15

hbokh opened this issue May 23, 2015 · 3 comments

Comments

@hbokh
Copy link

hbokh commented May 23, 2015

When using baseurl = "http://example.com/blog" or baseurl = "http://example.com/blog/", the links in the HTML are like this: http://example.com/blogcss/screen.css.
Please allow subdirectories. Merci!

@ghreyt
Copy link

ghreyt commented May 26, 2015

I have experienced the same issue and figured out what the problem is.

It is the bug of Hugo v0.13 (gohugoio/hugo#1105).
.Site.BaseUrl variable in template has trailing slash inconsistently.
They fixed that in v0.14 in two ways:

  1. providing the function 'absUrl' for template
  2. no trailing slash for .Site.BaseUrl

So simply you can go over this issue with Hugo v0.14 or you can modify a bit of codes like this.
(https://github.com/ghreyt/hugo-theme-casper/commit/e94513c41ee6069682ac44447fb06290043e73e8)

@hbokh
Copy link
Author

hbokh commented May 26, 2015

Merci beaucoup! It works as expected with the new hugo 0.14.
I guess you will adapt the theme soon for the new variable and function names, right?

ERROR: 2015/05/26 Node's .Url is deprecated and will be removed in Hugo 0.15. Use .URL instead.
ERROR: 2015/05/26 Site's .BaseUrl is deprecated and will be removed in Hugo 0.15. Use .BaseURL instead.
ERROR: 2015/05/26 MenuEntry's .Url is deprecated and will be removed in Hugo 0.15. Use .URL instead.
ERROR: 2015/05/26 Template's safeHtml is deprecated and will be removed in Hugo 0.15. Use safeHTML instead.

@hbokh hbokh closed this as completed May 26, 2015
@vjeantet
Copy link
Owner

fixed with #18

thanks for the update

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

3 participants