Skip to content

Commit

Permalink
fix: remove open_graph when has gallery_password, close #382
Browse files Browse the repository at this point in the history
  • Loading branch information
YunYouJun committed Oct 4, 2023
1 parent 742e37e commit 06a26c6
Show file tree
Hide file tree
Showing 6 changed files with 2,566 additions and 2,386 deletions.
2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"hexo-generator-category": "^1.0.0",
"hexo-generator-feed": "^3.0.0",
"hexo-generator-index": "^2.0.0",
"hexo-generator-searchdb": "^1.4.0",
"hexo-generator-searchdb": "^1.4.1",
"hexo-generator-sitemap": "^3.0.1",
"hexo-generator-tag": "^1.0.0",
"hexo-render-pug": "^2.1.4",
Expand Down
14 changes: 7 additions & 7 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"dev": "vitepress dev . --host"
},
"dependencies": {
"@iconify-json/ri": "^1.1.5",
"dayjs": "^1.11.7"
"@iconify-json/ri": "^1.1.12",
"dayjs": "^1.11.10"
},
"devDependencies": {
"@vueuse/core": "^9.13.0",
"sass": "^1.55.0",
"unocss": "^0.45.26",
"unplugin-vue-components": "^0.22.8",
"vitepress": "1.0.0-alpha.19"
"@vueuse/core": "^10.4.1",
"sass": "^1.68.0",
"unocss": "^0.56.5",
"unplugin-vue-components": "^0.25.2",
"vitepress": "1.0.0-rc.20"
}
}
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@
},
"devDependencies": {
"@antfu/eslint-config": "^0.37.0",
"@types/node": "^18.15.10",
"bumpp": "^8.2.1",
"@types/node": "^20.8.2",
"bumpp": "^9.2.0",
"cross-env": "^7.0.3",
"eslint": "^8.36.0",
"esno": "~0.16.3",
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
"eslint": "^8.50.0",
"esno": "~0.17.0",
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
"tsup": "^6.2.3",
"typescript": "^4.8.4",
"zx": "^7.1.0"
"zx": "^7.2.3"
},
"lint-staged": {
"sites.json": "npm run generate:demo-sites"
Expand Down
3 changes: 2 additions & 1 deletion packages/hexo-theme-yun/layout/_partial/head.pug
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ if page.photos
- var page_photos = page.photos
- page.photos = page_photos.map(photo=>{return photo.src})

!=open_graph()
if !page.gallery_password
!=open_graph()

if page.photos
- page.photos = page_photos
Expand Down
4 changes: 2 additions & 2 deletions packages/theme-yun/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
"author": "",
"license": "MIT",
"devDependencies": {
"consola": "^2.15.3",
"consola": "^3.2.3",
"del": "^6.1.1",
"gulp": "^4.0.2",
"gulp-clean-css": "^4.3.0",
"gulp-sass": "^5.1.0",
"sass": "^1.55.0"
"sass": "^1.68.0"
}
}
Loading

0 comments on commit 06a26c6

Please sign in to comment.