Git Product home page Git Product logo

Comments (6)

wszgxa avatar wszgxa commented on June 9, 2024

@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.

ousui avatar ousui commented on June 9, 2024

恩,谢谢,弄好了
但是导航这块:
class="ac"
这个样式貌似应该用 js 动态控制吧,我看源码好像是用模板语言来控制的。

from hexo-theme-simple.

wszgxa avatar wszgxa commented on June 9, 2024

@ousui 为啥用js好呢?

from hexo-theme-simple.

ousui avatar ousui commented on June 9, 2024

hexo 最终生成的是静态页面啊,切换页面的话 ac 不会跟着切。

from hexo-theme-simple.

wszgxa avatar wszgxa commented on June 9, 2024

hexo里面有变量判断的,静态文件都是写死的。ac的状态根据变量判断就ok了。。。

from hexo-theme-simple.

wszgxa avatar wszgxa commented on June 9, 2024

@ousui 不过这确实有个bug,谢了~

from hexo-theme-simple.

Related Issues (2)

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.