Giter Club home page Giter Club logo

hexo-steam's Introduction

hexo-steam-games

https://img.shields.io/npm/v/hexo-steam?color=%09%23bf00ff license

介绍

为Hexo添加Steam游戏库页面

Demo.

安装

$ npm install hexo-steam --save

配置

将下面的配置写入站点的配置文件 _config.yml 里(不是主题的配置文件).

steam:
  enable: true
  path :
  steamId: "xxxxx"     
  length: 1000         
  auto_generate: false  
  front_matter:
    title: Steam游戏库
    top_img: 
    aside: false
  except: 
    - 205790
  • enable: 是否启用
  • path: 页面路径,默认为 /steam/index.html
  • steamId: steam 64位Id(需要放在引号里面,不然会有BUG), 需要将steam库设置为公开!
  • length: 要显示游戏的数量,游戏太多的话可以限制一下
  • auto_generate: 是否在在hexo generate时重新生成页面(不重新获取游戏数据)
  • front_matter : 文章配置选项
  • title: 该页面的标题
  • top_img: 顶部图片链接
  • aside: 侧边栏是否显示
  • except: 不显示的游戏(填入游戏id)

前提

  1. 要保证浏览器能访问 steam社区
  2. 如果不能访问,建议使用 steamcommunity 302 或fq

使用

  1. 使用hexo asteam命令更新steam游戏库数据生成页面!
  2. 没有冲突时,可使用缩写 hexo a 更新

示例

示例图片 示例图片

参考

hexo-steam-games hexo-douban

hexo-steam's People

Contributors

798love avatar

Watchers

 avatar

Forkers

gallifreycar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.