add weiyangx home

This commit is contained in:
hillerliao
2020-04-13 15:30:53 +08:00
parent 2027fd8c5a
commit 58e93a9e21
2 changed files with 16 additions and 4 deletions

View File

@@ -23,9 +23,9 @@ def ctx():
posts = json.loads(posts)
items = list(map(parse, posts))
return {
'title': f'快讯 - 未央网',
'description': f'快讯 - 未央网',
'link': f'{domain}/category/express',
'title': f'首页 - 未央网',
'description': f'首页推荐栏目 - 未央网',
'link': f'{domain}',
'author': f'hillerliao',
'items': items
}

View File

@@ -203,6 +203,18 @@
<br>
<!--item info end-->
<!--item info start-->
<div class="card text-left">
<div class="card-body">
<h4 class="card-title">未央网-首页</h4>
<h6 class="text-muted">未央网-首页 <a href="https://github.com/hillerliao" target="_blank" class="badge badge-secondary">by hillerliao</a></h6>
<p class="card-text">举例:<a href="https://pyrsshub.herokuapp.com/weiyangx/home/" target="_blank">https://pyrsshub.herokuapp.com/weiyangx/home/</a></p>
<p class="card-text">路由:<code>/weiyangx/home/</code></p>
</div>
</div>
<br>
<!--item info end-->
<!--item info start-->
<div class="card text-left">
<div class="card-body">
@@ -220,7 +232,7 @@
<div class="card-body">
<h4 class="card-title">未央网 tag文章列表</h4>
<h6 class="text-muted">未央网 tag文章列表 <a href="https://github.com/hillerliao" target="_blank" class="badge badge-secondary">by hillerliao</a></h6>
<p class="card-text">举例:<a href="https://pyrsshub.herokuapp.com/weiyangx/tag/0" target="_blank">https://pyrsshub.herokuapp.com/weiyangx/tag/0</a></p>
<p class="card-text">举例:<a href="https://pyrsshub.herokuapp.com/weiyangx/tag/金融科技" target="_blank">https://pyrsshub.herokuapp.com/weiyangx/tag/金融科技</a></p>
<p class="card-text">路由:<code>/weiyangx/tag/:category</code></p>
<p class="card-text">参数category [必填,见 weiyangx 官网]</p>
</div>