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

Icon tags not found #10

Closed
dest4 opened this issue Sep 19, 2016 · 4 comments
Closed

Icon tags not found #10

dest4 opened this issue Sep 19, 2016 · 4 comments
Labels

Comments

@dest4
Copy link

dest4 commented Sep 19, 2016

Hi,
the computed css rule
background: url("../../images/icon-tags.svg") center center no-repeat;
leads to a 404 error. It should be changed to
background: url("../images/icon-tags.svg") center center no-repeat;

Observed with both hexo server and hexo static generated files. I use a blog subfolder, with the following configuration:

menu:
Home: /blog/
Archives: /blog/archives
...

@CodeDaraW
Copy link
Owner

I haven't tested with your configuration file.
It seems that you want to put your site in a subdirectory, but you configured the theme's _config.yml.
You'd better configure the global _config.yml:

# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: http://www.demo.com/blog
root: /blog/

@dest4
Copy link
Author

dest4 commented Sep 22, 2016

Hi CodeDaraW,
The global __config.yml is already configured the way you suggest.
The theme __config.yml has also to be configured for blog subfolder (as in OP) otherwise the top "Home" and "Archives" links do not work properly.

In the end, I am a bit lost and the best I could do is to put the "blog" subfolder in both configuration files. Then the only minor broken thing is that icon-tags.svg link (as explained in OP).

I fixed that by altering source/css/components/icons.styl

Are there better practises maybe?

I found a solution by myself so you can close this issue if you don't have the time now, but in the future if other users report a similar problem you will know they are not alone.
Thanks for the theme by the way!

@CodeDaraW
Copy link
Owner

I'm sorry that it's quite busy at the moment, but I will give you a more elegent solution or the cause before closing the issue.

Please wait.

XD

@CodeDaraW CodeDaraW added the bug label Sep 23, 2016
@CodeDaraW
Copy link
Owner

bug fixed. (update v1.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants