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

该主题的 canary 分支在部署至子目录下时无法加载 css 等资源文件 #420

Closed
4 of 6 tasks
ghost opened this issue Jun 27, 2017 · 3 comments
Closed
4 of 6 tasks

Comments

@ghost
Copy link

ghost commented Jun 27, 2017

I certify that I have first consulted (check all with "x")

我确认我已经查看了 (使用 "x" 选择)


I'm submitting a (check one with "x")

我正在申请 (使用 "x" 选择)

  • bug report | 反馈一个 bug
  • feature request | 申请添加新的特性或功能
  • support request | 请求技术支持

使用的 hexo 版本为 1.0.3
这是站点配置文件与路径有关的部分
image
Console log.
image
望迅速修复,谢谢。

@neoFelhz
Copy link
Collaborator

Already fixed in canary branch.
We will release a new version soon.

@ghost
Copy link
Author

ghost commented Jun 30, 2017

貌似路径问题并没有得到修复。
我通过查看 head.ejs 发现使用了 config.root 来补全路径,可能您说的修复是指补全了路径,但这里没有必要手动添加, hexo 自身会完成这一工作。

image

我会提交一个 PR 来解决这个问题,望您能合并到 canary 分支,谢谢。

@ghost
Copy link
Author

ghost commented Jul 1, 2017

Closed by #423

