查看教程

SlyLi/hexo-steam (github.com)https://github.com/SlyLi/hexo-steam

1.安装依赖

1
npm install hexo-steam --save

2.添加代码

在_config.yml切记!!不是主题文件!!中添加以下代码

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

注意:必须保证能够访问steam社区并且steam游戏库设为公开

如不能访问可以下载Watt Toolkit(原Steam++)或steamcommunity

3.获取steamID

打开steam网站登陆后打开个人资料

beolgaimage

这里就是你的steamID

4.更新steam游戏库

  1. 使用hexo asteam命令更新steam游戏库数据生成页面!

然后hexo三连

效果如下

image-20230101143713051