jekyll-baidu-push 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a0ae04978a1b3c76809f9bef7a265018651260a8694cf16cb7d9134165b70ba
4
- data.tar.gz: f702bf0a56fa13221344fca01ac9080da16e3e4ccbc476d6b88d52983769c9c0
3
+ metadata.gz: e24a531ae4caf08c5955401038247983c4a12f0c92ce1976a1374ba6fba7a3de
4
+ data.tar.gz: 124dedbee284b1b17da814effee6b8e5df1401882c6fb245aaf07e34ad7794a7
5
5
  SHA512:
6
- metadata.gz: ed451b4bb4ff1e63fc848794be15924f55533183449da7bc058d08314b134c04d09e1430e73a78401b9158971b997684ef798612bf9b01c7c14a75f7e1f46a2e
7
- data.tar.gz: 49f53cda6610f25ab62ab093175eaad8f7b87e01438d69bfe6626ea9c85430c005a1947151521afe49d170ff641311bf8c5adaa9261cd938b264a84c57445687
6
+ metadata.gz: f15c4a74853235733f4eb0f5536b076b6f1ea19f55becdbebb517b63d8e558aab1765848f14099b8dad5e51d6e180ebd1c92772495b4e63e7cdbe3035451e54e
7
+ data.tar.gz: d74694647c93781091546036c27d166a8647497457d14c926438ba706c9c665e0d9f686ec0d661afeee1cb41f5e0089d3ac81a7163e1ed585d4a046e23189ab4
@@ -8,6 +8,13 @@ module Jekyll
8
8
  def generate(site)
9
9
  # 读取配置
10
10
  config = site.config['baidu_push'] || {}
11
+
12
+ # 检查是否启用
13
+ if config.key?('enabled') && !config['enabled']
14
+ puts "[baidu_push] 插件未启用,跳过 Baidu Push。" if site.config['verbose']
15
+ return
16
+ end
17
+
11
18
  push_type = config['type'] || 'all' # 默认推送所有内容
12
19
  limit = config['limit'] || 10 # 默认推送 10 个
13
20
  token = config['token'] || "" # 获取 token
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-baidu-push
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - note4
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-05 00:00:00.000000000 Z
11
+ date: 2025-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -42,7 +42,12 @@ files:
42
42
  homepage: https://github.com/note4/jekyll-baidu-push
43
43
  licenses:
44
44
  - MIT
45
- metadata: {}
45
+ metadata:
46
+ bug_tracker_uri: https://github.com/note4/jekyll-baidu-push/issues
47
+ changelog_uri: https://github.com/note4/jekyll-baidu-push/blob/main/CHANGELOG.md
48
+ documentation_uri: https://github.com/note4/jekyll-baidu-push
49
+ source_code_uri: https://github.com/note4/jekyll-baidu-push
50
+ homepage_uri: https://1px.run
46
51
  post_install_message:
47
52
  rdoc_options: []
48
53
  require_paths:
@@ -61,5 +66,5 @@ requirements: []
61
66
  rubygems_version: 3.4.10
62
67
  signing_key:
63
68
  specification_version: 4
64
- summary: Jekyll plugin to push URLs to Baidu
69
+ summary: Jekyll plugin to push URLs to Baidu. 每次构建的时候将 Jekyll 的链接推送到百度搜索索引。
65
70
  test_files: []