最近在尝试搭建一个hexo,主题已经搭建好了,就是在处理tag的时候,有点问题。
问题描述:在_post里面已经给.md文件头加上了 tags ,代码如下:
---
title: Android Transition Framework
date: 2016-9-12 22:55:03
categories: Blogs
tags: [Android,Tips]
---
而在预览时,文章页也是可以看到标签存在的
而在点击标签页时,没有显示所定义的标签们
下面贴上我主题的_config.yml:
menu:
home:
text:
url: /
archives:
url: /archives
tags:
url: /tags
github:
url: https://github.com/youngkaaa
target: _blank
weibo:
url:
target: _blank
link:
text: 测试
url: /404
rss: /atom.xml
#你的头像url
avatar: /img/logo.jpg
# email
email: 645326280@qq.com
# 设置 Android L Chrome 浏览器状态栏颜色
color: '#3F51B5'
# Content
tags:
title: 标签
# 文章截断
excerpt_render: false
excerpt_length: 200
excerpt_link: 阅读全文...
mathjax: false
archive_yearly: true
#是否开启分享
share: true
#是否开启打赏,关闭 reward: false
reward:
title: 谢谢打赏~
wechat: /img/wechat.jpg #微信,关闭设为 false
alipay: /img/alipay.jpg #支付宝,关闭设为 false
#是否开启搜索
search: true
#是否大屏幕下文章页隐藏导航
hideMenu: true
#是否开启toc
#toc: false
toc:
list_number: false # 是否显示数字排序
#站长统计,如要开启,输入CNZZ站点id,如 cnzz: 1255152447
cnzz: false
# Miscellaneous
google_analytics: ''
favicon: /favicon.ico
# less
less:
compress: true
paths:
- source/css/style.less
整个项目的_config.yml
# Site
title: youngkaaa
subtitle: single dog~single dog?!
description:
author: youngkaaa
language:
timezone:
# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: http://yoursite.com
root: /
permalink: :year/:month/:day/:title/
permalink_defaults:
# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:
# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link: true # Open external links in new tab
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
highlight:
enable: true
line_number: true
auto_detect: false
tab_replace:
# Category & Tag
default_category: uncategorized
category_map:
tag_map:
# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format: YYYY-MM-DD
time_format: HH:mm:ss
# Pagination
## Set per_page to 0 to disable pagination
per_page: 10
pagination_dir: page
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: indigo
# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
type: git
repository: https://github.com/youngkaaa/youngkaaa.github.io.git
branch: master
附上项目结构图:
请大神指教。谢谢
这和你这堆东西都没关系
你得去看你渲染的
tags
页面模板里面是不是加入了tagcloud