質問

It's my first time to add a python script into by blog, after some Googling i found that i easiest way is to use Gist, i posted my python script into Gist, i choose a python language and create public Gist, the result "Embed this gist" was a javascript

<script src="https://gist.github.com/anonymous/7842985.js"></script>

now when i paste this code into my blog and click on preview or publish, nothing appear but the same java script ! any idea please .

役に立ちましたか?

解決

1.Sign in to blogger and create/edit a post

2.Click on "HTML" and not "compose" and then paste your script.The save without again clicking on compose.


(source: ctrlv.in)

他のヒント

Just change to “Interpret typed HTML” under Post Options -> Compose Settings in blogger

You need to switch to HTML mode instead of WYSIWYG editor. Then add the JavaScript code in place you need.

However if you switch back to Compose mode the snippet won't appear! You have to click Preview to see it.

Also try solution mentioned here Issues adding github gist to my blog

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top