This blog is built using Hugo.
I previously recommended Tencent Cloud's cloud studio. Recently, I had some free time and a desire to experiment, so I decided to try using cloud studio to build Hugo.
Actually, I found another Hugo theme that I liked. After studying it for a day and a half, I got stuck on a problem. After deployment, the homepage couldn't display the article titles. Then I looked at the Hugo documentation, but there was nothing specific to note.
Could it be that I installed it incorrectly? I tried deleting, clearing the environment, and reinstalling; I failed, so I tried installing a different version, but it failed again.
In the end, it ended in failure. At the suggestion of Linhai Grassland, I turned to Netlify. I deployed it on GitHub, then connected it to Netlify and used Netlify for online automatic compilation.
Summary#
This theme is very beautiful. The next step is to add a comment system.
PS: It seems that Netlify is not very fast to access. I tested it, and it's indeed unsatisfactory! I still need to find out what went wrong with cloud studio.
Update#
I found an article on Baidu and tried a different method to reinstall.
How to install and use Hugo on Ubuntu 18.04
- Install Hugo from the apt repository on Ubuntu 18.04 LTS
Update your system's apt index and install Hugo:
sudo apt-get update $ sudo apt-get install hugo
You can confirm the location of the hugo binary file after installation:
$ which hugo
/usr/bin/hugo
- Install Hugo from a .deb package on Ubuntu 18.04 LTS
First, download the latest version from the Hugo page on GitHub. The current version is v0.54.0. Choose the version that matches your CPU architecture:
wget https://github.com/gohugoio/hugo/releases/download/v0.54.0/hugo_0.54.0_Linux-64bit.deb
Then use the following command to install the package:
$ sudo dpkg -i hugo_0.54.0_Linux-64bit.deb
Selecting previously unselected package hugo.
(Reading database … 187292 files and directories currently installed.)
Preparing to unpack hugo_0.54.0_Linux-64bit.deb …
Unpacking hugo (0.54.0) …
Setting up hugo (0.54.0) …
If the installation is successful, you should be able to use the hugo command:
$ hugo --help
For comments, I use Disqus. After researching, I found that it is difficult to transfer comments from Typecho to Disqus. With my current skills, I am unable to achieve it, so I will temporarily keep the previous blog. https://tp.cssj.fun