雨果:内容链接在部署的网站中无法正常工作
我是雨果的初学者。我生成了一个静态站点,添加了一个主题,添加了一些内容。它在我的本地工作。所有的链接都按应有的方式行事。然后,我做“雨果”以在公共指令中生成可部署的文件。现在,我将此公共文件夹放在服务器中。主页适当加载,但内容正在重定向到净域站点。
(复制网站URL并在您的浏览器中检查)=> https://smehetre.xyz/ 下面的配置文件:
baseURL: https://smehtre.xyz/
languageCode: en-us
title: hello friend
theme: "PaperMod"
menu:
main:
- identifier: Search
name: Search
url: /search/
weight: 10
- identifier: Archives
name: Archives
url: /archives/
weight: 20
- identifier: Resume
name: Resume
url: /resume/
weight: 30
- identifier: About
name: About
url: /about/
weight: 40
在我的Nginx服务器上部署的公共文件夹:
├── 404.html
├── about
│ └── index.html
├── archives
│ └── index.html
├── assets
│ ├── css
│ │ └── stylesheet.min.8e489ec970cd58539487a8f697c827fd0de4aa9f638217b7db51cbc230ff6f95.css
│ └── js
│ ├── highlight.min.2840b7fccd34145847db71a290569594bdbdb00047097f75d6495d162f5d7dff.js
│ └── search.min.994d971a9492abf73721874ff533ba36f8b86300a65b0f03c96111ab1f6f32b2.js
├── categories
│ ├── index.html
│ └── index.xml
├── index.html
├── index.json
├── index.xml
├── page
│ └── 1
│ └── index.html
├── posts
│ ├── index.html
│ ├── index.xml
│ ├── my-first-post
│ │ └── index.html
│ └── page
│ └── 1
│ └── index.html
├── search
│ └── index.html
├── sitemap.xml
└── tags
├── index.html
└── index.xml
尝试单击我的第一篇文章,搜索或档案或大约页面。 它重定向到 https://net.domain.name/
请帮助!
I am a beginner in Hugo. I generated a static site, added a theme, added some content. It works in my local. All the links behave as they are supposed to. Then I do "Hugo" to generate deployable files in public directoery. Now I placed this public folder in my server. The home page loads properly, but contents are redirecting to net domain site.
(copy site url and check in you your browser) => https://smehetre.xyz/
Config file below:
baseURL: https://smehtre.xyz/
languageCode: en-us
title: hello friend
theme: "PaperMod"
menu:
main:
- identifier: Search
name: Search
url: /search/
weight: 10
- identifier: Archives
name: Archives
url: /archives/
weight: 20
- identifier: Resume
name: Resume
url: /resume/
weight: 30
- identifier: About
name: About
url: /about/
weight: 40
Public folder deployed on my nginx server:
├── 404.html
├── about
│ └── index.html
├── archives
│ └── index.html
├── assets
│ ├── css
│ │ └── stylesheet.min.8e489ec970cd58539487a8f697c827fd0de4aa9f638217b7db51cbc230ff6f95.css
│ └── js
│ ├── highlight.min.2840b7fccd34145847db71a290569594bdbdb00047097f75d6495d162f5d7dff.js
│ └── search.min.994d971a9492abf73721874ff533ba36f8b86300a65b0f03c96111ab1f6f32b2.js
├── categories
│ ├── index.html
│ └── index.xml
├── index.html
├── index.json
├── index.xml
├── page
│ └── 1
│ └── index.html
├── posts
│ ├── index.html
│ ├── index.xml
│ ├── my-first-post
│ │ └── index.html
│ └── page
│ └── 1
│ └── index.html
├── search
│ └── index.html
├── sitemap.xml
└── tags
├── index.html
└── index.xml
Try to click on my first post, or Search or Archives or About page.
It redirects to https://net.domain.name/
Please HELP!!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这看起来像是DNS问题,而不是
Hugo
问题。根据 whats mydns工具您的姓名服务器根本无法设置在任何地方( link )。
根据ICANN的说法,您实际上从未注册过自己的域。 godaddy显示同样的。
您需要实际购买一个域,然后才能使用它。
如果您购买了域名,请与您的注册商联系以找出问题。
如果您尚未购买,请确保您这样做。
This looks like a DNS issue, not a
Hugo
issue.According to the WhatsMyDNS Tool your Name Server isn't set at all anywhere (link).
According to ICANN, you've never actually registered your domain. Godaddy shows the same.
You need to actually purchase a domain before you can use it.
If you have purchased your domain, contact your registrar to figure out the issue.
If you haven't purchased it yet, make sure you do that.