下载UserAgent

  1. 解压后修改文件夹名为 UserAgent,将插件上传至网站目录的 /usr/plugins
  2. 在 Typecho 后台「插件管理」处启用插件
  3. 在需要显示的地方插入以下代码:
<?php UserAgent_Plugin::render($comments->agent); ?>

以 handsome 主题为例,即添加到 handsome/component/comments.php 文件里的 <span class="comment-author vcard"> ... </span> 后面。

来源:HAKULA

最后修改:2022 年 03 月 30 日
如果觉得我的文章对你有用,请随意赞赏