Skip to content

添加标签云页面page-tags.php#67

Merged
idawnlight merged 4 commits intoidawnlight:masterfrom
ZigZagK:ZigZagK-branch
Feb 12, 2019
Merged

添加标签云页面page-tags.php#67
idawnlight merged 4 commits intoidawnlight:masterfrom
ZigZagK:ZigZagK-branch

Conversation

@ZigZagK
Copy link
Copy Markdown
Contributor

@ZigZagK ZigZagK commented Feb 12, 2019

样式是hexo-theme-material那边的。
字体大小和颜色深浅的系数是$tag->count/$max$max是所有标签中文章数最大值,感觉这样效果会比总文章数当分母好一点(那样得出来的值太小了QAQ)。
颜色深浅的公式是这篇文章里的,浅的颜色为#757575,深的颜色为#212121(这两个参数也是hexo-theme-material那边的)。
效果:

很抱歉我不小心commit了两次QAQ。
又改了一下……之前那个计算颜色的时候没有用16进制(我是zz)。

@idawnlight idawnlight merged commit fe97d00 into idawnlight:master Feb 12, 2019
@idawnlight
Copy link
Copy Markdown
Owner

是大佬!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants