Skip to content

Conversation

@magic-alt
Copy link
Owner

Summary

  • update all four blog post filenames and front matter dates to 2025, setting the harmonic drive article to 2025-10-27
  • surface a sidebar entry that displays the per-device visit count for each post
  • load a new visit-tracker script from the footer to manage localStorage-backed view tracking

Testing

  • bundle exec jekyll build (fails: bundler: command not found)

https://chatgpt.com/codex/tasks/task_e_68fee311ae6083288407b53ca302fe48

Copilot AI review requested due to automatic review settings October 27, 2025 03:16
@magic-alt magic-alt merged commit 8e64ef8 into main Oct 27, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates blog post dates from 2024 to 2025 and adds a client-side visit tracking feature using localStorage. The harmonic drive article is specifically set to October 27, 2025.

  • Updates front matter dates in four blog post files from 2024 to 2025
  • Implements a localStorage-based visit counter displayed in the post sidebar
  • Adds a new JavaScript module to track and persist page view counts per device

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
assets/js/visit-tracker.js New script implementing localStorage-based visit counting with Chinese UI text
_posts/2025-10-27-harmonic-drive-summary.md Date updated from 2024-10-30 to 2025-10-27
_posts/2025-10-17-neovim-cpp-setup.md Date updated from 2024-10-17 to 2025-10-17
_posts/2025-04-15-motor-control-foundations.md Date updated from 2024-04-15 to 2025-04-15
_posts/2025-01-01-welcome.md Date updated from 2024-01-01 to 2025-01-01
_layouts/post.html Adds sidebar entry displaying visit count with placeholder text
_includes/footer.html Loads visit-tracker.js script with defer attribute

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

return {};
}
var parsed = JSON.parse(raw);
if (typeof parsed === 'object' && parsed) {
Copy link

Copilot AI Oct 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The null check parsed is redundant after checking typeof parsed === 'object' since typeof null === 'object' evaluates to true. The order should be reversed: check truthiness first, then type. Change to if (parsed && typeof parsed === 'object') to avoid potential null issues.

Suggested change
if (typeof parsed === 'object' && parsed) {
if (parsed && typeof parsed === 'object') {

Copilot uses AI. Check for mistakes.
date: 2025-10-27 00:00:00 +0800
categories: 技术
tags: [谐波减速机, 传动, 机械设计]
excerpt: 汇总谐波减速机的工作原理、性能特性、关键计数参数与选型应用要点,便于快速查阅与工程实践。
Copy link

Copilot AI Oct 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected spelling of '计数' to '计算' (the excerpt should read '关键计算参数' meaning 'key calculation parameters' rather than '关键计数参数' which means 'key counting parameters').

Suggested change
excerpt: 汇总谐波减速机的工作原理、性能特性、关键计数参数与选型应用要点,便于快速查阅与工程实践。
excerpt: 汇总谐波减速机的工作原理、性能特性、关键计算参数与选型应用要点,便于快速查阅与工程实践。

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants