All Projects → D0n9X1n → Hexo Tag Cloud

D0n9X1n / Hexo Tag Cloud

Licence: mit
Yet, just another tag cloud plugin for hexo.

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Hexo Tag Cloud

Hexo Hide Posts
A plugin to hide specific posts from your Hexo blog and make them only accessible by links. (隐藏 Hexo 文章)
Stars: ✭ 93 (-26.19%)
Mutual labels:  hexo
Hexo Toc
📖 Insert a markdown TOC before posts be rendered.
Stars: ✭ 106 (-15.87%)
Mutual labels:  hexo
Hexo Blog Lionkk
⚡️魔改自butterfly 🦋主题,提供完整详细的文档,同时为了回馈开源,这不是生成后的网页文件,是您可以直接使用的源码,您只需要把博客相关信息换成您自己的就可以部署了,对于新手或者不懂编程的小伙伴来说,简直是福音!❤️
Stars: ✭ 117 (-7.14%)
Mutual labels:  hexo
Hexo Theme Material
a theme of hexo using the material design bootstrap
Stars: ✭ 93 (-26.19%)
Mutual labels:  hexo
Farbox Theme Anatole
This theme is desiged for FarBox,You can use it directly or modified it on FarBox
Stars: ✭ 99 (-21.43%)
Mutual labels:  hexo
Hexo Theme Ylion
😊 说不定是一个让你感到惊喜的hexo主题 🍻 🍬
Stars: ✭ 110 (-12.7%)
Mutual labels:  hexo
Hexo Theme Melody
🎹A simple & beautiful & fast theme for Hexo.
Stars: ✭ 1,306 (+936.51%)
Mutual labels:  hexo
Hexo Theme Bamboo
Hexo博客主题,国内访问https://yuang01.gitee.io
Stars: ✭ 121 (-3.97%)
Mutual labels:  hexo
Hexo Theme Doku
📜 Doku, a Hexo theme designed for writing documents.
Stars: ✭ 101 (-19.84%)
Mutual labels:  hexo
Hexo Pwa
Hexo PWA plugin
Stars: ✭ 116 (-7.94%)
Mutual labels:  hexo
Poetries.github.io
博客,用于记录学习总结的地方。关注公众号「前端进阶之旅」,一起学习
Stars: ✭ 94 (-25.4%)
Mutual labels:  hexo
Flexy
A responsive theme for Hexo
Stars: ✭ 97 (-23.02%)
Mutual labels:  hexo
Hexo Theme Xups
hexo主题xups
Stars: ✭ 111 (-11.9%)
Mutual labels:  hexo
Hexo Symbols Count Time
Symbols count and time to read of articles for Hexo.
Stars: ✭ 93 (-26.19%)
Mutual labels:  hexo
Hexo Theme Primer
The github style (primer) for Hexo theme.
Stars: ✭ 117 (-7.14%)
Mutual labels:  hexo
Laraduoshuo
Laravel 5 实现的私有评论系统,用于 Hexo、Jekyll 等静态博客系统
Stars: ✭ 92 (-26.98%)
Mutual labels:  hexo
Hexo Theme Spectre
A modern, simple & elegant theme for Hexo
Stars: ✭ 109 (-13.49%)
Mutual labels:  hexo
Hexo Theme Aomori
A Hexo Theme. Hexo 博客主题
Stars: ✭ 122 (-3.17%)
Mutual labels:  hexo
Generator Hexo Theme
Generate a hexo theme: ejs, pug, swig, nunjucks | Moved to https://tcrowe.commons.host/contact
Stars: ✭ 119 (-5.56%)
Mutual labels:  hexo
Hexo Pdf
Hexo tag for embeded pdf
Stars: ✭ 117 (-7.14%)
Mutual labels:  hexo

hexo-tag-cloud

GitHub release (latest SemVer including pre-releases) Build Status Scrutinizer Code Quality

中文说明版本

Yet, just another tag cloud plugin for hexo.

How it looks like

TagCloud

And you can see online live demo by clicking here

How to Use

