我是雨果的初学者。我生成了一个静态站点,添加了一个主题,添加了一些内容。它在我的地方起作用。所有的链接行为,他们应该是这样的。然后,我做“雨果”,以产生可部署的文件,在公共指导。现在,我将这个公用文件夹放在我的服务器中。主页加载正常,但内容正重定向到网络域站点。
(复制站点url并在您的浏览器中签入) => https://smehetre.xyz/ Config文件如下:
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/
救命啊!
发布于 2022-05-01 15:15:56
这看起来像是DNS问题,而不是Hugo问题。
根据WhatsMyDNS工具,您的名称服务器在任何地方都没有设置(链接)。
根据ICANN的说法,你从未真正注册过你的域名。高爸爸也是这样。
你需要真正购买一个域名,然后才能使用它。
如果您已经购买了您的域名,请与您的登记员联系,找出问题。
如果你还没有买下它,一定要这样做。
https://stackoverflow.com/questions/72075244
复制相似问题