ppoffice / hexo-theme-icarus

A simple, delicate, and modern theme for the static site generator Hexo.
https://ppoffice.github.io/hexo-theme-icarus/
MIT License
6.4k stars 1.55k forks source link

Not able to generate and deploy to github pages #813

Closed Logan1x closed 3 years ago

Logan1x commented 3 years ago

Describe the bug I am running hexo theme Icarus and it's running locally fine(giving warning, described below) but when I am pushing to GitHub repo, nothing is loading, When I changed the theme only HTML was loading.

Repo link : https://github.com/Logan1x/blag/

On the local run icarus giving warning as,

$ hexo server     
INFO  Validating config
Inferno is in development mode.
INFO  =======================================
 ██╗ ██████╗ █████╗ ██████╗ ██╗   ██╗███████╗
 ██║██╔════╝██╔══██╗██╔══██╗██║   ██║██╔════╝
 ██║██║     ███████║██████╔╝██║   ██║███████╗
 ██║██║     ██╔══██║██╔══██╗██║   ██║╚════██║
 ██║╚██████╗██║  ██║██║  ██║╚██████╔╝███████║
 ╚═╝ ╚═════╝╚═╝  ╚═╝╚═╝  ╚═╝ ╚═════╝ ╚══════╝
=============================================
INFO  === Checking package dependencies ===
INFO  === Checking theme configurations ===
WARN  Theme configurations failed one or more checks.
WARN  Icarus may still run, but you will encounter unexcepted results.
WARN  Here is some information for you to correct the configuration file.
WARN  [
  {
    keyword: 'type',
    dataPath: '.article.licenses',
    schemaPath: '/misc/poly_links.json/type',
    params: { type: 'object,null' },
    message: 'should be object,null'
  }
]

System and Environment The version and configuration of Hexo and Icarus.

Expected behavior A normal icaruas theme with three sample posts.

ppoffice commented 3 years ago

@Logan1x root in _config.yml should be root: /blag/ instead of root: /. See https://hexo.io/docs/configuration#URL

Logan1x commented 3 years ago

@ppoffice, thank you for pointing that out. Is there something else is wrong in Icarus config? Because the Icarus warning is not gone yet, and I am getting the same problem with hosting with GitHub pages.

On the other hand the website is running fine with landscape theme.

ppoffice commented 3 years ago

@ppoffice Commnet out licenses: false

Logan1x commented 3 years ago

Thanks it worked.