首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在标签页中包含分页

问如何在标签页中包含分页
EN

Stack Overflow用户
提问于 2014-03-12 10:19:40
回答 1查看 1.8K关注 0票数 0

我正在使用blogger.com.When创建一个博客,我点击标签(或标签)回到主页,而相关的标签帖子应该加载。理想情况下,我希望加载最多20篇文章每页和分页,以查看更多。我的代码是,

代码语言:javascript
复制
<b:widget id='HTML44' locked='false' title='Label' type='HTML'>
<b:includable id='main'>
<b:if cond='data:blog.url != data:blog.homepageUrl'>
<b:if cond='data:blog.pageType != &quot;item&quot;'>
<!-- only display title if it's non-empty -->
<b:if cond='data:blog.searchLabel != &quot;&quot;'>
<h2 class='title' id='tit_h2'><img border='0' src='http://3.bp.blogspot.com/-uqDJqtNSkfY/UyElenxHsDI/AAAAAAAAAGk/4QaOO27tY0w/s1600/Heading+1.png' style='margin-top:-2px; float:left; margin-right:10px;'/><data:blog.searchLabel/></h2>
<div class='eggTray'>
<script src='http://helplogger.googlecode.com/svn/trunk/listbadge.js'>{&quot;pipe_id&quot;:&quot;1a6640e2a78b2c6e736f2220529daae5&quot;,&quot;_btype&quot;:&quot;list&quot;,
 &quot;pipe_params&quot;:{&quot;URL&quot;:&quot;http://www.foxbet.gr/feeds/posts/default/-/<data:blog.searchLabel/>&quot;},
&quot;hideHeader&quot;:&quot;false&quot;,&quot;height&quot;:&quot;auto&quot;,&quot;count&quot;: 20  }</script>
<div class='ycdr' style='font-family: arial, sans-serif; font-size: 9px;'><a href='http://helplogger.blogspot.com/2012/05/recent-posts-widget-with-thumbnails-for.html' target='_blank' title='Grab this widget'>Recent Posts Thumbnails</a> <a href='http://helplogger.blogspot.com/' target='_blank'>Blogger Widget</a></div><noscript>Your browser does not support JavaScript!</noscript></div>
<style type='text/css'>
.ybi{display:block;}
.eggTray {margin:10px 0px;padding:0px;}
.ybr li  {border-bottom:0px #cccccc dotted; padding:0px 0px 10px 0px!important;}
.pipesTitle {padding-top:0px;}
.pipesDescription {display:true;}
.ycdr {display:none; background:transparent url(http://3.bp.blogspot.com/-oxTuqVj1ziA/T6P6wtxqsgI/AAAAAAAACBE/wWR0bb2gfuE/s1600/logo.png) 0px 0px no-repeat; padding: 1px 0px 0px 19px; height:14px; margin: 4px 0px 0px 0px;line-height:14px;}
.ycdr, .ycdr a {color:#999999;}
.widget .popular-posts ul {padding-left:0;}
.pipesThumbnail{width: 70px !important; height: 50px !important;}
.pipesThumbnail img{width: 100% !important; height: auto !important;}
</style>
<div class='widget-content'>
<data:content/>
</div>
<b:include name='quickedit'/>
</b:if> </b:if></b:if>
</b:includable>
</b:widget>

任何一个人请帮我

EN

回答 1

Stack Overflow用户

发布于 2014-03-17 14:46:46

考虑到模板中有一个分页脚本。

现在,要在标签上使用分页脚本,需要在URL中指定参数。

示例:

代码语言:javascript
复制
http://yourblog.blogspot.com/search/label/posts?&max-results=20

在这里,posts将被您的标签名称所取代。

&参数也将在标签上启用分页。

max-results=20将最多加载20个帖子(这可以根据您的选择进行更改)

希望这能有所帮助。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22348347

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档