Install

  • go into your hexo system folder, and add depandence "hexo-tag-cloud": "2.1.*" to package.json
  • then do npm install command
  • then you need to change your theme layout file and add the following content to that file depended on your render system.

For ejs Users

  • For example, in its default theme landscape.
  • We should find hexo/themes/landscape/layout/_widget/tagcloud.ejs file and insert the following code.
<% if (site.tags.length) { %>
  <script type="text/javascript" charset="utf-8" src="<%- url_for('/js/tagcloud.js') %>"></script>
  <script type="text/javascript" charset="utf-8" src="<%- url_for('/js/tagcanvas.js') %>"></script>
  <div class="widget-wrap">
    <h3 class="widget-title"><%= __('tagcloud') %></h3>
    <div id="myCanvasContainer" class="widget tagcloud">
      <canvas width="250" height="250" id="resCanvas" style="width:100%">
        <%- tagcloud() %>
      </canvas>
    </div>
  </div>
<% } %>

If you are using icarus, please see Issue #31.

For swig Users

  • Here we use theme Next as an example.
  • You should insert the following code into next/layout/_macro/sidebar.swig.
{% if site.tags.length > 1 %}
  <script type="text/javascript" charset="utf-8" src="{{ url_for('/js/tagcloud.js') }}"></script>
  <script type="text/javascript" charset="utf-8" src="{{ url_for('/js/tagcanvas.js') }}"></script>
  <div class="widget-wrap">
    <h3 class="widget-title">Tag Cloud</h3>
    <div id="myCanvasContainer" class="widget tagcloud">
      <canvas width="250" height="250" id="resCanvas" style="width:100%">
        {{ list_tags() }}
      </canvas>
    </div>
  </div>
{% endif %}

@See Issue 6

For jade Users

  • eg. theme Apollo.
  • You can add change the container block code to the following in apollo/layout/archive.jade.
...
block container
    include mixins/post
    .archive
        h2(class='archive-year')= 'Tag Cloud'
        script(type='text/javascript', charset='utf-8', src=url_for("/js/tagcloud.js"))
        script(type='text/javascript', charset='utf-8', src=url_for("/js/tagcanvas.js"))
        #myCanvasContainer.widget.tagcloud(align='center')
            canvas#resCanvas(width='500', height='500', style='width:100%')
                !=tagcloud()
            !=tagcloud()
    +postList()
...

For pug Users

  • Here we use theme Butterfly as an example.
  • Then find this file: Butterfly/layout/includes/widget/card_tags.pug
  • Modiefy the file as following code:
if site.tags.length
  .card-widget.card-tags
    .card-content
      .item-headline
        i.fa.fa-tags(aria-hidden="true")
        span= _p('aside.card_tags')
        script(type="text/javascript" charset="utf-8" src="/js/tagcloud.js")
        script(type="text/javascript" charset="utf-8" src="/js/tagcanvas.js")
        #myCanvasContainer.widget.tagcloud(align='center')
          canvas#resCanvas(width='200', height='200', style='width=100%')
            != tagcloud()
          != tagcloud({min_font: 16, max_font: 24, amount: 50, color: true, start_color: '#999', end_color: '#99a9bf'})

Last step

  • use hexo clean && hexo g && hexo s to see the change. hexo clean must be done before use hexo g.
  • PS: Don't use the command hexo g -d or hexo d -g, @See Issue 7

Customize

Now the hexo-tag-cloud plugin support customize feature. It's simple to change the color and the font for the tag cloud.

  • Add these config below to your _config.yml file(which under your blog root directory)
# hexo-tag-cloud
tag_cloud:
    textFont: 'Trebuchet MS, Helvetica'
    textColor: '#333'
    textHeight: 25
    outlineColor: '#E2E1D1'
    maxSpeed: 0.5 # range from [0.01 ~ 1]
    pauseOnSelected: false # true means pause the cloud tag movement when highlight a tag
  • then use hexo clean && hexo g && hexo s to enjoy your different tag cloud

Troubleshooting

Submit issue please

Thanks

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].