From 5c6e1ccac4b89eb7eaf62f181ff2d590d0370aeb Mon Sep 17 00:00:00 2001 From: 13938 <12112017@mail.sustech.edu.cn> Date: Sat, 24 Aug 2024 20:22:51 +0800 Subject: [PATCH] fix: exploit md5 hash to solve the limit of label --- _config.yml | 2 +- layout/_partial/after-footer.ejs | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/_config.yml b/_config.yml index 85a2d24..c568430 100644 --- a/_config.yml +++ b/_config.yml @@ -165,7 +165,7 @@ gitalk: repo: owner: admin: - + md5: false # https://giscus.app/zh-CN giscus: enable: false diff --git a/layout/_partial/after-footer.ejs b/layout/_partial/after-footer.ejs index b6c5c5b..3a7665a 100644 --- a/layout/_partial/after-footer.ejs +++ b/layout/_partial/after-footer.ejs @@ -85,14 +85,18 @@ <% if (theme.gitalk.enable && theme.gitalk.clientID && theme.gitalk.clientSecret) { %> <%- js({src: vendorCdn(theme.vendor.js.gitalk)[0], 'data-pjax': true}) %> + <% if (theme.gitalk.md5) { %> + + <% } %>