tea3 / hexo-generator-amp

AMP ⚡ HTML (Accelerated Mobile Pages) generator for Hexo.
MIT License
127 stars 28 forks source link

amp-template location #37

Closed chocoluffy closed 6 years ago

chocoluffy commented 6 years ago

whenever I do a "hexo generate", it copy the fresh template copy and replace my original folder, i wonder how can I refer back to my custom logo and avatar? I wonder if I place my custom amp-template folder to the wrong place(currently I place it at project entry, parallel to "themes", "source", and "public" folder). as below:

├── amp-template ├── images ├── index.html ├── js ├── node_modules ├── package.json ├── page ├── public ├── robots.txt ├── scaffolds ├── search.xml ├── sitemap.xml ├── source ├── tags ├── themes └── vendors

The log I receive from CI environment is:

$ hexo clean
[17:42:33.690] [hexo-generator-amp] hexo-generator-amp's template has been copied to the your project.
Please check the following file.
-> /home/travis/build/chocoluffy/chocoluffy.github.io/amp-template/sample
INFO  Deleted database.
INFO  Deleted public folder.

And my node\nvm environment is:

$ node --version v7.10.1 $ npm --version 4.2.0 $ nvm --version 0.33.8

on Linux.

Everything about AMP works properly, I just wonder how can I apply my custom assets instead of using the default one. Thanks in advance!


[UPDATE]: problem fixed. I check the source code, found that it actually requires several png files to be at the right folder to avoid error condition. (before I just placed my logo png inside).