简体   繁体   中英

How to host my github-flavored-markdown gist as a webpage

I have created a "todo" Gist using GitHub Flavored Markdown on GitHub. Is there any way to host it on my online DigitalOcean server?

Gists can be embedded with JavaScript :

You can embed a gist in any text field that supports Javascript, such as a blog post. To get the embed code, click the clipboard icon next to the Embed URL of a gist.

Paste the <script> tag copied from the Gist into a web page hosted on your server, eg

<!DOCTYPE html>

<html>
  <head>
    <title>To do list</title>
  </head>

  <body>
    <h1>To do list</h1>
    <script src="https://gist.github.com/user/gist_id.js"></script>
  </body>
</html>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM