hexo-theme-yilia icon indicating copy to clipboard operation
hexo-theme-yilia copied to clipboard

分类列表在哪儿查看?

Open clarkhan opened this issue 9 years ago • 25 comments

怎么查看所有文章的分类列表。像这个样子: t

clarkhan avatar Feb 10 '15 09:02 clarkhan

你好,你说的是tag标签吗? hover到左侧边栏的小房子图标去看看

litten avatar Feb 11 '15 04:02 litten

不是tag,是category。tag标签有看到,还希望有个分类。因为每篇文章会有很多tag,且不互斥,像关键词。所以觉得hexo本身的category还是很有用的。

clarkhan avatar Feb 11 '15 04:02 clarkhan

+1

baininghan avatar Feb 16 '15 12:02 baininghan

+1 category还是急需的,另外如何增加类似如下的分类呢? image

mingmings avatar Mar 08 '15 12:03 mingmings

@mingmings 好的,会加上这块

litten avatar Mar 09 '15 03:03 litten

您好,这个分类功能还加么?

shibing avatar May 02 '15 16:05 shibing

@shibing 加

litten avatar May 04 '15 02:05 litten

你的主题相当OK,我连你的头像都一块用了,哈哈,感谢啊。 另外希望加上toc的功能。可以在每篇文章的头部有toc:true来开启。文章太长有这个还是很方便的!

diffroot avatar Jun 23 '15 10:06 diffroot

还有那个显示管理员名字的地方还是显示title比较的符合使用习惯

diffroot avatar Jun 23 '15 10:06 diffroot

具体怎么做呢

zhang-wenchao avatar Sep 10 '15 05:09 zhang-wenchao

可以参考这个@464ec24b6dab10173c2478fd3f9dce89b695cb7c ,我添加了分类,样式套用了标签的没修改,手机端没有添加分类。效果或以看这个博客http://wixy.top/

iblogc avatar Sep 10 '15 07:09 iblogc

@mingmings 这个是page,使用hexo n page ‘xxx’,创建,然后在主题的_config.yml里添加上

menu:
  Home: /
  Archives: /archives
  关于: /xxx

iblogc avatar Sep 10 '15 07:09 iblogc

@korvin101 找到 themes\yilia\layout_partial\left-col.ejs 这个文件,修改


                <%if(theme.tagcloud){%>
                <section class="switch-part switch-part2">
                    <div class="widget tagcloud" id="js-tagcloud">
                        <%- tagcloud() %>
                    </div>
                </section>
                <%}%>

                <%if(theme.category){%>
                <section class="switch-part switch-part3">
                    <div class="widget tagcloud" id="js-tagcloud">
                        <%- list_categories() %>
                    </div>
                </section>
                <%}%>

在tagCloud 之后多加一个 category 就可以了,不过样式和图标还要调整下,再在主题的yml 中加一个category 变量,取值true|false

funye avatar Sep 13 '15 14:09 funye

@funye 你@错了吧:joy:

iblogc avatar Sep 13 '15 14:09 iblogc

(⊙o⊙)… 你回复的表情怎么加点

funye avatar Sep 13 '15 15:09 funye

@funye http://www.emoji-cheat-sheet.com/ :smiling_imp::smiling_imp::smiling_imp:

iblogc avatar Sep 13 '15 15:09 iblogc

:thumbsup:

funye avatar Sep 13 '15 15:09 funye

@funye 问下,你那边看到我的头像是什么样的 是这样 还是这样 ,github缓存太久了,我昨天改的头像有些地方变了,有些现在还没变

iblogc avatar Sep 13 '15 15:09 iblogc

@korvin101 在这个issue 列表里面我们交流的时候看到的是蓝色方块,在你的profile 页面是 i

funye avatar Sep 13 '15 15:09 funye

@funye 那和我自己看到的是一样的

iblogc avatar Sep 13 '15 15:09 iblogc

@litten 获取分类列表 加了么 谢谢

ocswor avatar Jan 04 '18 06:01 ocswor

查找了很多主题,最后定下了next,但总觉得next 不够大气,看到这个主题,真是觉得发现了真爱,喜欢。 但是,分类什么时候加呢? @litten

qiaoqiaowang avatar Jan 30 '18 12:01 qiaoqiaowang

可以参考这个@464ec24b6dab10173c2478fd3f9dce89b695cb7c ,我添加了分类,样式套用了标签的没修改,手机端没有添加分类。效果或以看这个博客http://wixy.top/

大佬,你的分类怎么加的吖?

mxy493 avatar Jan 28 '19 08:01 mxy493

分类和标签怎么样了啊

Code-Panda avatar Jan 31 '20 12:01 Code-Panda

可以参考这个@464ec24b6dab10173c2478fd3f9dce89b695cb7c ,我添加了分类,样式套用了标签的没修改,手机端没有添加分类。效果或以看这个博客http://wixy.top/

大佬,你的分类怎么加的吖?

分类加上了吗

Code-Panda avatar Jan 31 '20 12:01 Code-Panda