tea3 / hexo-generator-amp

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

My page set force https by javascript, then amp what can i do this? #18

Closed 1a57danc3 closed 7 years ago

1a57danc3 commented 7 years ago

Because use static pages, not set httpserver (such as nginx/apache etc.) .

var url = window.location.href;
if (url.indexOf("https") < 0) {
    url = url.replace("http:", "https:");
    window.location.replace(url);
}
tea3 commented 7 years ago

@ky0ncheng I think that you do not need to do anything about hexo-generator-amp . Can not open AMP HTML page with HTTPS ?

1a57danc3 commented 7 years ago

@tea3 thx,I can edit sample-amp.ejs