Comments (6)
@ousui 因为还没开发完。等周六的时候完善下。tags和categories需要在source下面各创建一个文件夹tags,categories,然后放一个index.md里面的内容如下:
title: 标签
type: "tags"
comments: false
---
categories type是就是categories.
然后根目录下面的_config.yml需要有下面几行:
tag_dir: tags
about_dir: about
archive_dir: archives
category_dir: categories
code_dir: downloads/code
那个800的宽度,是个人喜好。觉得应该专注于阅读。
from hexo-theme-simple.
恩,谢谢,弄好了
但是导航这块:
class="ac"
这个样式貌似应该用 js 动态控制吧,我看源码好像是用模板语言来控制的。
from hexo-theme-simple.
@ousui 为啥用js好呢?
from hexo-theme-simple.
hexo 最终生成的是静态页面啊,切换页面的话 ac 不会跟着切。
from hexo-theme-simple.
hexo里面有变量判断的,静态文件都是写死的。ac的状态根据变量判断就ok了。。。
from hexo-theme-simple.
@ousui 不过这确实有个bug,谢了~
from hexo-theme-simple.
Related Issues (2)
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.
from hexo-theme-simple.