Skip to content

Commit

Permalink
release: 0.3.0 荻原沙優
Browse files Browse the repository at this point in the history
  • Loading branch information
hms5232 committed Jan 21, 2022
1 parent f609549 commit 11f6046
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ yarn add hexo-tag-fb-comments
fb_comments:
enabled: true
```
至少要這樣,FB 留言外掛才會啟用。但個人推薦再加入 `appId` 才可以統一管理留言。完整可設定的範例如下:
至少要這樣,FB 留言外掛才會啟用。但個人推薦再加入 `app_id` 才可以統一管理留言。完整可設定的範例如下:
```yml
fb_comments:
enabled: true # 是否開啟 FB 留言外掛
to: post # 有 post、page 或 default(全選)等,詳細選項請參考 hexo injector
to: post # 有 post、page 或 default(全部)等,詳細選項請參考 hexo injector
app_id: # FB 應用程式編號
lang: zh_TW # 語言
num_posts: 5 # 顯示幾則留言
Expand All @@ -33,6 +33,8 @@ fb_comments:
width: 100% # 寬度
```

各參數對應的臉書設定細節請參考:https://developers.facebook.com/docs/plugins/comments/

#### 文章或頁面
請在想顯示 FB 留言外掛的地方,放上下面這個標籤:
```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-tag-fb-comments",
"version": "0.2.0",
"version": "0.3.0",
"description": "Facebook comments plugin for Hexo!",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 11f6046

Please sign in to comment.