gbt1988.github.io's People
gbt1988.github.io's Issues
给 hexo 博客配置 google analytics
- 注册 ga 账户
- 配置 UA-ID
- 复制追踪代码到
[theme]/layout/ _partial
下,新建的google_analytics.ejs
文件中 - 在 layout.ejs中调用
<%- partial('_partial/google_analytics.ejs') %>
创建新的页面和分类
创建新的页面:hexo new page "Github"
在 config 指定页面路径
Home: /
Archives: /archives
Github: /Github
在根目录下scaffolds/post.md中,添加一行categories:
在实际写作时,在开头进行categories配置。
配置分类显示的路径和样式
设置博客首页展示文本,英文改为中文显示
添加分类名称的中文版进入主题配置文件下language/zh-CN.yml
categories 写中文就是中文,不需要配置;但是路径只能是英文;配置文件中的页面名也只能是英文
需要通过翻译文件将‘’页面名称‘’显示为中文。categories 如果需要分类展示出来,也需要按照上述方法配置路径和分类标题并对标题进行翻译文件配置
github上传时出现error: src refspec master does not match any
引起该错误的原因是,目录中没有文件,空目录是不能提交上去的
解决方法:先提交文件git add . git commit -m ""
搭建教程
hexo d命令报错 ERROR Deployer not found: git
npm install hexo-deployer-git --save
日志插图问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.