Issues adding github gist to my blog(using Google blogger)

后端 未结 7 848
故里飘歌
故里飘歌 2021-02-09 17:26

I\'m trying to add a gist to my blog to see how it works and use it to share some code related blogs going forward.

I\'ve followed the steps mentioned form this blog, bu

7条回答
  •  借酒劲吻你
    2021-02-09 18:10

    Here's the code that did it correctly for me. I had to ensure that within the div I copy the code that comes as part of 'Embed the gist' when you actually see one's real gist(say for e.g., this gist) on Github.

    Also, one more mistake I made was in my code, the JS was not completely outside the post(it was actually inside the last div if you observer closely(my bad)). Anyways, All's well that end's well :). So here's the code that did the trick for me -

    Hi

    test


    In case you want to see how I was able to embed the gist in my blog, you can have a look at the stackoverflow question that I posted here on the same when I had initially faced issues to get this to work for me. Credits to the original blogger's post.




    
    

    Here's the actual blog link which uses the above code.

    Cheers.. :)

提交回复
热议问题