
{{range $index, $page := .paginator.Pages}}
    <li{{if $.paginator.IsActive .}} class="active"{{end}}>
        <a href="{{$.paginator.PageLink $page}}">{{$page}}</a>
    </li>
{{end}}
{{if .paginator.HasNext}}
    <li><a href="{{.paginator.PageLinkNext}}"><i class="glyphicon glyphicon-forward"></i></a></li>
    <li><a href="{{.paginator.PageLinkLast}}" title="末页"><i class="glyphicon glyphicon-step-forward"></i></a></li>
{{else}}
    <li class="disabled"><a><i class="glyphicon glyphicon-forwar