变量
使用时,需要在文章内容循环区域使用,依赖标签:{?loop:posts}
| 变量 |
说明 |
| {$author.name} |
作者名 |
| {$author.url} |
作者主博地址 |
| {$author.avatar_24} |
作者头像,宽度24px |
| {$author.avatar_64} |
作者头像,宽度64px |
| {$author.avatar_200} |
作者头像,宽度200px |
| {$author.description} |
作者主博描述 |
示例
1
2
3
4
5
6
7
8
9
10
11
12
13
14
| <html>
<body>
<!--循环输出文章-->
{?loop:posts}
<div class="post-author">
<!--放一个作者的链接,指到他的博客地址-->
<a href="{$author.url}" target="_blank">
<!--显示作者的头像,提示为作者的名字-->
<img src="{$author.avatar_64}" title="{$author.name}"/>
</a>
</div>
{/loop:posts}
</body>
</html>
|