Skip to content

Commit

Permalink
code: use location.hash for archive page
Browse files Browse the repository at this point in the history
  • Loading branch information
Young-Lord committed Nov 9, 2023
1 parent 3d91eba commit 03ac637
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@

一切博文相关的 commit 名必须满足以下规范:

```
```plain
修改形式:标题名(包含空格)(可以适当省略部分文字):具体描述(可选)
```

如,以下 commit 名均符合规范

```
```plain
新增博文:VS 简明使用教程
更新博文:浅谈 Python 3.10 新特性:联合类型
```
Expand Down
4 changes: 2 additions & 2 deletions _includes/scripts/archieve.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,14 @@
if (_tag === '' || typeof _tag !== 'string') {
setUrlQuery();
} else {
setUrlQuery('?tag=' + _tag);
setUrlQuery('#' + _tag);
}
} else {
buttonFocus(searchButtonsByTag(tag));
}
}

var query = queryString(), _tag = query.tag;
var _tag = window.location.hash.slice(1);
init(); tagSelect(_tag);
$tags.on('click', 'button', function() {
tagSelect($(this).data('encode'), $(this));
Expand Down
1 change: 0 additions & 1 deletion robots.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
User-agent: *
Disallow: /cgi-bin/trace
Disallow: /archive?tag=*
Disallow: /IndexNow-*

0 comments on commit 03ac637

Please sign in to comment.