Adding Script tag in Blogger Dynamic View
Asked Answered
O

1

3

I have a blog with "Dynamic View" as the template (The one with Sidebar/Mosaic and other options). I was trying to use GIST/Github as my default syntax highlighter as it works like a charm.

However the "script" tags included in the Blog POST do not get rendered. Is there anyone who has managed to add Script tags to their Dynamic View Template?

(Obviously there are other ways of embedding syntax highlighting but I feel Gist is the most elegant of them all)

Oxymoron answered 29/8, 2012 at 13:47 Comment(0)
O
4

This link works perfectly fine for me

http://blog.moski.me/2012/01/gist-with-bloggers-dynamic-views.html

At the end of each of your blog posts, include the following code using the HTML editor:

<script src="https://raw.github.com/moski/gist-Blogger/master/public/gistLoader.js" type="text/javascript"></script>

Now to include any gist template just add the following anywhere in your blog post.

<div class="gistLoad" data-id="GistID" id="gist-GistID">Loading ....</div>

Replace "GistID" with your gist id.

Oxymoron answered 1/10, 2012 at 9:49 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.