ハッシュタグ検索を実装
This commit is contained in:
parent
0360337df9
commit
94ce658ab9
12 changed files with 470 additions and 7 deletions
|
|
@ -25,7 +25,7 @@ const handlers = {
|
|||
|
||||
hashtag({ document }, { hashtag }) {
|
||||
const a = document.createElement('a');
|
||||
a.href = config.url + '/search?q=#' + hashtag;
|
||||
a.href = config.url + '/tags/' + hashtag;
|
||||
a.textContent = '#' + hashtag;
|
||||
a.setAttribute('rel', 'tag');
|
||||
document.body.appendChild(a);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue