# 为hugo添加动态推荐阅读列表

**URL:** <https://discourse.gohugo.io/t/hugo/21439>\
**Category:** 中文\
**Created:** [October 25, 2019, 12:08pm UTC](https://discourse.gohugo.io/t/hugo/21439 "2019-10-25T12:08:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![liliang8858](https://avatars.discourse-cdn.com/v4/letter/l/e19adc/32.png) [@liliang8858](https://discourse.gohugo.io/u/liliang8858)\
**Post date:** [October 25, 2019, 12:08pm UTC](https://discourse.gohugo.io/t/hugo/21439/1 "2019-10-25T12:08:18Z")

</div>

[https://blog.zshipu.com/article/post/golang/20191024/ch3-asm/ch3-10-ext/](https://blog.zshipu.com/article/post/golang/20191024/ch3-asm/ch3-10-ext/)  
接入很简单：

1. 添加js

> $.getScript(“[https://zshipu.com/tongji/tusa.js](https://zshipu.com/tongji/tusa.js)”);

1. 添加阅读数标签：

> 《span id=“pushtsua\_container\_page\_pv” style=“display: inline;”》  
> 阅读:《span id=“pushtsua\_value\_page\_pv”》13《/span》

1. 添加推荐列表标签：

> 《h2\>推荐阅读:\</h2》  
> 《ul class=“list-paddingleft-2” style=“list-style-type: disc;” id=“pushtsua\_recommend\_list”》《/ul》

为了这个转义。。。中文尖括号没见过吧

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/2X/7/78fb95ca3944d330c84da5029a85e44462c8498e.png)

---

<div class="post-metadata">

**Author:** ![alexandros](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexandros](https://discourse.gohugo.io/u/alexandros)\
**Post date:** [November 2, 2019, 9:35pm UTC](https://discourse.gohugo.io/t/hugo/21439/2 "2019-11-02T21:35:23Z")

</div>

I translated this topic and I noticed that it is about some jQuery script that generates a related posts list.

I am afraid that this is OT in the Hugo forum.

Also a duplicate topic with the exact same content by @ed_edwin came up for moderation today and I rejected it.

@liliang8858 and @ed_edwin I kindly request that you read the [Simple Code of Conduct](https://discourse.gohugo.io/t/requesting-help/9132) for posting in the forum.

These rules apply even for Chinese language speakers.

Thank you.

---

<div class="post-metadata">

**Author:** ![alexandros](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexandros](https://discourse.gohugo.io/u/alexandros)\
**Post date:** [November 2, 2019, 9:35pm UTC](https://discourse.gohugo.io/t/hugo/21439/3 "2019-11-02T21:35:28Z")

</div>


