Socket
Socket
Sign inDemoInstall

hexo-word-cloud

Package Overview
Dependencies
225
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    hexo-word-cloud

a hexo plugins


Version published
Weekly downloads
3
Maintainers
1
Install size
23.2 MB
Created
Weekly downloads
 

Readme

Source
hexo-word-cloud

hexo 标签 词云

调用示例

在 hexo 项目的 _config.yml 文件中添加配置项: wordCloud

tag_dir: tags
# ...

# wordCloud相关的配置, 所有配置都可不填
# 相对路径 基于项目根目录
wordCloud:

  # 输出文件路径 (默认: [tag_dir]/index.html)
  output: 

  title: 标签云
  width: 1200
  height: 600

  # 定制的 echarts 中应当包含自定义系列, 不然没办法显示
  echarts: https://gallerybox.echartsjs.com/dep/echarts/3.8.0/echarts.min.js
  # https://github.com/ecomfe/echarts-wordcloud
  wordcloud: 

  # 标签云的形状
  image: themes/even/plugins/cloud/logo.png


  # 以下是一些模板 template/element/style/script/tagdata
  # 填写格式: 相对于根目录的路径

  # html 页面
  template: 

  # 标签云容器
  element: themes/even/plugins/cloud/element.tpl

  # 标签云的样式 / 逻辑
  style: themes/even/plugins/cloud/style.tpl
  script: 

  # 标签云数据(JSON String)
  # 覆盖echarts.setOption时的 series.data
  tagdata: 

模板使用示例
template 模板 
<html>
<head>
  <title>
  <!-- title -->
  </title>
  <!-- style -->
  <script src="<!-- echarts -->"></script>
  <script src="<!-- wordcloud -->"></script>
</head>
<body>
<!-- element -->
<!-- script -->
</body>
</html>

script 模板
<script>
console.log(<!-- width -->);
console.log(<!-- height -->);
</script>

Keywords

FAQs

Last updated on 24 Jan 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc