このブログは、旧・はてなダイアリー「檜山正幸のキマイラ飼育記 メモ編」(http://d.hatena.ne.jp/m-hiyama-memo/)のデータを移行・保存したものであり、今後(2019年1月以降)更新の予定はありません。

今後の更新は、新しいブログ http://m-hiyama-memo.hatenablog.com/ で行います。

gistよりgist-it

gistの使い方で色々と悩んでいたが、gist-it (https://gist-it.appspot.com/)でほぼ解決。gist-itは次の形のスクリプトでソース埋め込みが出来る。

驚いたことにホントにこれで出来る! まー、驚くことじゃないが、驚いた。

<html>
  <head>
    <title>gist-it</title>
  </head>
  <body>
    <h1>gist-it</h1>

    <script src="http://gist-it.appspot.com/https://github.com/m-hiyama/hugo-sample/blob/master/content/about.md"></script>
  
  </body>
</html>

パフォーマンスもそれほど悪くない。ただし、いつなくなるか分からないのが不安。GitHubがサービスしてくれればいいのに。

[追記]

https://github.com/githubと者略して、'<script src="http://gist-it.appspot.com/github/ ' + ファイルパス名 でもOK。

[/追記]