Code Monkey home page Code Monkey logo

Comments (4)

laozhu avatar laozhu commented on August 15, 2024

我自己 Markdown 里面试了下,我是这么写的:

```bash
wget https://github.com/laozhu/hugo-nuo/archive/master.zip
```

并没有出现链接,如下:

kapture 2018-01-04 at 18 53 44

from hugo-nuo.

deepjia avatar deepjia commented on August 15, 2024

刚才又尝试了几次,找到了重现的规律。

首先生成的 HTML 源码中没有被转换为链接,我在本地 hugo server 调试时,直接用 ip 或者 localhost 访问(如 http://localhost:1313/post/sth/ )的时候,也没有这个问题;

但是一但通过域名访问(包括解析到本地的域名,例如 http://127.0.0.1.xip.io:1313/post/sth/ ),网页加载完毕以后,就会自动转换成链接。

不知道是模版或者 Hugo 本身的问题,还是是 Hugo 的特性。

from hugo-nuo.

laozhu avatar laozhu commented on August 15, 2024

我还真没遇到这种情况,或者你可以把复现的步骤写详细些,我跟着步骤复现一下。

from hugo-nuo.

deepjia avatar deepjia commented on August 15, 2024

部署到服务器/静态空间以后,通过域名访问就会遇到了;
也可以在本地重现,步骤如上一条评论:
运行 hugo server 以后用域名打开本地文章页面(用上述提到的域名 127.0.0.1.xip.io 即可,该域名是解析到 127.0.0.1 的),等页面加载完毕后,页面中此类 URL 就会突然变成链接。
————————————
我刚才留意到,你的博客里没有出现这种问题,所以我想可能是 hugo 0.32.2 的问题。

from hugo-nuo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.