@ghost ghost closed this as completed Jul 1, 2017
EYHN pushed a commit to EYHN/hexo-theme-material that referenced this issue Jul 24, 2017
 - Use "url_for(path)" instead of "config.root + path" (ref: https://hexo.io/docs/helpers.html ).
 - Fix 404 error when site is in a subdirectory.
Closes iblh#420
zsjsll added a commit to zsjsll/hexo-theme-material that referenced this issue Apr 13, 2021
* feat(ls): New localstorage cleanup mechanism

* feat(comment): add livere comment system support.

* feat(qrcode): add google qrcode api support

* feat(cdn): update the config

* feat(cdn): update the file load

* feat(materialcdn): revert materialcdn configuration back

* feat(footer): footer text customize support

* feat(footer)
- fix a bug of using html tag
- add support for multi-line text

* fix/feat(coment)

- remove the livere_type config
- add dns-prefetch support for 163gentie & livere
- add sourceId support for 163gentie

* feat(footer_sns): use raw instead of base64

* fix(footer_sns): fix some issue of value setting

* feat(footer): add custom footer

* fix(sdd): remove the 'index.html' in value url.

* feat(head): minor changes

for better performance.

* feat(head): minor changes of dns-prefetch

- split the dns-prefetch
- add `chart.google.com`
- add `custom_font_host`

* feat(code highlight): google code prettify support (iblh#395)

* feat(prettify): minor changes

- Remove the custom_css
- Add public cdn support
- Only load prettify at post pages

* feat:(prettify): upload theme css

* feat(prettify): remove the comment of the theme css

* feat(prettify): minor changes

- load prettify.js only at post
- import prettify_css
- remove custom_css

* feat(prettify): import prettify css

* fix(footer): fix js.min.js import

* feat(head): link alternate for rss

* fix(prettify): minor fix

- fix prettify being affected by other styles
- fix background in prettify theme
- fix prettify theme import

* feat(structured-data)

- type
- author's avatar
- mainEntityOfPage

* feat(rss): improve link alternate rss type

* fix(rss): fix config.feed.type

* feat(fonts): import material icons as vendors

* fix(fonts): avoid font loading issue with ls

* feat(license): add every-post license config

* fix(fonts): fix material icons import

* fix(scrollbar): fix x-scroll when toTop show

fix(scrollbar): fix iblh#404

* fix(fonts): fix font-awsome import

* fix(background): set bing background before lazyload initialization

* feat(post): update license interface

* fix(scrollbar): fix x-scroll missing issue

* style(css): optimize (iblh#409)

* style(css): remove useless color
* style(css): remove browsehappy

* style(css): optimize (iblh#412)

- style(css): remove useless code
- style(css): compress the code

* fix(comment): 163gentie config value (iblh#417)

修复配置参数 gentie_thread_key_type 引用错误 (iblh#417)

* feat(head): minor changes

- change lsloader & queue import
- changes dns-prefetch import
- fix `X-UA-Compatible`
- add `format-detection`

* fix(comment): try `ls-javascript` to avoid issues

* fix/refactor(path): fix subdir error & refactor url concatenation

 - Use "url_for(path)" instead of "config.root + path" (ref: https://hexo.io/docs/helpers.html ).
 - Fix 404 error when site is in a subdirectory.
Closes iblh#420

* fix(permission): fix permission error

 - remove unnecessary execution permissions.

* remove(comment): remove 163 gentie

* fix(MathJax): fix case so mathjax can find its own script tag
ref: https://github.com/mathjax/MathJax/blob/master/unpacked/MathJax.js#L3127
Closes iblh#425

* refactor: move dnsprefetch to widget

* feat: add v2ex footer icon source (iblh#432)

* feat: compress the code of v2ex icon

https://jakearchibald.github.io/svgomg/

* feat(config): use jsDelivr as an example

* chore/feat(ci): bring up travis

* feat(notag nocategory): auto detect if the post has tags/categories

* feat(toc): auto detect if the post has toc
or it will hide toc button

* fix(burger): no longer gets error when you cant see this dude

* fix: move toc detector script to footer

* fix(iblh#373): support multiple analytics system

* fix: cnzz site id value update

* feat/chore(travis): make build more faster
- remove gulp installation
- set the depth of repo clone

* revert: feat/chore(travis): set the depth
This reverts commit 5976472

* fix(lsload): error resources type.

* fix: css resources error

* fix(lsload): resources error

* feat(footer): add v2ex icon to layout

* fix: new fallback rule for vendor config
vendors -> materialcdn -> origin

* fix: material icons import
compatible with Google Fonts or CDN

* fix: try to solve 'unexpected token' during the test

* chore(travis): use Trusty as enviroment of travis

* fix: fix 'unexpected token' in the test

* fix: solve 'unexpected token' in the test

* fix: telegram icon & v2ex icon

* fix: v2ex & telegram icon

* fix(footer): fix v2ex footer issue

* refactor(footer):reduce accuracy on v2ex footer image

* fix(footer): upload raw v2ex footer file

* feat(toc): auto hide toc when generate instead of realtime js

* feat(comment): add gitment

* style(scrollbar):  become the same as sidebar

* style(scrollbar): Hidden when the mouse leaves

* fix: version string error

* refactor(footer_icon): add icon to style.css

* refactor: remove config_footer in head

* feat(comment): disqus accessible check

* fix: path 'null' error when use materialcdn

* revert: style(scrollbar): become the same as sidebar and auto-hidding

This reverts commit 19d5355 .

* ci(browserstack): using browserstack to generate preview (iblh#477)

* ci(browserstack): bring up browserstack

* ci(browserstack): fix test.js

* ci(browserstack): remove show test.js log

* ci(browserstack): add project info

* ci(config): add more config

* ci(browserstack): only test on desktop platfrom

* ci(browserstack): set timeout

* ci(browserstack): follow test.js edit

* ci(browserstack): optimize

* ci(browserstack): remove OSX_Opera

* ci(browserstack): remove real device

* ci(docsify): add docsify

* ci(docsify): fix docsify

* ci(docsify): fix docsify

* ci(docsify): use mkdir -p

* ci(docsify): fix deploy

* Add Valine comment system

* fix(comment): subdir path fix

* fix(comment): change valine.min.js link

* fix(comment):switch Valine.min.js js file to jsdelivr cdn

* ci(travis): add notification

* feat: add dns-prefetch for valine

* fix(gitment): fixed a error

* fix(css): fix css optimize fault

* feat(font): add new font.host catnet

* feat(hanabi): add code pretty hanabi

* refactor(config): update about highlight

* fix(iblh#495)

* feat(hanabi): allow custom colors

* feat: add materialcdn support for hanabi

* style(font): add font-family for <code> tag

* style(version): update version code to 1.5.0

* fix(burger): fix console error

* chore(readme): update version color

* chore(style): update config.template

* chore(README): update render image

* chore(README): minor style changes

* Add option 'hide_license'.

* Add option 'hide_share'.

* Add option 'hide_post_info'.

* fix(comment): disqus_click button issue

* feat: update dns-prefetch

* fix(dnsprefetch):remove 'else'.

* feat(comment): add gitalk

* feat(gitalk): add gitalk config

* Feat(comment):update valine comment version

* change cdn

* feat(comment): update valine comment version (iblh#558)

* feat(comment):update valine comment version
* change cdn

* fix(livere): add id for ls-javascript tag iblh#546

* fix(iblh#553)

* merge(iblh#563): add Dutch translation 🌐

This commit adds a Dutch translation

* feat(i18n): Russian import (iblh#565)

* feat(icons): embedded the material_icons
Try to fix iblh#459

* docs(readme): some changes

* style(config): fix gittalk configurations format (iblh#569)

* style: compress the search code

* fix(font): fix material icons base64

* refactor: remove combo support from lsloader

* refactor(head): meta info

* refactor: update version code

* Feat(comment):update valine comment version and add some attribute

* Feat(comment):update valine comment version and add some attribute

* fix(gallery): remove css async load

* feat(footer_sns): add segmentfault (iblh#590)

* fix(gitment): fix an error

Uncomment "id",because gitment says "Error: Validation Failed"

* feat/fix(copyright): avoid using document.write

* feat(comment): add wildfire

Signed-off-by: Love4Taylor <love4taylor.me@gmail.com>

* fix(wildfire): try to fix padding issue

Signed-off-by: Love4Taylor <love4taylor.me@gmail.com>

* feat(gallery): add gallery settings

* feat(gallery): unlock information panel

* fixed(valine): fixed guest_info not working

* feat: improve accessiable reading (iblh#628)

* fix(typo): fix two typos in config (iblh#615)

change words "form" to "from"

* fix Uncaught TypeError: Cannot read property 'contains' of undefined

* fix: solution Of 'Cannot read property' iblh#654

* feat (lang) : add language - korean

* fix(valine): attribute configurations do not take effect

* refactor: dump version

* fix: clean material localstorage

* fix: change cat.net to loli.net

* refactor: dump version 1.5.6

* chore: update README

Co-authored-by: eyhn <cneyhn@gmail.com>
Co-authored-by: neoFelhz <1044010989@qq.com>
Co-authored-by: neoFelhz <neofelhz@gmail.com>
Co-authored-by: neoFelhz <neofelhz@github.com>
Co-authored-by: zhuxiongxian <zhuxiongxian@gmail.com>
Co-authored-by: cubesky <wqr3011@gmail.com>
Co-authored-by: cubesky <cubesky@users.noreply.github.com>
Co-authored-by: koyabr <koyabr@gmail.com>
Co-authored-by: TakWolf <TakWolf@users.noreply.github.com>
Co-authored-by: bloodtox3710 <bloodtox3710@users.noreply.github.com>
Co-authored-by: Kanglai Qian <qiankanglai@gmail.com>
Co-authored-by: Henry Heng <hrygheng@gmail.com>
Co-authored-by: Halyul <xuhaoyuforever@gmail.com>
Co-authored-by: ElderJames <shunjiey@hotmail.com>
Co-authored-by: Dotos <yy.liu@foxmail.com>
Co-authored-by: Viosey <imviosey@gmail.com>
Co-authored-by: ysc3839 <yurichard3839@gmail.com>
Co-authored-by: xCss <mail@xone.me>
Co-authored-by: Wouter Janson <WouterJanson@users.noreply.github.com>
Co-authored-by: Ilya Piatrenka <petrenko.ilia@gmail.com>
Co-authored-by: Bobby Rong <rjl931189261@126.com>
Co-authored-by: 汤利俊 <869058216@qq.com>
Co-authored-by: Copyright³ <26130106+unstartdev@users.noreply.github.com>
Co-authored-by: Love4Taylor <love4taylor.me@gmail.com>
Co-authored-by: WSKaCrs <wska@mainstars.net>
Co-authored-by: TLingC <xghc@foxmail.com>
Co-authored-by: neo Felhz <neofelhz+github@gmail.com>
Co-authored-by: Rocky <rjoacnkey@gmail.com>
Co-authored-by: Windman <617674934@qq.com>
Co-authored-by: wangn <3579677768@qq.com>
Co-authored-by: itning <itning@itning.top>
Co-authored-by: extracold1209 <extracold1209@gmail.com>
Co-authored-by: lihang <lihang.lyon@gmail.com>
Co-authored-by: CubeSky <max_301@live.com>
Co-authored-by: Bo <ibh@live.com>
@zsjsll zsjsll mentioned this issue Apr 13, 2021
9 tasks
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant