jxf2008
V2EX  ›  问与答

使用 github 写博客的问题

  •  
  •   jxf2008 · Jun 16, 2019 · 1960 views
    This topic created in 2551 days ago, the information mentioned may be changed or developed.
    我新建了一个 blog 仓库,里面放了各种.md 文件,作为自己的博客,有两个问题想请教下
    1 关于图片
    我在这个 blog 仓库里新建一个 pix 的目录,然后上传图片,假设某张图片的网址是
    https://github.com/ooxxer/blog/blob/master/pix/1-1.png
    然后 blog 仓库其他的目录的某个.md 文件需要引用这个图片,我就把这个网址改成
    https://github.com/ooxxer/blog/raw/master/pix/1-1.png
    然后在.md 文件里使用 ![图片](上面的网址)

    **请问这种方法算不算滥用 github**

    2 关于外链
    在 blog 仓库里的某个.md 文件,需要外链一个网站,使用
    ![谷歌](谷歌的网址)

    这种方法无法形成外链,右键网址显示外链网址被加上了一个 github 很长的前缀,我想问下,github 有没有办法外链
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3562 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 04:55 · PVG 12:55 · LAX 21:55 · JFK 00:55
    ♥ Do have faith in what you're doing.