Article synchronization occurs in the public number: 1024 program developer community (cxkfzsq1024)
1024 program developer community blog
Has recently been on a business trip, not enough time to update the public numbers, taking advantage of the weekend to build a number of public blog, it began like this:
- Tencent some reason to cancel a new registration number of the public comment function, leading to public numbers seem to have lost the soul;
- Rent a cloud server, needs funds to buy a domain name!
Therefore, set up a blog on GitHub, add comments function as an important supplement to the public the total number, the effect is this:
because there is no buy domain site at:
HTTPS: // zhangbinchao.github.io/
welcome everyone to see, the same can log on the phone.
/ 1 / build process
Internet-related resources are relatively abundant, where only the build process are introduced.
(A) Environment Configuration
- Node.js installation
- git installation
- Configuring gitHub account
(b) New Repository
fill yourname.github.io under the name
(c) the installation Hexo
local create a folder in which to open the git bash, installation hexo
npm install hexo-cli -g
initialization
hexo init
Start service
npm install -> hexo server -> hexo clean -> hexo generate -> hexo deploy
in localhost: 4000 to see if normal.
(Iv) Hexo and GitHub page Contact
Git bash generated keys:
ssh - keygen - t rsa - C "邮箱"
Provided GitHub-> setting the SSH Keys, copies the generated secret key to the following diagram:
In _config.yml file, the Deployment found, and then modified as follows:
deploy:
type: git
repo: [email protected]:yourname/yourname.github.io.git
branch: master
This can
hexo clean - hexo deploy> -> hexo generate
the local site is deployed on a GitHub.
(E) select topics
to choose their favorite theme on the official website;
https://hexo.io/themes/
installed next:
git clone https://github.com/iissnan/hexo-theme-next themes/next
In _config.yml, set:
Theme: the Next
(F) the theme settings
_config.yml theme topic type setting
# Schemes
# scheme: Muse
#scheme: Mist
scheme: Pisces
#scheme: Gemini
Language
language: zh-CN
By the above operation to complete the work to build your own blog, the next phase will introduce the Page Setup, add content, comments and other features.
No public concern, sending massive learning resources -
Exchange Group 1024 program developer community has been established, many small partners have been added, thank you for your support. We can exchange views on technical issues in the group, is not a member of the junior partner can scan under "community property" two-dimensional code, allowing administrators to help pull into the group, we expect to join.
//you may also like//