itorr.github.io icon indicating copy to clipboard operation
itorr.github.io copied to clipboard

My articles not show correctly,show the source code ,why?

Open luoyedaren opened this issue 7 years ago • 19 comments

{{#.}}
<article>
	<span class="num"></span>
	<span class="size">{{size}}</span>
	<h3><a href="#/{{url}}">{{title}}</a></h3>
</article>
{{/.}}

luoyedaren avatar Mar 21 '17 01:03 luoyedaren

hey guy, this is your repo, right? Please create a new repo named like 'luoyedaren.github.io' and push your file in master branch, then it will works.

solarhell avatar Mar 21 '17 02:03 solarhell

so glad to see your message ,this is my site created by your way :https://luoyedaren.github.io/chenghai.blog/. is it correct? and it's not show my articles .Could you help to see it?

luoyedaren avatar Mar 21 '17 02:03 luoyedaren

the

tags not works very well, I supposed.

luoyedaren avatar Mar 21 '17 02:03 luoyedaren

But i can't see you have a repo named 'luoyedaren.github.io'. This project is just an example that the username is 'itorr' and he has an repo named 'itorr.github.io'.

solarhell avatar Mar 21 '17 02:03 solarhell

it must be named 'luoyedaren.github.io' for repo, Mine repo's name is "chenghai.blog" ,Maybe the reason is this.Thank you .let me try it!

luoyedaren avatar Mar 21 '17 02:03 luoyedaren

https://luoyedaren.github.io/ ,fix the name ,but not work...

luoyedaren avatar Mar 21 '17 03:03 luoyedaren

Please replace the static assets to your source cause you are using https. You can check the error in Chrome's 'inspect'.

solarhell avatar Mar 21 '17 03:03 solarhell

image my aasets was in already

luoyedaren avatar Mar 21 '17 03:03 luoyedaren

Please check line 37 in index.html and line 109 in 'i/gitblog.js'.

solarhell avatar Mar 21 '17 03:03 solarhell

fastclick.m.js mustache.min.js not in your repo..

luoyedaren avatar Mar 21 '17 03:03 luoyedaren

I think download the js file and push to the repo is not so difficult to explain.

solarhell avatar Mar 21 '17 03:03 solarhell

yeah ,guys you are right .. I'm not goods at html ,js . Hope not too much js needed... Thank you very much

luoyedaren avatar Mar 21 '17 03:03 luoyedaren

You also need to change the index.html to

var
gitConfig={
	ssh:'[email protected]:luoyedaren/luoyedaren.github.io.git'
}

solarhell avatar Mar 21 '17 03:03 solarhell

fixed .thank for you advice . but not the end ...hh . itorr2.js:289 Mixed Content: The page at 'https://luoyedaren.github.io/' was loaded over HTTPS, but requested an insecure script 'http://1.mouto.org/x.js'. This request has been blocked; the content must be served over HTTPS. blocked! how to fix it

luoyedaren avatar Mar 21 '17 03:03 luoyedaren

我刚提了2个PR。 另外, 'x.js' 是坨坨肉的统计代码,直接去掉或者换成自己的就行了。 HTTPS下,所有资源默认都应该通过HTTPS加载。

solarhell avatar Mar 21 '17 03:03 solarhell

well done! Thank you . I'am java coder . Nice to know you.

luoyedaren avatar Mar 21 '17 03:03 luoyedaren

我是写php的

solarhell avatar Mar 21 '17 04:03 solarhell

image fall in a hole....

luoyedaren avatar Mar 21 '17 04:03 luoyedaren

http://front.dog/smartisan/i/md.js 这个需要加载一下这个静态文件 你可以放到自己的repo里用https来加载 可以加入这个QQ群 311084414

solarhell avatar Mar 21 '17 04:03 solarhell