How to add Gist into Blogger
Asked Answered
M

3

7

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 .

Marymarya answered 7/12, 2013 at 14:39 Comment(2)
what is the output u get?what do u mean by same javascript?Arbitration
@Michel when i publish the blog or click on preview it shows <script src="gist.github.com/anonymous/7842985.js"></script>Marymarya
A
12

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)

Arbitration answered 10/12, 2013 at 6:2 Comment(2)
In Dynamic view templates , this doesn't work, switched to other theme and workedSanfo
If we switch to HTML mode and paste the embed URL, it is not rendered when we switch to WYSIWYG mode. Any tricks to see the preview in the editor?Allomerism
B
5

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

Binghi answered 23/7, 2014 at 17:41 Comment(0)
R
3

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

Romanticism answered 8/7, 2015 at 10:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.