Want to build your own blog, but don’t want to spend money on a server?
How to post your own blog on github and your own domain name!
First build VuePress, a Vue driven static website generator, the official generator needs to typeset their own navigation bar, sidebar location and routing, if you feel more trouble. Download my Github repository’s modified generator to automate navigation and sidebar production without typesetting! This generator was modified by Vuepress1.0.
1. PreviewTop dogThe effect of
2. To start building, clickHere,Download generator
3. Put your article here at 👇 and run the deploy. Bat command
-
Generate the static file NPM run build
-
Go to the generated folder CD docs/.vuepress/dist
-
Git Bash commits to a remote repository
git init
git add -A
git commit -m 'first commit
git branch -M main
Copy the code
-
Post to https://.github.io, < your Github > and fill in the address of the repository you just created:
-
Git push -f [email protected]:< your github name >/< your github name >.github.io
Github creates xxx.github. IO repository. Each account has one and only one
-
What if you don’t know Git? Learn how to use Git and upload your project to GitHub
-
Finally refresh github and lingxiu58.github.com to check that the upload is successful 🎉🎉🎉
I want to map it to my domain name, ok?
No problem! You only need to spend a few dozen dollars to buy a domain name!
First of all, you have to register a domain name of your own, here I use Huawei cloud, other platforms Ali cloud, Tencent cloud, Baidu cloud can, as long as you can buy a domain name on the line. Domain name registration -> domain name record -> domain name resolution, record need to wait 5-15 days to record successfully, this period of time you can first tidy up their own blog content.
The article is basically over here, please give my warehouse a Star, if you have any questions, please leave me a message! ✈ ️