cdlug / cdlug.github.io

Website of Chengdu GNU/Linux User Group
https://cdlug.org
Creative Commons Attribution Share Alike 4.0 International
6 stars 3 forks source link

尝试 Hugo #20

Closed QuantumGhost closed 4 years ago

QuantumGhost commented 4 years ago

部署前检查

需要检查的东西:

要做的东西

待定的东西:

haobug commented 4 years ago

@QuantumGhost 何如会影响_posts 文章已经固定链接的显示吗?

haobug commented 4 years ago
git fetch cdlug refs/pull/20/head
git checkout -b QuantumGhost/exp/hugo FETCH_HEAD

apt-cache search hugo
hugo - Fast and flexible Static Site Generator written in Go
apt-get install hugo

hugo
=============================================================
Your rendered home page is blank: /index.html is zero-length
 * Did you specify a theme on the command-line or in your
   "config.toml" file?  (Current theme: "even")
 * For more debugging information, run "hugo -v"
=============================================================
0 draft content
0 future content
5 pages created
0 non-page files copied
0 paginator pages created
0 tags created
0 categories created
in 31 ms

5 pages created

@QuantumGhost 5pages 在哪?还是我用的不对?

haobug commented 4 years ago

$ cat README.md cat: README.md: No such file or directory

记录TODO问题

QuantumGhost commented 4 years ago

README.md 好像被我挪走了 @haobug 然后已经固定的链接我用 aliases 重定向过去了

你们可以 check 一下现有链接,也可能有我漏掉的 ;)

QuantumGhost commented 4 years ago

然后这个

5 pages created

@QuantumGhost 5pages 在哪?还是我用的不对?

试试 hugo -D serve 然后访问 localhost:1313?

too commented 4 years ago

目前测试 about 和 financial 页面都没问题,挺好的。但是点 post 进去看的话,会进入无限加载状态,是我点网络问题吗? 例如这个页面 https://affectionate-tesla-fb7bad.netlify.com/2018/05/19/cdlug_logos

QuantumGhost commented 4 years ago

@too 晚上看看

haobug commented 4 years ago

合并倒计时 1/3 day

haobug commented 4 years ago

试试 hugo -D serve 然后访问 localhost:1313?

然后访问 localhost:1313 什么都没有。

haobug commented 4 years ago

1/3

QuantumGhost commented 4 years ago

目前测试 about 和 financial 页面都没问题,挺好的。但是点 post 进去看的话,会进入无限加载状态,是我点网络问题吗? 例如这个页面 https://affectionate-tesla-fb7bad.netlify.com/2018/05/19/cdlug_logos

@too 看起来是 Netlify 会自动 trim .html 的 suffix,而我做了到 .html 的跳转,就无限循环了,去掉 front matter 里面的 aliases 就好了

QuantumGhost commented 4 years ago

移动到顶部

haobug commented 4 years ago

All checks have passed 3 neutral and 2 successful checks @netlify Header rules - cdlug Completed in 10s — No header rules processed

@netlify Pages changed - cdlug Completed in 10s — All files already uploaded

@netlify Redirect rules - cdlug Completed in 10s — No redirect rules processed @netlify

Mixed content - cdlug Successful in 10s — No mixed content detected @netlify netlify/cdlug/deploy-preview — Deploy preview ready! This branch has no conflicts with the base branch

像极爱情干翻世界500 纸老虎。

haobug commented 4 years ago

Recommended: point ANAME or ALIAS record to cdlug.netlify.com cdlug.org ALIAS cdlug.netlify.com. Alternative: point A record to 104.198.14.52 cdlug.org A 104.198.14.52

Q1 请确认 DNS是否就这样修改。

@QuantumGhost
由于听说国内 CNAME 解析不灵所以我们都使用 A 记录

*.cdlug.org A 记录到 104.198.14.52
www.cdlug.org A 记录到 104.198.14.52

Q2 本条 pr 现在可以直接 merge 了?吗

QuantumGhost commented 4 years ago

@haobug

www 必须用 CNAME

www CNAME cdlug.netlify.com.

由于听说国内 CNAME 解析不灵所以我们都使用 A 记录

这是哪来的说法

haobug commented 4 years ago

@haobug

www 必须用 CNAME

www CNAME cdlug.netlify.com.

由于听说国内 CNAME 解析不灵所以我们都使用 A 记录

这是哪来的说法

听 vasily 说的,他说他则站 cname 解析不了。 我刚刚改了解析了。

www CNAME cdlug.netlify.com
@    CNAME cdlug.netlify.com

现在已经生效。

haobug commented 4 years ago

现在只是显示 Not secure ,一会会儿又有人冒出来说,2020 年了,还没有 https

QuantumGhost commented 4 years ago

我合并了

haobug commented 4 years ago

现在只是显示 Not secure ,一会会儿又有人冒出来说,2020 年了,还没有 https

https 已经配置好了,等刷新。