Git Product home page Git Product logo

gbt1988.github.io's People

Contributors

gbt1988 avatar no4long avatar

Watchers

 avatar

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 如果需要分类展示出来,也需要按照上述方法配置路径和分类标题并对标题进行翻译文件配置

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.