Logspot

日志点

日志点主要纪录整个博客业务及相关的业务 更新情况 更多内容请查看 探人间.

v 1.4.2

更新 GitHub Action

Action删除服务器上的CSS

- name: delete css  uses: appleboy/ssh-action@master  with:    host: ${{ secrets.FTP_SERVER }}    username: ${{ secrets.USERNAME }}    key: ${{ secrets.SSH_PRIVATE_KEY }}    script: |      cd /test/      rm -rf css      
v 1.4.2

更改为远程样式

将本地的样式修改为远程样式 提高样式限制

修改文件:cdn.js

if (cond === "internal") data["main_css"] = "https://test.com/static/css/index.css";
v 1.4.2

增加友链、文章

增加友链 小破站

- name: 小破站  link: https://syml.online  avatar: https://abc.syml.online/webAvatar/%E5%A4%B4%E5%83%8F.jpg  descr: 蓬生麻中,不扶自直

增加文章 飞书高效监控CDN状态

v 1.4.2

更新Action 静态资源

删除静态文件

  • /img/algolia.svg
  • /img/commbg.webp
  • /img/favicon.ico
  • /js/main.js
  • /js/utils.js
  • /js/search/algolia.js
  • /js/search/local-search.js

    如非必要 切勿操作以上步骤.

    如果需要操作 请先备份个人资源

添加Action刷新CDN

- name: Refresh CDN  uses: appleboy/ssh-action@master  with:    host: ${{ secrets.FTP_SERVER }}    username: ${{ secrets.USERNAME }}    key: ${{ secrets.SSH_PRIVATE_KEY }}    script: |      cd /test/     python3 main.py 

删除公众号引流 post.pug

    div#postcontainer      article#article-container.post-content!=page.content    script(src=url_for('https://test.com/js/readmore-2.0.js'))    script.      if (typeof btw === 'undefined') {        const btw = new BTWPlugin();        btw.init({          id: 'postcontainer',          blogId: '772',          name: '程序员羡羡',          qrcode: 'https://test.com/gzh.webp',          keyword: 'VIP',          btnText: '原创不易,完成人机检测,阅读全文',          cookieAge: 168,          displayPercentage: 0.4        });      }
v 1.4.2

加长公众号验证时间

加长公众号引流后免验证的时间 默认24小时 改为7天 post.pug

    div#postcontainer      article#article-container.post-content!=page.content    script(src=url_for('https://test.com/js/readmore-2.0.js'))    script.      if (typeof btw === 'undefined') {        const btw = new BTWPlugin();        btw.init({          id: 'postcontainer',          blogId: '772',          name: '程序员羡羡',          qrcode: 'https://test.com/gzh.webp',          keyword: 'VIP',          btnText: '原创不易,完成人机检测,阅读全文',          cookieAge: 168,          displayPercentage: 0.4        });      }
v 1.4.2

恢复评论和打赏及更新文章

重新开启评论 和 打赏功能

reward:  enable: truecomments:  # Up to two comments system, the first will be shown as default  # Choose: Valine/Waline/Twikoo/Artalk  use: Twikoo # Twikoo/Waline  text: false # Display the comment name next to the button  # lazyload: The comment system will be load when comment element enters the browser's viewport.  # If you set it to true, the comment count will be invalid  lazyload: false  count: false # Display comment count in post's top_img  card_post_count: false

更新 钉钉获取朋友圈执行日志 文章中的发送钉钉通知方法(增加手机端可以直接链接查看友链地址)

    def sendmessage(self, linktotal, errtotal, posttotal, todaytime, failed_links):        timestamp = str(round(time.time() * 1000))        secret = 'xxxx'        secret_enc = secret.encode('utf-8')        string_to_sign = '{}\n{}'.format(timestamp, secret)        string_to_sign_enc = string_to_sign.encode('utf-8')        hmac_code = hmac.new(secret_enc, string_to_sign_enc, digestmod=hashlib.sha256).digest()        sign = urllib.parse.quote_plus(base64.b64encode(hmac_code))        webhook_url = 'xxxxxx&timestamp=' + timestamp + '&sign=' + sign + ''        headers = {'Content-Type': 'application/json'}        text_content = (            "### 友链总数: {}\n"            "### 失联友链: {}\n"            "### 总文章: {}\n"            "### 运行时间: {}\n\n"            "{}"        ).format(linktotal, errtotal, posttotal, todaytime,                 "" if not failed_links else '### 请求失败的链接:\n' + '\n'.join(                     [f'- [{link}]({link})' for link in failed_links]))        data = {            "msgtype": "markdown",            "markdown": {                "title": "朋友圈监控",                "text": text_content            }        }        r = requests.post(webhook_url, headers=headers, data=json.dumps(data))
v 1.4.2

增加公众号引流 & 钉钉获取朋友圈日志

发布新文章 钉钉获取朋友圈执行日志

增加友链 飞飞鱼

添加公众号引流功能 post

    div#postcontainer      article#article-container.post-content!=page.content    script(src=url_for('https://test.com/js/readmore-2.0.js'))    script.      if (typeof btw === 'undefined') {        const btw = new BTWPlugin();        btw.init({          id: 'postcontainer',          blogId: '772',          name: '程序员羡羡',          qrcode: 'https://test.com/gzh.webp',          keyword: 'VIP',          btnText: '原创不易,完成人机检测,阅读全文',          cookieAge: 168,          displayPercentage: 0.4        });      }
v 1.4.2

关闭评论和打赏

因修改备案 关闭评论和打赏

reward:  enable: falsecomments:  # Up to two comments system, the first will be shown as default  # Choose: Valine/Waline/Twikoo/Artalk  use: #Twikoo # Twikoo/Waline  text: false # Display the comment name next to the button  # lazyload: The comment system will be load when comment element enters the browser's viewport.  # If you set it to true, the comment count will be invalid  lazyload: false  count: false # Display comment count in post's top_img  card_post_count: false # Display comment count in Home Page
v 1.4.2

增加友链 修复评论

增加友链 阳小楊

- name: 阳小楊  link: https://blog.yxyang.top  avatar: https://pic.imgdb.cn/item/65708f75c458853aefa8c951.jpg  descr: '无人了解你的灵魂.'

修复评论无法显示头像 plugins.yml

twikoo:  name: twikoo  file: dist/twikoo.all.min.js  version: 1.6.26
v 1.4.2

增加提醒 打赏名单

增加打赏页提醒打赏者备注昵称

small 打赏时建议备注各位大佬昵称

增加打赏名单

- name: 小城子  amount: 10  datatime: 2023-12-04
v 1.4.2

增加文章 & 打赏名单

添加打赏用户名单

- name: 与风说心事  amount: 160  datatime: 2023-12-02

修改音乐为抖音 未遂

增加文章 流量卡测评

v 1.4.2

底部备案增加国徽

底部备案增加国徽 和 修改编号 footer.pug

a.footer-bar-link(href=url_for(item.link) title=item.text)  img(src=item.img alt='备案国徽' class='nolazyload' style='width:16px;height:17px;vertical-align: top;margin-right: 4px;')  | #{item.text}
v 1.4.2

增加文章 去掉部分信息

增加文章 个人网站公安备案

去掉分类 和 标签右侧展示信息

---title: 分类type: "categories"comments: falseaside: false------title:  标签date: 2023-04-04 14:24:07type: "tags"comments: falsetop_img: falseaside: false---