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

后端 未结 7 842
故里飘歌
故里飘歌 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 17:47

    The 3rd party github hosted file tag didn't work for me at all. -

    failed in chrome with Refused to execute script from 'https://raw.github.com/moski/gist-Blogger/master/public/gis‌​tLoader.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.

    The embed links on github's site work, but for those wanting to avoid the reliance on a script link, I wrote code to pull down what the embed link serves up and decode it for pasting into blogger. LinqPad code at https://github.com/ImaginaryDevelopment/LinqPad/blob/master/LINQPad%20Queries/LanguageTranslators/fetch%20then%20parse%20gist%20html.linq

提交回复
热议问题